Remove support for named procs with sugar.=> (#17220)
* Add docs & tests for named procs with sugar.=> * Remove support for named procs in sugar.=> * Resolve conflict * Fix test
This commit is contained in:
parent
8f1fa3e5b0
commit
2e8325a19c
3 changed files with 5 additions and 18 deletions
|
|
@ -87,16 +87,6 @@ macro `=>`*(p, b: untyped): untyped =
|
|||
|
||||
checkPragma(p, pragma) # check again after -> transform
|
||||
|
||||
since (1, 3):
|
||||
if p.kind in {nnkCall, nnkObjConstr}:
|
||||
# foo(x, y) => x + y
|
||||
kind = nnkProcDef
|
||||
name = p[0]
|
||||
let newP = newNimNode(nnkPar)
|
||||
for i in 1..<p.len:
|
||||
newP.add(p[i])
|
||||
p = newP
|
||||
|
||||
case p.kind
|
||||
of nnkPar, nnkTupleConstr:
|
||||
var untypedBeforeColon = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue