[Issue 3478] "no effect in expression" error on return to void

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 5 19:21:31 PST 2009


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



--- Comment #2 from Moritz Warning <moritzwarning at web.de> 2009-11-05 19:21:30 PST ---
You should change the spec in this case:

http://www.digitalmars.com/d/1.0/statement.html


"Expression is allowed even if the function specifies a void return type. The
Expression will be evaluated, but nothing will be returned."

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