mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
=> macro tripped on generic return types
example fail `(a:int,b:int) -> Foo[int] => Foo[int](x: a + b)`
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user