[Issue 21549] New: array ignored in alias declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 14 17:47:46 UTC 2021


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 at puremagic.com
          Reporter: john.loughran.colvin at 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_

--


More information about the Digitalmars-d-bugs mailing list