gcc/testsuite/gdc.test/fail_compilation/diag8697.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/diag8697.d(11): Error: no property `Invalid` for type `diag8697.Base` |
| 5 | fail_compilation/diag8697.d(9): class `Base` defined here |
| 6 | --- |
| 7 | */ |
| 8 | interface InterBase : InterRoot { } |
| 9 | class Base : InterBase { } |
| 10 | |
| 11 | void test(Base.Invalid) { } |
| 12 | |
| 13 | interface InterRoot { } |