Bug 8032 – `mixin template` before virtual method with same method causes an error
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-04T05:04:00Z
Last change time
2012-05-10T11:16:51Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
verylonglogin.reg
Comments
Comment #0 by verylonglogin.reg — 2012-05-04T05:04:08Z
This doesn't compile if `mixin template` is declared before virtual method `f`:
---
mixin template T() {
void f() { }
}
class A {
mixin T; // Named mixin causes the error too
void f() { }
}
class B : A {
override void f() { }
}
---
Error: class main.B use of main.A.f() hidden by B is deprecated