D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6960 - detect static array parts of array literal
Summary: detect static array parts of array literal
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Linux
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-16 13:23 UTC by timon.gehr
Modified: 2024-12-13 17:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description timon.gehr 2011-11-16 13:23:56 UTC
void main(){
    int[2][] foo = [[1,1]];       // ok
    int[2][] bar = foo ~ [[1,1]]; // compile error
}

In the first case the compiler automatically figures out how to type the array literal. The second line should compile too.
Comment 1 dlangBugzillaToGithub 2024-12-13 17:56:59 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18382

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB