This mostly matters in the context of dependent unification (cf #63): TypeMismatch errors are thrown for the individual subtypes that don’t unify, which may be arbitrary leaves of some much larger type. We should throw errors which include the overall types, and ideally highlighting the incompatible portions à la Elm.
This mostly matters in the context of dependent unification (cf #63):
TypeMismatch
errors are thrown for the individual subtypes that don’t unify, which may be arbitrary leaves of some much larger type. We should throw errors which include the overall types, and ideally highlighting the incompatible portions à la Elm.