d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail124.d
blob7eeb29f672ac4b2e77ee032372557e9b1a3946ea
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail124.d(17): Error: class `fail124.CC` inherits from duplicate interface `C`
5 fail_compilation/fail124.d(31): Error: class `fail124.D` inherits from duplicate interface `T`
6 fail_compilation/fail124.d(31): Error: class `fail124.D` inherits from duplicate interface `T`
7 ---
8 */
10 //import std.stdio;
12 interface C
14 void f();
17 class CC : C, C
19 void f() { /*writefln("hello");*/ }
22 void main()
24 CC cc = new CC();
25 cc.f();
28 // https://issues.dlang.org/show_bug.cgi?id=20830
29 interface T { }
31 class D : T, T, T { }