[Issue 13549] New: Local functions don't take outer function attributes
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Sep 27 22:40:52 PDT 2014
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 at puremagic.com
Reporter: turkeyman at 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?
--
More information about the Digitalmars-d-bugs
mailing list