typetraits: fixes #6454; genericParams; added lenTuple; added tuple type get (#13064)

This commit is contained in:
Timothee Cour 2020-01-09 23:51:37 -08:00 • committed by Andreas Rumpf
commit 4cd86c0842
4 changed files with 60 additions and 4 deletions

View file

@ -50,5 +50,7 @@ else:
{.pragma: benign, gcsafe.}
template since(version, body: untyped) {.dirty.} =
## limitation: can't be used to annotate a template (eg typetraits.get), would
## error: cannot attach a custom pragma.
when version <= (NimMajor, NimMinor):
body