Bug 12286 – Can't use two alias parameters to class and subclass field

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-02T11:10:49Z
Last change time
2024-12-13T18:17:41Z
Keywords
pull
Assigned to
No Owner
Creator
Vladimir Panteleev
Blocks
12230
Moved to GitHub: dmd#18785 →

Comments

Comment #0 by dlang-bugzilla — 2014-03-02T11:10:49Z
//////////// test.d /////////// class A { int i; } class B : A { int j; } template copy(alias a, alias b) { void copy() { a = b; } } class C : B { alias copyIJ = copy!(i, j); } /////////////////////////////// Error: test.d(11): Error: template instance copy!(i, j) copy!(i, j) is nested in both A and B The template should be nested in the descendant type.
Comment #1 by dlang-bugzilla — 2014-03-02T12:31:41Z
Comment #2 by robert.schadek — 2024-12-13T18:17:41Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18785 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB