| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/diag18574.d(16): Error: `diag18574.Test`: multiple class inheritance is not supported. Use multiple interface inheritance and/or composition. |
| 5 |
fail_compilation/diag18574.d(16): `diag18574.Bar` has no fields, consider making it an `interface` |
| 6 |
fail_compilation/diag18574.d(16): `diag18574.Baz` has fields, consider making it a member of `diag18574.Test` |
| 7 |
fail_compilation/diag18574.d(16): Error: `diag18574.Test`: base type must be `interface`, not `int` |
| 8 |
--- |
| 9 |
*/ |
| 10 |
// https://issues.dlang.org/show_bug.cgi?id=18574 |
| 11 |
|
| 12 |
class Foo {} |
| 13 |
class Bar {} |
| 14 |
class Baz { int a; } |
| 15 |
|
| 16 |
class Test : Foo, Bar, Baz, int {} |