Typo
This commit is contained in:
parent
8020f9d1a0
commit
82816e7fad
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ export function typecheck(defs: Definition[], typeDefs: TypeDefinition[] = [], c
|
||||||
} else {
|
} else {
|
||||||
let fnType: TypeAST = resultType;
|
let fnType: TypeAST = resultType;
|
||||||
for (let i = ctor.args.length - 1; i >= 0; i--) {
|
for (let i = ctor.args.length - 1; i >= 0; i--) {
|
||||||
fnType = { kind: 'type-function', param: ctor.args[0], result: fnType };
|
fnType = { kind: 'type-function', param: ctor.args[i], result: fnType };
|
||||||
}
|
}
|
||||||
env.set(ctor.name, fnType);
|
env.set(ctor.name, fnType);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue