| 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 |
*/ |
| 9 |
|
| 10 |
//import std.stdio; |
| 11 |
|
| 12 |
interface C |
| 13 |
{ |
| 14 |
void f(); |
| 15 |
} |
| 16 |
|
| 17 |
class CC : C, C |
| 18 |
{ |
| 19 |
void f() { /*writefln("hello");*/ } |
| 20 |
} |
| 21 |
|
| 22 |
void main() |
| 23 |
{ |
| 24 |
CC cc = new CC(); |
| 25 |
cc.f(); |
| 26 |
} |
| 27 |
|
| 28 |
// https://issues.dlang.org/show_bug.cgi?id=20830 |
| 29 |
interface T { } |
| 30 |
|
| 31 |
class D : T, T, T { } |