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

@ -52,5 +52,5 @@ else:
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):
when (NimMajor, NimMinor) >= version:
body