We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
3.0.0
trait A { def combine(another: A): A = ??? } trait Dsl { def example: A } object Dsl { def execute(program: (dsl: Dsl) ?=> Int): String = ??? } def example(using a: Dsl): A = ??? import Dsl._ def demo = Dsl.execute { // change to `combine` and it compiles example notCombine example 42 }
no implicit argument of type Dsl was found for parameter a of method example
value notCombine is not a member of A
Note: the correct behavior is triggered if execute is a top level definition, or it's imported from Dsl._ and used without a prefix.
execute
Dsl._
The same behavior can be seen if combine is an extension method instead of a direct one.
combine
The text was updated successfully, but these errors were encountered:
Even more regression tests
7bcb84c
Closes scala#12448 Closes scala#12487 Closes scala#12160
bb29040
d036800
Successfully merging a pull request may close this issue.
Compiler version
3.0.0
Minimized code
Output
Expectation
value notCombine is not a member of A
Note: the correct behavior is triggered if
execute
is a top level definition, or it's imported fromDsl._
and used without a prefix.The same behavior can be seen if
combine
is an extension method instead of a direct one.The text was updated successfully, but these errors were encountered: