digitalmars.D.bugs - [Issue 12468] New: Improve foreach type mismatch error message
- d-bugmail puremagic.com (22/22) Mar 25 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12468
https://d.puremagic.com/issues/show_bug.cgi?id=12468 Summary: Improve foreach type mismatch error message Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: jlquinn optonline.net --- svm_node*[] SV; foreach (const ref p; SV[i]) { ... } DMD gives: Error: invalid foreach aggregate SV[cast(ulong)i] I had to stare at this for a bit to figure out what was going on. I would have been helped if DMD had reported the type of SV[cast(ulong)i] in the message. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 25 2014