gcc/testsuite/gdc.test/fail_compilation/fail10481.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail10481.d(11): Error: undefined identifier `T1`, did you mean alias `T0`? |
| 5 | fail_compilation/fail10481.d(15): Error: cannot infer type from template instance `get!(A)` |
| 6 | --- |
| 7 | */ |
| 8 | |
| 9 | struct A {} |
| 10 | |
| 11 | void get(T0 = T1.Req, Params...)(Params , T1) {} |
| 12 | |
| 13 | void main() |
| 14 | { |
| 15 | auto xxx = get!A; |
| 16 | } |