Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Soundness issue with private rows and module inclusion #7704
Original bug ID: 7704
With OCaml 4.06.0:
$ cat pr.ml
let _ = match M.x with `A s -> s
$ ocaml pr.ml
Inspired by PR7703
Comment author: @garrigue
Well, to be more precise, matching on an open polymorphic variant type without a default case should raise a warning, so this is not directly related to modules.
Here is a smaller example.
type t = private [>
This might be related to the refinement of Parmatch for GADTs, but it's not immediate why, I will look into it.