mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
31 lines
567 B
D
31 lines
567 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail124.d(17): Error: class `fail124.CC` inherits from duplicate interface `C`
|
|
fail_compilation/fail124.d(31): Error: class `fail124.D` inherits from duplicate interface `T`
|
|
fail_compilation/fail124.d(31): Error: class `fail124.D` inherits from duplicate interface `T`
|
|
---
|
|
*/
|
|
|
|
//import std.stdio;
|
|
|
|
interface C
|
|
{
|
|
void f();
|
|
}
|
|
|
|
class CC : C, C
|
|
{
|
|
void f() { /*writefln("hello");*/ }
|
|
}
|
|
|
|
void main()
|
|
{
|
|
CC cc = new CC();
|
|
cc.f();
|
|
}
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=20830
|
|
interface T { }
|
|
|
|
class D : T, T, T { }
|