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
Soundness bug related to type constraints #6275
Comments
Comment author: @lpw25 This appears to be related to the injectivity bug. A type which unifies with:
may not be injective in 'a since it might be [`Y]. I think something similar is happening in this bug. |
Comment author: @lpw25 Same bug using GADTs instead of constraints:
|
Comment author: @garrigue Fixed in trunk and 4.01, at revisions 14363 and 14364. It is indeed very similar to #5985 as the problem is non-injectivity, |
Comment author: @damiendoligez Reopened because on 4.01 the fix breaks the regression test for #5985. |
Comment author: @lpw25 It looks like revision 14364 doesn't actually include the fix, only the tests for the bug. |
Comment author: @garrigue Indeed, I committed in testsuite for 4.01... |
Original bug ID: 6275
Reporter: @lpw25
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2015-12-11T18:25:30Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.01.0
Fixed in version: 4.01.1+dev
Category: typing
Related to: #5985
Monitored by: @yallop @hcarty
Bug description
Soundness bug related to type constraints reported by art-w on reddit:
The text was updated successfully, but these errors were encountered: