http://d.puremagic.com/issues/show_bug.cgi?id=3746
--- Comment #9 from bearophile_h...@eml.cc 2011-06-13 14:31:09 PDT --- (In reply to comment #8) > https://github.com/D-Programming-Language/dmd/pull/121 > > This adds the error message: > testx.d(4): Error: expression with no side effects used with void return > > Good enough? I don't understand. Elsewhere I have a bug report that asks for a new error message if you don't use the result of a pure function. But this bug report just asks for a better error message in the situation of using "return x;" in a void function. So I expected an error message like: foo.d(20): Error: a void function can't return 'int'. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------