Bug 6532 – Struct within class cannot auto dereference templated methods

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-08-19T08:40:46Z
Last change time
2024-12-13T17:56:13Z
Assigned to
No Owner
Creator
Mariusz GliwiƄski
Moved to GitHub: dmd#18365 →

Comments

Comment #0 by alienballance — 2011-08-19T08:40:46Z
It was quite hard to reproduce it but here it is: <code> class C1 { void setElemParam(T)(T value) {} struct Test { void setChannel() { setElemParam(1); // ERROR! // Error: this for setElemParam needs to be type C1 not type Test //setElemParam!float(1); // OK! } } } void main() {} </code>
Comment #1 by issues.dlang — 2012-08-05T20:12:05Z
Still a problem in 2.060.
Comment #2 by robert.schadek — 2024-12-13T17:56:13Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18365 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB