D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21549 - array ignored in alias declaration
Summary: array ignored in alias declaration
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 major
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-14 17:47 UTC by John Colvin
Modified: 2021-01-14 21:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description John Colvin 2021-01-14 17:47:46 UTC
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 2 John Colvin 2021-01-14 21:46:15 UTC
(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.