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
Problem with constraints, with type, and polymorphic variants #7834
Comments
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
I think this bug should at least be looked at. @garrigue do you think this can be fixed without major surgery? |
Have to think about it. Here it seems that doing some kind of garbage collection, discarding variables that appear only once, would solve the problem, but this is hardly a general solution. In general, this amounts to solving the equivalence of two constraints, which is hard. The next version should support that... |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
Original bug ID: 7834
Reporter: @lpw25
Status: new
Resolution: open
Priority: normal
Severity: minor
Category: typing
Monitored by: smuenzel-js @gasche
Bug description
The following code seems pretty reasonable:
but fails with the following error:
I haven't dug into this issue properly, but I can see basically how it happens. I'm not really sure there is much we can do to fix it, I suspect it would require comparing the different
&
ed types, and that has been ruled out as a too much of a PITA before. Still I figured it was worth reporting anyway.The text was updated successfully, but these errors were encountered: