gcc/testsuite/gdc.test/fail_compilation/test15785.d
raw| 1 | // EXTRA_FILES: imports/test15785.d |
| 2 | /* |
| 3 | TEST_OUTPUT: |
| 4 | --- |
| 5 | fail_compilation/test15785.d(17): Error: no property `foo` for `super` of type `imports.test15785.Base` |
| 6 | fail_compilation/imports/test15785.d(3): class `Base` defined here |
| 7 | fail_compilation/test15785.d(18): Error: undefined identifier `bar` |
| 8 | --- |
| 9 | */ |
| 10 | |
| 11 | import imports.test15785; |
| 12 | |
| 13 | class Derived : Base |
| 14 | { |
| 15 | void test() |
| 16 | { |
| 17 | super.foo(); |
| 18 | bar(); |
| 19 | } |
| 20 | } |