typo
This commit is contained in:
parent
0d3ccee7d5
commit
664f31447f
2 changed files with 8 additions and 8 deletions
|
|
@ -157,7 +157,7 @@ export const unify = (typeA, typeB) => {
|
|||
|
||||
// A and B are not typevars
|
||||
if (typeA.symbol !== typeB.symbol) {
|
||||
throw new IncompabibleTypesError(typeA, typeB);
|
||||
throw new IncompatibleTypesError(typeA, typeB);
|
||||
}
|
||||
|
||||
const subs = zip(typeA.params, typeB.params)
|
||||
|
|
@ -171,11 +171,11 @@ export const unify = (typeA, typeB) => {
|
|||
}
|
||||
catch (e) {
|
||||
if (e instanceof SubstitutionCycle) {
|
||||
throw new IncompabibleTypesError(typeA, typeB, e);
|
||||
throw new IncompatibleTypesError(typeA, typeB, e);
|
||||
}
|
||||
if (e instanceof IncompabibleTypesError) {
|
||||
if (e instanceof IncompatibleTypesError) {
|
||||
// nest errors to get a nice trace of what went wrong
|
||||
throw new IncompabibleTypesError(typeA, typeB, e);
|
||||
throw new IncompatibleTypesError(typeA, typeB, e);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue