[Issue 20786] New: do attribute inference for all nested functions
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Apr 29 04:41:55 UTC 2020
    
    
  
https://issues.dlang.org/show_bug.cgi?id=20786
          Issue ID: 20786
           Summary: do attribute inference for all nested functions
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: schveiguy at yahoo.com
All nested functions have available source for the compiler, so there is no
reason not to infer attributes.
This already happens inside @safe functions, it makes no sense for it not to
happen for all nested functions.
Note the post from Walter here:
https://forum.dlang.org/post/r75q88$182b$1@digitalmars.com
Also, this is related to issue 13567, but it's slightly different, and there is
better precedent.
--
    
    
More information about the Digitalmars-d-bugs
mailing list