gosu-lang/gosu — Issue #73: parse error with infinite loop
Author: chrisgow
Created: 2012-03-08 21:20:22+00:00
State: open

I have the following function:

private function parseString() : String {
var buf = new StringBuilder()

while(true) {
var c = consume()
switch(c) {
case '"':
return buf.toString()
default:
buf.append(c)
}
}
}

The Gosu IJ plugin complains that the method is missing a return statement after the loop. I don't get an error in Java.

See https://groups.google.com/d/topic/gosu-lang/QFdVOoRGYsg/discussion