Bug 197 – mixin mixin repeated twice when error.

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-06-15T20:50:00Z
Last change time
2014-02-15T13:20:49Z
Assigned to
bugzilla
Creator
huangl

Comments

Comment #0 by huangl — 2006-06-15T20:50:20Z
the programe : interface Interface { void Method(); }; template CInterfaceImpl(Host) { void Method() { printf("hello"); } } class ClassOne : Interface { mixin CInterfaceImpl!(ClassOne, Interface); }; int main(char[][] argv) { Interface p = new ClassOne; p.Method(); return 0; } compile error normally but give a confusing error: iftest.d(17): mixin mixin CInterfaceImpl!(ClassOne,Interface); does not match any template declaration what's the "mixin mixin"?
Comment #1 by bugzilla — 2006-06-30T20:30:05Z
Fixed DMD 0.162