diff --git a/lib/typing/unify.ml b/lib/typing/unify.ml index c3db4aa..eefe017 100644 --- a/lib/typing/unify.ml +++ b/lib/typing/unify.ml @@ -23,7 +23,7 @@ let occurs (tpv : tv ref) (te : ty) : unit = let[@warning "-8"] (Unbound (_, level)) = !tpv in let min_level = min level level' in tpv'.contents <- Unbound (tvn', min_level) - | Ty_qvar _ -> () + | Ty_qvar _ -> failwith "internal error: unify with quantified type variable" | Ty_arrow (te1, te2) -> go te1; go te2