Created
March 12, 2016 00:15
-
-
Save mpilquist/faa3c97cfd73f3d77491 to your computer and use it in GitHub Desktop.
Regression in 2.11.8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A { | |
private case class B(x: Int) | |
private object B { | |
val z = B(0) | |
} | |
val a = B.z.x | |
} | |
/* Compiling under 2.11.7 and running (new A).a results in 0 | |
Compiling under 2.11.8 and running (new A).a results in SOE: | |
at A$B$.<init>(a.scala:4) | |
at A.A$$B$lzycompute(a.scala:3) | |
at A.A$$B(a.scala:3) | |
at A$B$.<init>(a.scala:4) | |
at A.A$$B$lzycompute(a.scala:3) | |
at A.A$$B(a.scala:3) | |
at A$B$.<init>(a.scala:4) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment