[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
Thu Jan 28 12:12:01 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3746



--- Comment #2 from Witold Baryluk <baryluk at smp.if.uj.edu.pl> 2010-01-28 12:12:00 PST ---
(In reply to comment #1)
> 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.

Yes you are right. Error messages should be as precise as possible.

-- 
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