http://d.puremagic.com/issues/show_bug.cgi?id=7453
Kenji Hara <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|wrong-code |pull, rejects-valid --- Comment #2 from Kenji Hara <[email protected]> 2012-04-20 01:37:22 PDT --- Reduced test case: struct S { int opApply(int delegate(string) dg) { return 0; } } void main() { foreach (_; S()) { return; // Error: long has no effect in expression (0) // test.d(8): Error: cannot return non-void from void function } } Pull request: https://github.com/D-Programming-Language/dmd/pull/892 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
