-
Notifications
You must be signed in to change notification settings - Fork 5
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
Inference in presence of 'error' #380
Comments
A different example I expected to typecheck is
|
The first example is ok, for now. The second breaks linear base, probably. It's bad. |
After a discussion, for now let's restore the |
WIP on
|
Lint it supposed to be aware of this rule. We need to implement it in the submultiplicity check that lint does. (there used to be a submultiplicity predicate in |
The Remaining work:
|
Likely culprit: |
Moved to upstream:#18731. |
I'd expect this to typecheck:
We don't fully support inference yet, but this one contains merely application, no lambdas or case. Workaround:
f x = (error "bad" :: a ->. b) x
.The fix could be guarded on LinearTypes, as in #379.
The text was updated successfully, but these errors were encountered: