This commit is contained in:
Andreas Rumpf
2021-10-05 12:29:59 +02:00
committed by GitHub
parent e7bac91773
commit f1f1e85ec6

View File

@@ -121,9 +121,9 @@ macro `=>`*(p, b: untyped): untyped =
else:
error("Incorrect procedure parameter.", c)
params.add(identDefs)
of nnkIdent:
of nnkIdent, nnkOpenSymChoice, nnkClosedSymChoice, nnkSym:
var identDefs = newNimNode(nnkIdentDefs)
identDefs.add(p)
identDefs.add(ident $p)
identDefs.add(ident"auto")
identDefs.add(newEmptyNode())
params.add(identDefs)