Explorar o código

Fix parseFunction () not calling parseType with scope FUNCTION

Lucas de Souza %!s(int64=6) %!d(string=hai) anos
pai
achega
fc8e7bdfd0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      js/ast/ivprogParser.js

+ 1 - 1
js/ast/ivprogParser.js

@@ -362,7 +362,7 @@ export class IVProgParser {
       return null;
     }
     this.pos++;
-    const returnType = this.parseType(true);
+    const returnType = this.parseType(IVProgParser.FUNCTION);
     const functionID = this.parseID(IVProgParser.FUNCTION);
     this.checkOpenParenthesis();
     this.pos++;