Skip to content

Commit

Permalink
hotfix: make --useVersion:1.0 work
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Mar 10, 2020
1 parent ab5d962 commit 9e2bce2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pure/typetraits.nim
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ macro genericParamsImpl(T: typedesc): untyped =
var ret: NimNode
case ai.typeKind
of ntyStatic:
ret = newTree(nnkBracketExpr, @[bindSym"StaticParam", ai])
since (1, 1):
ret = newTree(nnkBracketExpr, @[bindSym"StaticParam", ai])
of ntyTypeDesc:
ret = ai
else:
Expand Down

0 comments on commit 9e2bce2

Please sign in to comment.