Skip to content

Commit

Permalink
mark a branch as never reach
Browse files Browse the repository at this point in the history
  • Loading branch information
butterunderflow committed Aug 17, 2024
1 parent fcb26c8 commit 06777e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/typing/unify.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06777e8

Please sign in to comment.