| 1 |
/* |
| 2 |
EXTRA_FILES: imports/ice10600a.d imports/ice10600b.d |
| 3 |
TEST_OUTPUT: |
| 4 |
--- |
| 5 |
fail_compilation/ice10600.d(31): Error: template instance `to!(int, double)` does not match template declaration `to(T)` |
| 6 |
--- |
| 7 |
*/ |
| 8 |
|
| 9 |
import imports.ice10600a; |
| 10 |
import imports.ice10600b; |
| 11 |
|
| 12 |
template Tuple(Specs...) |
| 13 |
{ |
| 14 |
struct Tuple |
| 15 |
{ |
| 16 |
string toString() |
| 17 |
{ |
| 18 |
Appender!string w; // issue! |
| 19 |
return ""; |
| 20 |
} |
| 21 |
} |
| 22 |
} |
| 23 |
Tuple!T tuple(T...)(T args) |
| 24 |
{ |
| 25 |
return typeof(return)(); |
| 26 |
} |
| 27 |
|
| 28 |
void main() |
| 29 |
{ |
| 30 |
auto a = to!int(""); |
| 31 |
auto b = to!(int, double)(""); |
| 32 |
tuple(1); |
| 33 |
} |