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
object Bug { trait Foo { def foo: this.type } case class Impl() extends Foo { def foo = ??? def bar: Unit = () } object Foo { def foo(f: Foo): f.type = f.foo } def work(f: Impl): Unit = Foo.foo(f).bar def bug(f: Int => Impl): Unit = Foo.foo(f(1)).bar def workaround(f: Int => Impl): Unit = { val tmp = f(1) Foo.foo(tmp).bar } }
<console>:27: error: value bar is not a member of Bug.Foo Foo.foo(f(1)).bar
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-8493?orig=1 Reporter: Yorick Laupa (yoeight_) Affected Versions: 2.10.4
Sorry, something went wrong.
scala/scala@98cdb38
Merge pull request #9742 from joroKr21/t8493
351482a
Fix scala/bug#8493 - add regression test
not sure what the fix version should be
No branches or pull requests
The text was updated successfully, but these errors were encountered: