Bug 14580 – Context transmitted through alias template parameter for local functions, but not methods

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-05-12T20:07:27Z
Last change time
2024-12-13T18:42:50Z
Assigned to
No Owner
Creator
Vladimir Panteleev
See also
https://issues.dlang.org/show_bug.cgi?id=12291
Moved to GitHub: dmd#17707 →

Comments

Comment #0 by dlang-bugzilla — 2015-05-12T20:07:27Z
This is inconsistent: //////////// test.d /////////// class C { void method() {} void fun() { void local() {} call!local(); // OK call!method(); // Error } } void call(alias f)() { f(); } ///////////////////////////////
Comment #1 by k.hara.pg — 2015-05-17T12:49:49Z
Related context transmission issue 10084
Comment #2 by robert.schadek — 2024-12-13T18:42:50Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17707 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB