gw.lang.parser.exceptions.ParseResultsException: prog.gosu
Errors:
Expecting '}' to close statement block. [line:31 col:1] in
line 30: var person = new person("David", 56)
line 31: }
line 32:
Line Number: 31 Column: 1
name, is already defined. Please use a different name. [line:21 col:6] in
line 20:
line 21: var name: String
line 22: var age: int
Line Number: 21 Column: 6
age, is already defined. Please use a different name. [line:22 col:6] in
line 21: var name: String
line 22: var age: int
line 23:
Line Number: 22 Column: 6
Syntax error. [line:24 col:2] in
line 23:
line 24: construct(name: String, age: int){
line 25: this.name =name
Line Number: 24 Column: 2
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)