September 28, 2014 [Issue 13549] New: Local functions don't take outer function attributes | ||||
---|---|---|---|---|
| ||||
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? -- |
Copyright © 1999-2021 by the D Language Foundation