www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21549] New: array ignored in alias declaration

https://issues.dlang.org/show_bug.cgi?id=21549

          Issue ID: 21549
           Summary: array ignored in alias declaration
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

alias AliasSeq(Args...) = Args;
alias fdsa = AliasSeq!(int);
alias asdf = fdsa[][][][][][][][];
pragma(msg, asdf); // (int)

back in 2.064 you got this error:

onlineapp.d(3): Error: can't have array of (int)
onlineapp.d(3): Error: can't have array of (int)
onlineapp.d(3): Error: can't have array of (int)
onlineapp.d(3): Error: can't have array of (int)
onlineapp.d(3): Error: can't have array of (int)
onlineapp.d(3): Error: can't have array of (int)
onlineapp.d(3): Error: can't have array of (int)
onlineapp.d(3): Error: can't have array of (int)
_error_

--
Jan 14