[Issue 8032] New: `mixin template` before virtual method with same method causes an error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 4 05:02:53 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8032
Summary: `mixin template` before virtual method with same
method causes an error
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis <verylonglogin.reg at gmail.com> 2012-05-04 16:04:08 MSD ---
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
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list