Bug 21549 – array ignored in alias declaration

Status
RESOLVED
Resolution
WONTFIX
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-01-14T17:47:46Z
Last change time
2021-01-14T21:46:15Z
Assigned to
No Owner
Creator
John Colvin

Comments

Comment #0 by john.loughran.colvin — 2021-01-14T17:47:46Z
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_
Comment #1 by ag0aep6g — 2021-01-14T20:13:00Z
Comment #2 by john.loughran.colvin — 2021-01-14T21:46:15Z
(In reply to ag0aep6g from comment #1) > https://dlang.org/changelog/2.065.0.html#slicing-tuple Haha wow that's awful in the case I showed but also I guess makes sense. Swings and roundabouts. Ok.