[Issue 11421] New: Dynamic array of associative array literal type inference
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 2 11:45:38 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11421
Summary: Dynamic array of associative array literal type
inference
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2013-11-02 11:45:35 PDT ---
void main() {
const a1 = [[1: 2]]; // line 3, error
const int[int][] a2 = [[1: 2]]; // OK.
}
dmd 2.064beta4 gives:
test.d(3): Error: variable a1 cannot infer type from initializer
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list