[Issue 3229] No return or assert(0) at end of function
http://d.puremagic.com/issues/show_bug.cgi?id=3229 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #1 from Walter Bright bugzi...@digitalmars.com 2009-08-05 14:12:20 PDT --- Example, please! (Yes, I know, why don't I just write one? Because most of the time when I write one and guess at the details, the problem does not occur, because the description omits crucial information.) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3229] No return or assert(0) at end of function
http://d.puremagic.com/issues/show_bug.cgi?id=3229 --- Comment #2 from Jason House jason.james.ho...@gmail.com 2009-08-05 16:53:47 PDT --- Your wish is my demand! int main(){ enum foo{ bar }; foo x; final switch(x){ case foo.bar: return 0; } } buggy.d(1): Error: function main.main no return exp; or assert(0); at end of function -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---