http://d.puremagic.com/issues/show_bug.cgi?id=4605
Summary: Wrong print of an int[string] aa
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2010-08-09 08:47:54 PDT ---
This D2 program, compiled with dmd 2.048b:
import std.stdio;
void main() {
int[string] aa = ["10":10, "20":20];
writeln(aa);
}
Prints (note the 1:10, that is a bug):
20:20 1:10
The expected less buggy and less barbaric output is:
["10": 10, "20": 20]
Or:
["20": 20, "10": 10]
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------