We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
package Repro opaque type Foo = Int object Foo { def empty: Foo = 0 } given FooOps { def (f: Foo) +(that: Int): Foo = f + that }
This code compiles, but in the repl you see:
sbt:dotty-example-project> console scala> import Repro.Foo scala> Foo.empty 1 |Foo.empty |^^^ |Not found: Foo
Note, if you remove the given FooOps { then it Foo.empty works. So, this is somehow an interaction with the FooOps.
given FooOps {
Foo.empty
I expect that if I can compile it, I can reference it.
This was on 0.18.1-RC1
The text was updated successfully, but these errors were encountered:
The issue cannot be reproduced.
Sorry, something went wrong.
No branches or pull requests
minimized code
This code compiles, but in the repl you see:
Note, if you remove the
given FooOps {
then itFoo.empty
works. So, this is somehow an interaction with the FooOps.expectation
I expect that if I can compile it, I can reference it.
This was on 0.18.1-RC1
The text was updated successfully, but these errors were encountered: