| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/templateoverload.d(17): Error: template instance `T!1` does not match any template declaration |
| 5 |
fail_compilation/templateoverload.d(17): Candidates are: |
| 6 |
fail_compilation/templateoverload.d(14): T(X) |
| 7 |
fail_compilation/templateoverload.d(15): T() |
| 8 |
fail_compilation/templateoverload.d(22): Error: template instance `V!int` does not match any template declaration |
| 9 |
fail_compilation/templateoverload.d(22): Candidates are: |
| 10 |
fail_compilation/templateoverload.d(19): V(int i) |
| 11 |
fail_compilation/templateoverload.d(20): V(T, alias a) |
| 12 |
--- |
| 13 |
*/ |
| 14 |
template T(X) {} |
| 15 |
template T() {} |
| 16 |
|
| 17 |
alias t = T!1; |
| 18 |
|
| 19 |
template V(int i) {} |
| 20 |
template V(T, alias a) {} |
| 21 |
|
| 22 |
alias v = V!int; |