← Back to index
|
Original Bugzilla link
Bug 20612 – alias overload set cause mixin overload function strange behavior
Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2020-02-26T08:05:32Z
Last change time
2024-12-13T19:07:18Z
Assigned to
No Owner
Creator
liyu
Moved to GitHub: dmd#17941 →
Comments
Comment #0
by yunwind — 2020-02-26T08:05:32Z
import core.stdc.stdio; class T { void test() { printf("t\n"); } } class T1 : T { alias T.test test; mixin Foo; } template Foo() { override void test() { printf("t1\n"); } } class T2 : T1 { override void test() { printf("t2\n"); super.test(); } } void main() { auto t2 = new T2; t2.test(); //output t2, t auto t1 = new T1; t1.test(); //output t1 }
Comment #1
by robert.schadek — 2024-12-13T19:07:18Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/17941
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB