Bug 12291 – Pick up "this" from alias parameters to nested templates

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-03T04:31:40Z
Last change time
2024-12-13T18:17:45Z
Assigned to
No Owner
Creator
Vladimir Panteleev
See also
https://issues.dlang.org/show_bug.cgi?id=14580
Moved to GitHub: dmd#18786 →

Comments

Comment #0 by dlang-bugzilla — 2014-03-03T04:31:40Z
////// test.d ///// void fun(alias a)() { a = 42; } struct S { int x; } void main() { S s; fun!(s.x)(); } /////////////////// Currently, this fails with: test.d(14): Error: need 'this' for 'fun' of type 'pure nothrow @safe void()' However, we provide the "this" in the "s.x" expression.
Comment #1 by robert.schadek — 2024-12-13T18:17:45Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18786 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB