blob: 69191ec20a2d8f8d7159b4b543f1df03d71038e2 [file] [log] [blame]
// EXTRA_SOURCES: imports/b3682.d
// PERMUTE_ARGS:
// 3682
struct Tuple(Types...)
{
Tuple!(Types[0..1]) slice()()
{
Tuple!(Types[0..1]) x;
return x;
}
void fail()
{
Tuple!(float, double, int) a;
auto s = a.slice();
static assert(is(typeof(s) == Tuple!(float)));
}
}