Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Scrutinee discarded in match with only refutation cases #7230
Original bug ID: 7230
The following program raises Match_error:
type _ t = T : int t
I think it should instead raise Not_found.
More generally, the code of the scrutinee is entirely discarded when a match has only refutation cases, but it should be retained and executed, even though the match itself is guaranteed to fail.