gcc/testsuite/gdc.test/fail_compilation/fail7861.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail7861.d(18): Error: no property `nonexistent` for type `test.B` |
| 5 | fail_compilation/fail7861.d(14): struct `B` defined here |
| 6 | --- |
| 7 | */ |
| 8 | module test; |
| 9 | |
| 10 | mixin template A() { |
| 11 | import test; |
| 12 | } |
| 13 | |
| 14 | struct B { |
| 15 | mixin A!(); |
| 16 | } |
| 17 | |
| 18 | enum C = B.nonexistent; |