gcc/testsuite/gdc.test/fail_compilation/fail316.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail316.d(17): Error: mixin `fail316.foo.BadImpl!(uint, Mix1)` cannot resolve forward reference |
| 5 | --- |
| 6 | */ |
| 7 | template BadImpl(T, alias thename) |
| 8 | { |
| 9 | void a_bad_idea(T t) |
| 10 | { |
| 11 | thename.a_bad_idea(t); |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | class foo |
| 16 | { |
| 17 | mixin BadImpl!(uint,Mix1) Mix1; |
| 18 | } |
| 19 | |
| 20 | int main() |
| 21 | { |
| 22 | return 0; |
| 23 | } |