瀏覽代碼

Fix parseFunction () not calling parseType with scope FUNCTION

Lucas de Souza 6 年之前
父節點
當前提交
fc8e7bdfd0
共有 1 個文件被更改,包括 1 次插入1 次删除
  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++;