Issue ID: 18572
           Summary: AliasSeq default arguments are broken
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd

DMD 2.079.0:

alias Seq(T...)=T;
void func(Seq!(int,int,int) args=Seq!(1,2,3)){ // ok
void main(){
    Seq!(int,int,int) args=Seq!(1,2,3); // ok
    func(); // error
    func(args); // ok

The code should compile.


Reply via email to