=> macro tripped on generic return types

example fail `(a:int,b:int) -> Foo[int] => Foo[int](x: a + b)`
This commit is contained in:
Billingsly Wetherfordshire
2014-05-19 19:05:57 -05:00
parent e54ab22bf9
commit 657a00056e

View File

@@ -18,7 +18,6 @@ proc createProcType(p, b: PNimrodNode): PNimrodNode {.compileTime.} =
result = newNimNode(nnkProcTy)
var formalParams = newNimNode(nnkFormalParams)
expectKind(b, nnkIdent)
formalParams.add b
case p.kind