mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
21 lines
271 B
D
21 lines
271 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail2740.d(17): Error: class `fail2740.Foo` ambiguous virtual function `foo`
|
|
---
|
|
*/
|
|
interface IFoo
|
|
{
|
|
int foo();
|
|
}
|
|
|
|
mixin template MFoo(int N)
|
|
{
|
|
int foo() { return N; }
|
|
}
|
|
|
|
class Foo : IFoo
|
|
{
|
|
mixin MFoo!(1) t1;
|
|
mixin MFoo!(2) t2;
|
|
}
|