forgot 'new'
This commit is contained in:
parent
1e10393e76
commit
443a13998d
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ export const substitute = (type, substitutions, stack=[]) => {
|
|||
|
||||
export const assignFn = (funType, paramType) => {
|
||||
if (getSymbol(funType) !== symbolFunction) {
|
||||
throw NotAFunctionError(`${prettyT(funType)} is not a function type!`);
|
||||
throw new NotAFunctionError(`${prettyT(funType)} is not a function type!`);
|
||||
}
|
||||
[funType, paramType] = recomputeTypeVars([funType, paramType]);
|
||||
// console.log(prettyT(funType), prettyT(paramType));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue