class Auto { // a final property -- no subtype can reimplement / override this! final property get Plate() : String final property set Plate(newPlate : String) final function RegisterWithDMV(registrationURL : String) } // a final function/method -- no concrete subtype can reimplement / override this!
Standard input is empty
Standard output is empty
gw.lang.parser.exceptions.ParseResultsException: prog.gosu Errors: Expecting '}' to close "class" statement. [line:6 col:1] in line 5: final function RegisterWithDMV(registrationURL : String) line 6: } line 7: // a final function/method -- no concrete subtype can reimplement / override this! Line Number: 6 Column: 1 Expecting '{' to open function body. [line:3 col:30] in line 2: // a final property -- no subtype can reimplement / override this! line 3: final property get Plate() : String line 4: final property set Plate(newPlate : String) Line Number: 3 Column: 30 Missing return statement. [line:6 col:1] in line 5: final function RegisterWithDMV(registrationURL : String) line 6: } line 7: // a final function/method -- no concrete subtype can reimplement / override this! Line Number: 6 Column: 1 at gw.internal.gosu.parser.ParserBase.verifyParsedElement(ParserBase.java:292) at gw.internal.gosu.parser.ParserBase.verifyParsedElement(ParserBase.java:263) at gw.internal.gosu.parser.GosuClassParser.parseDefinitions(GosuClassParser.java:475) at gw.internal.gosu.parser.GosuClass.compileDefinitionsIfNeeded(GosuClass.java:1551) at gw.internal.gosu.parser.GosuClass.compileDefinitionsIfNeeded(GosuClass.java:1494) at gw.internal.gosu.parser.GosuClass.isValid(GosuClass.java:925) at gw.internal.gosu.parser.GosuProgram_Proxy.isValid(gw.internal.gosu.parser.GosuProgram_Proxy:2) at gw.internal.gosu.parser.GosuProgramParser.parseExpressionOrProgram(GosuProgramParser.java:229) at gw.lang.Gosu.runWithFile(Gosu.java:621) at gw.lang.Gosu.start(Gosu.java:140) at gw.lang.Gosu.main(Gosu.java:70)