blob: b1ee9067b9bd9fcfc1f17303971af326132803ea [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ice10600.d(30): Error: template instance to!(int, double) does not match template declaration to(T)
---
*/
import imports.ice10600a;
import imports.ice10600b;
template Tuple(Specs...)
{
struct Tuple
{
string toString()
{
Appender!string w; // issue!
return "";
}
}
}
Tuple!T tuple(T...)(T args)
{
return typeof(return)();
}
void main()
{
auto a = to!int("");
auto b = to!(int, double)("");
tuple(1);
}