diff --git a/changelog.md b/changelog.md index 94f5f3253..3521904f6 100644 --- a/changelog.md +++ b/changelog.md @@ -194,6 +194,9 @@ provided by the operating system. - `system.addEscapedChar` now renders `\r` as `\r` instead of `\c`, to be compatible with most other languages. +- Removed support for named procs in `sugar.=>` + + ## Language changes - `nimscript` now handles `except Exception as e`. diff --git a/lib/pure/sugar.nim b/lib/pure/sugar.nim index 8d23696ac..aa1cc5fb8 100644 --- a/lib/pure/sugar.nim +++ b/lib/pure/sugar.nim @@ -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..