mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
16 lines
419 B
D
16 lines
419 B
D
// https://issues.dlang.org/show_bug.cgi?id=18572
|
|
|
|
alias Seq(T...) = T;
|
|
void func(Seq!(int, int, int) args = Seq!(1, 2, 3)) {}
|
|
void func2(Seq!(int, int, int) args = Seq!(1,2,3), Seq!(int, int) args2 = Seq!(4, 5)) {}
|
|
|
|
void main(){
|
|
Seq!(int,int,int) args = Seq!(1, 2, 3); // ok
|
|
func(); // error
|
|
func(args); // ok
|
|
|
|
Seq!(int, int) args2 = Seq!(4, 5);
|
|
func2();
|
|
func2(args);
|
|
func2(args, args2);
|
|
}
|