-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Cannot call overloaded method variant with context function parameter #16506
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
Milestone
Comments
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 13, 2022
Fixes scala#16506 We now handle the cases where an argument of an overloaded method is a context closure. The closure must be given implicitly. It cannot be inferred since at the time where the argument is typed, there is no expected expected type to expand it to a context closure.
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 13, 2022
Fixes scala#16506 We now handle the cases where an argument of an overloaded method is a context closure. The closure must be given implicitly. It cannot be inferred since at the time where the argument is typed, there is no expected expected type to expand it to a context closure.
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 13, 2022
Fixes scala#16506 We now handle the cases where an argument of an overloaded method is a context closure. The closure must be given implicitly. It cannot be inferred since at the time where the argument is typed, there is no expected expected type to expand it to a context closure.
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 13, 2022
Fixes scala#16506 We now handle the cases where an argument of an overloaded method is a context closure. The closure must be given implicitly. It cannot be inferred since at the time where the argument is typed, there is no expected expected type to expand it to a context closure.
odersky
added a commit
that referenced
this issue
Dec 15, 2022
Fixes #16506 We now handle the cases where an argument of an overloaded method is a context closure. The closure must be given implicitly. It cannot be inferred since at the time where the argument is typed, there is no expected expected type to expand it to a context closure.
little-inferno
pushed a commit
to little-inferno/dotty
that referenced
this issue
Jan 25, 2023
Fixes scala#16506 We now handle the cases where an argument of an overloaded method is a context closure. The closure must be given implicitly. It cannot be inferred since at the time where the argument is typed, there is no expected expected type to expand it to a context closure.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
3.2.1
Minimized code
Output
Expectation
This should compile as the compiler has enough information to know which overloaded method variant to use.
The text was updated successfully, but these errors were encountered: