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
type mismatch in ValDef with inferred existential type #4171
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4171?orig=1 |
@SethTisue said: |
@SethTisue said:
|
@paulp said: scala> val c = { class C; new C { def foo = 1 } }
c: ScalaObject{def foo: Int} = $anon$1@7b26c885
scala> c.foo
res0: Int = 1 |
@SethTisue said: |
@paulp said: |
@soc said: |
or without an anonymous class:
The text was updated successfully, but these errors were encountered: