1
0
Selaa lähdekoodia

Fix parseFunction () not calling parseType with scope FUNCTION

Lucas de Souza 6 vuotta sitten
vanhempi
commit
fc8e7bdfd0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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++;