tests/dmd/fail_compilation/imports/a15667.d
raw| 1 | module imports.a15667; |
| 2 | |
| 3 | template staticIndexOf(T) |
| 4 | { |
| 5 | enum staticIndexOf = genericIndexOf!T; |
| 6 | } |
| 7 | |
| 8 | template genericIndexOf(args...) |
| 9 | { |
| 10 | alias e = args; |
| 11 | alias tuple = args; |
| 12 | alias tail = tuple; |
| 13 | enum next = genericIndexOf!(e, tail); |
| 14 | } |
| 15 | |
| 16 | alias X = ; |
| 17 | |
| 18 | static if (staticIndexOf!X) |