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
Definition and use of an object in a function causes compiler crash #1195
Comments
Imported From: https://issues.scala-lang.org/browse/SI-1195?orig=1 |
@JamesIry said: |
@JamesIry said: |
Aaron Harnly (aaronharnly) said: { object Bar ; Bar } which gives a type error: found : Bar.type(in object $$iw) where type Bar.type(in object $$iw) <: Bar with Singleton
required: Bar.type(in value res1) forSome { type Bar.type(in value res1) <: Bar with Singleton; type Bar <: java.lang.Object with ScalaObject } should maybe return a value of type ScalaObject? |
Aaron Harnly (aaronharnly) said: |
@paulp said: |
The following (illegal) code causes a compiler crash in 2.7.1 final
{() => case class Bar; Bar}
The text was updated successfully, but these errors were encountered: