[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
Wed Aug 16 23:05:08 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24088
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
@maxhaton created dlang/dmd pull request #15542 "Fix Issue 24088 - Nested
functions using the shortened syntax were no…" fixing this issue:
- 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/15542
--
More information about the Digitalmars-d-bugs
mailing list