d: Merge upstream dmd, druntime 26f049fb26, phobos 330d6a4fd.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / test18572.d
blob5edc1a72d30c66e920d11caf2718a67895e082be
1 // https://issues.dlang.org/show_bug.cgi?id=18572
3 alias Seq(T...) = T;
4 void func(Seq!(int, int, int) args = Seq!(1, 2, 3)) {}
5 void func2(Seq!(int, int, int) args = Seq!(1,2,3), Seq!(int, int) args2 = Seq!(4, 5)) {}
7 void main(){
8 Seq!(int,int,int) args = Seq!(1, 2, 3); // ok
9 func(); // error
10 func(args); // ok
12 Seq!(int, int) args2 = Seq!(4, 5);
13 func2();
14 func2(args);
15 func2(args, args2);