Thread overview | |||||
---|---|---|---|---|---|
|
July 30, 2010 [Issue 4537] New: Confusing error message when foreach lacks semicolon (;) | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4537 Summary: Confusing error message when foreach lacks semicolon (;) Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Keywords: diagnostic Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: tomeksowi@gmail.com --- Comment #0 from Tomasz Sowiński <tomeksowi@gmail.com> 2010-07-30 13:05:00 PDT --- import std.stdio; import std.range; void main() { foreach (c, take(repeat('-'), 4)) write(c); } I just spent a good minute trying to decypher the error message: test.d(6): basic type expected, not 45U test.d(6): found '45U' when expecting ')' test.d(6): basic type expected, not 4 test.d(6): no identifier for declarator int test.d(6): found '4' when expecting ';' test.d(6): expression expected, not ')' I'd expect something like "if there's no ; then it's no good". BTW, what's that 45U? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 30, 2010 [Issue 4537] Confusing error message when foreach lacks semicolon (;) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tomasz Sowiński | http://d.puremagic.com/issues/show_bug.cgi?id=4537 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #1 from bearophile_hugs@eml.cc 2010-07-30 14:59:55 PDT --- See bug 3818 too. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 20, 2013 [Issue 4537] Confusing error message when foreach lacks semicolon (;) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tomasz Sowiński | http://d.puremagic.com/issues/show_bug.cgi?id=4537 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich@gmail.com Resolution| |DUPLICATE --- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-20 13:27:13 PST --- *** This issue has been marked as a duplicate of issue 3818 *** -- 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