Explorar el Código

Fix parseFunction () not calling parseType with scope FUNCTION

Lucas de Souza hace 6 años
padre
commit
fc8e7bdfd0
Se han modificado 1 ficheros con 1 adiciones y 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++;