forgot 'new'

This commit is contained in:
Joeri Exelmans 2025-05-13 17:50:23 +02:00
parent 1e10393e76
commit 443a13998d

View file

@ -188,7 +188,7 @@ export const substitute = (type, substitutions, stack=[]) => {
export const assignFn = (funType, paramType) => { export const assignFn = (funType, paramType) => {
if (getSymbol(funType) !== symbolFunction) { 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]); [funType, paramType] = recomputeTypeVars([funType, paramType]);
// console.log(prettyT(funType), prettyT(paramType)); // console.log(prettyT(funType), prettyT(paramType));