Skip to content

Commit

Permalink
Fixed compilation with older nim
Browse files Browse the repository at this point in the history
  • Loading branch information
yglukhov committed Apr 23, 2018
1 parent 5036a45 commit fd8ab7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion variant.nim
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ proc mangledNameAux(t: NimNode): string =

of ntyTuple:
let impl = t.getTypeImpl()
impl.expectKind({nnkTupleTy, nnkPar, nnkTupleConstr})
# TODO: Uncomment the following line when nim 0.19 is out,
# nnkTupleConstr is not defined in older nim.
# impl.expectKind({nnkTupleTy, nnkPar, nnkTupleConstr})

result = "tuple["
var i = 0
Expand Down
2 changes: 1 addition & 1 deletion variant.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.2.7"
version = "0.2.8"
author = "Yuriy Glukhov"
description = "Variant type and type matching"
license = "MIT"
Expand Down

0 comments on commit fd8ab7c

Please # to comment.