You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Soundness issue with private rows and module inclusion #7704
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 [> A of string ];; function (A x : t) -> x;;
This might be related to the refinement of Parmatch for GADTs, but it's not immediate why, I will look into it.
Activity
vicuna commentedon Jan 4, 2018
Comment author: @lpw25
This seems to have appeared between 4.02.3 and 4.03.0.
vicuna commentedon Jan 5, 2018
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 [>
A of string ];; function (A x : t) -> x;;This might be related to the refinement of Parmatch for GADTs, but it's not immediate why, I will look into it.
vicuna commentedon Jan 5, 2018
Comment author: @garrigue
Fix in #1559: #1559
Someone review please...
vicuna commentedon Jan 5, 2018
Comment author: @yallop
Oops -- indeed. Thanks for the diagnosis & fix.
vicuna commentedon Jan 9, 2018
Comment author: @garrigue
Fixed in trunk and 4.06 branch by commits bd1b5a0 and 9d52b4c.
vicuna commentedon Jan 10, 2018
Comment author: @garrigue
Open a new PR (#1564) to provide better naming for the tags.