Tiny since cleanup (#13286)

This commit is contained in:
Clyybber 2020-01-28 20:02:07 +01:00 • committed by Andreas Rumpf
commit fb94836bc7
4 changed files with 111 additions and 111 deletions

View file

@ -81,7 +81,7 @@ macro lenTuple*(t: typedesc[tuple]): int {.since: (1, 1).} =
## Return number of elements of `T`
newLit t.len
when (NimMajor, NimMinor) >= (1, 1):
since (1, 1):
template get*(T: typedesc[tuple], i: static int): untyped =
## Return `i`th element of `T`
# Note: `[]` currently gives: `Error: no generic parameters allowed for ...`