gcc/testsuite/gdc.test/fail_compilation/fail9.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail9.d(24): Error: no property `Vector` for type `fail9.Vector!int` |
| 5 | fail_compilation/fail9.d(13): class `Vector` defined here |
| 6 | --- |
| 7 | */ |
| 8 | |
| 9 | template Vector(T) |
| 10 | { |
| 11 | int x; |
| 12 | |
| 13 | class Vector |
| 14 | { |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | struct Sorter |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | void Vector_test_int() |
| 23 | { |
| 24 | alias Vector!(int).Vector vector_t; |
| 25 | vector_t v; |
| 26 | Sorter sorter; |
| 27 | v.sort_with!(int)(sorter); |
| 28 | } |