1
0
mirror of https://github.com/fluencelabs/assemblyscript synced 2025-07-10 12:01:53 +00:00

Fix compilation of immediate called function expressions

This commit is contained in:
dcodeIO
2018-03-12 22:34:40 +01:00
parent c93f0bb1fe
commit 7ee6e1cf7b
8 changed files with 92 additions and 19 deletions

@ -1,5 +1,6 @@
import {
Class
Class,
FunctionTarget
} from "./program";
import {
@ -452,6 +453,8 @@ export class Signature {
thisType: Type | null;
/** Whether the last parameter is a rest parameter. */
hasRest: bool;
/** Cached {@link FunctionTarget}. */
cachedFunctionTarget: FunctionTarget | null = null;
constructor(
parameterTypes: Type[] | null = null,