-
Notifications
You must be signed in to change notification settings - Fork 35
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
Multiple map key patterns raise an unexpected type check error #507
Comments
Thanks for raising this, @javiergarea! This is a problem caused by refining a map key with a match-all
I think we'll have to drop exhaustiveness checking on maps to solve this, at least in the short/mid term. |
I agree with the analysis @erszcz. Since |
@javiergarea To show how to reproduce a problem, I recommend adding the example module under |
@zuiderkwast You are totally right! #508 |
Current behaviour
Given the following spec and implementation:
gradualizer
raises aThe expression <<"b">> on line 13 at column 9 is not a valid key in the map type #{}
.Expected behaviour
No type check errors.
Notes
The text was updated successfully, but these errors were encountered: