[Issue 3746] Misleding error message "OP has no effect in expression XXX), in void function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 27 19:59:25 PST 2010


Bernard Helyer <blood.of.life at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |blood.of.life at gmail.com

--- Comment #1 from Bernard Helyer <blood.of.life at gmail.com> 2010-01-27 19:59:24 PST ---
Well, obviously return *is* allowed from void functions (void f() { return; }).
But 'error: return statement with a value in a void function' would be a
preferable message than talking about values having no effect in expressions.

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

More information about the Digitalmars-d-bugs mailing list