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
Compiler crash when accessing case class on object called "$" #8297
Labels
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8297?orig=1 |
@adriaanm said: |
@dwijnand said: Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_92).
Type in expressions for evaluation. Or try :help.
scala> :pa
// Entering paste mode (ctrl-D to finish)
trait One {
case class Two()
}
object $ extends One
// Exiting paste mode, now interpreting.
defined trait One
defined object $
scala> $.Two()
res0: $.Two = Two() |
@dwijnand said: 15:53:54 $ scalac dollar.scala
15:53:58 $ scala
Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_92).
Type in expressions for evaluation. Or try :help.
scala> import dollar.$
import dollar.$
scala> $.Two()
error: Unable to locate class corresponding to inner class entry for Two$ in owner dollar.One |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given dollar.scala:
Trying to access the class on the object via the REPL causes it to crash:
The text was updated successfully, but these errors were encountered: