-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Double eta-expansion when ascribing contextual types #6375
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
Labels
Comments
Note that this affects all |
This one's moved to a new milestone for the third time already... |
Will get back to it. |
I'll remove it from the milestones FTTB |
This is hard to avoid, since there are a number of ways how we could close over a context parameter twice. I think it's easiest to detect and drop these patterns later in a miniphase. |
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Mar 8, 2020
odersky
added a commit
that referenced
this issue
Mar 8, 2020
Fix #6375: Add miniphase for simple beta reductions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When we use a contextual type as a return type
it η-expands once ->
However, if we provide an explicit ascription:
it expands unnecessarily twice:
The text was updated successfully, but these errors were encountered: