www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13549] New: Local functions don't take outer function


          Issue ID: 13549
           Summary: Local functions don't take outer function attributes
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: turkeyman gmail.com

void f() pure nothrow  nogc
   static void localFunc()


Complains because localFunc is not  nogc or nothrow.
Doesn't complain about pure though.

My feeling is that the attributes should apply to everything in the scope that
they attribute?

Sep 27 2014