November 02, 2013 [Issue 11421] New: Dynamic array of associative array literal type inference | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@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: ------- |
Copyright © 1999-2021 by the D Language Foundation