-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matching against GADT tuple when multiple patterns result in the same expression produces an error #9799
Comments
Building against recent version (
|
@nojb Haha yeah, just tried against the recent version and got almost the same result. |
Note that the old behaviour was expected: GADTs did not support or-patterns until 4.08. The new behaviour (i.e. a fatal error) is obviously a bug. |
Having had a brief look, I'm a bit surprised by this: in parmatch when deciding if a match on a polymorphic variant is exhaustive, we expand the type of the variant pattern, which we expect to be a variant type. I'll look into it when it's not Sunday anymore. |
I'm not sure if it's a bug or by design but match in
fn
produces an error:P.S. I'm building against
ocaml: ~4.6.1000
The text was updated successfully, but these errors were encountered: