https://issues.dlang.org/show_bug.cgi?id=14580
Issue ID: 14580
Summary: Context transmitted through alias template parameter
for local functions, but not methods
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
This is inconsistent:
//////////// test.d ///////////
class C
{
void method() {}
void fun()
{
void local() {}
call!local(); // OK
call!method(); // Error
}
}
void call(alias f)()
{
f();
}
///////////////////////////////
--