← Back to index
|
Original Bugzilla link
Bug 1686 – (D1 only) mixin overload
Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2007-11-22T17:38:03Z
Last change time
2019-05-11T16:56:59Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Frank Benoit
Comments
Comment #0
by benoit — 2007-11-22T17:38:03Z
template M( T...){ void opCall( T t ){ // line 6 } } class C1 { mixin M!() m1; mixin M!( bool ) m2; } class C2a : C1{ mixin M!( bool ) m3; // compiles OK } class C2b : C1{ mixin M!( int ) m3; // Compile error, see below (line 16) } t.d(6): Error: t.C1.M!().opCall at t.d(6) conflicts with t.C1.M!(bool).opCall at t.d(6) t.d(16): mixin t.C2.M!(int) error instantiating