[Issue 24088] A nested function that returns a tuple that is written with short syntax function does not want to compile.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 16 07:31:13 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=24088

--- Comment #5 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #15609 "merge stable" was merged into master:

- e3eccfe9a5d721ea5dd1e4ab1d9bff7c6ae91ac4 by mhh:
  Fix Issue 24088 - Nested functions using the shortened syntax were not
recognized correctly as declarations.

  The fix was simply to amend `isDeclarator` to look for TOK.goesTo (i.e. `=>`)

https://github.com/dlang/dmd/pull/15609

--


More information about the Digitalmars-d-bugs mailing list