digitalmars.D.bugs - [Issue 14580] New: Context transmitted through alias template
- via Digitalmars-d-bugs (32/32) May 12 2015 https://issues.dlang.org/show_bug.cgi?id=14580
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: nobody puremagic.com Reporter: thecybershadow gmail.com This is inconsistent: //////////// test.d /////////// class C { void method() {} void fun() { void local() {} call!local(); // OK call!method(); // Error } } void call(alias f)() { f(); } /////////////////////////////// --
May 12 2015