Bug 6960 – detect static array parts of array literal

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-11-16T13:23:56Z
Last change time
2024-12-13T17:56:59Z
Assigned to
No Owner
Creator
timon.gehr
Moved to GitHub: dmd#18382 →

Comments

Comment #0 by timon.gehr — 2011-11-16T13:23:56Z
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 by robert.schadek — 2024-12-13T17:56:59Z
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