Tiny since cleanup (#13286)
This commit is contained in:
parent
be795bbf1a
commit
fb94836bc7
4 changed files with 111 additions and 111 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue