[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
       
    Thu Aug 17 10:33:11 UTC 2023
    
    
  
https://issues.dlang.org/show_bug.cgi?id=24088
Dlang Bot <dlang-bot at dlang.rocks> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #15542 "Fix Issue 24088 - Nested functions using the
shortened syntax were no…" was merged into stable:
- 2504a1fdd429abf85fca02885ba527d741e70098 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/15542
--
    
    
More information about the Digitalmars-d-bugs
mailing list