make tests green again

This commit is contained in:
Andreas Rumpf 2018-04-13 17:45:48 +02:00
commit 1d1d6f39a3
3 changed files with 8 additions and 8 deletions

View file

@ -21,7 +21,7 @@ proc createProcType(p, b: NimNode): NimNode {.compileTime.} =
formalParams.add b
case p.kind
of nnkPar:
of nnkPar, nnkTupleConstr:
for i in 0 ..< p.len:
let ident = p[i]
var identDefs = newNimNode(nnkIdentDefs)
@ -61,7 +61,7 @@ macro `=>`*(p, b: untyped): untyped =
var params: seq[NimNode] = @[newIdentNode("auto")]
case p.kind
of nnkPar:
of nnkPar, nnkTupleConstr:
for c in children(p):
var identDefs = newNimNode(nnkIdentDefs)
case c.kind