http://d.puremagic.com/issues/show_bug.cgi?id=6612
Summary: Associative arrays with associative array keys
literals
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2011-09-06 03:21:48 PDT ---
void main() {
auto aa1 = [1: 2]; // OK
auto aa2 = [4: 5]; // OK
int[int[int]] aa3 = [a1a:3, a1b:6]; // OK
int[int[int]] aa4 = [[1:2]:3, [4:5]:6]; // error
}
DMD 2.055beta shows:
test.d(5): comma expected separating array initializers, not :
test.d(5): semicolon expected, not '3'
test.d(5): found ':' when expecting ';' following statement
test.d(5): found ']' when expecting ';' following statement
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------