digitalmars.D.bugs - [Issue 13549] New: Local functions don't take outer function
- via Digitalmars-d-bugs (25/25) Sep 27 2014 https://issues.dlang.org/show_bug.cgi?id=13549
https://issues.dlang.org/show_bug.cgi?id=13549 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() { } 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