Skip to content
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

lazy vals crash compiler #67

japgolly opened this issue Apr 2, 2015 · 1 comment


Copy link

commented Apr 2, 2015

Yo. It seems lazy vals within tests crash scalac.
It happens when compiling for JVM and JS.


object What { def mf1 = 2 }
object SomeTest extends TestSuite {
  override def tests = TestSuite {
    import What._
    lazy val subj = mf1

You can see big error messages if you want in scala-js/scala-js#1580


This comment has been minimized.

Copy link

commented Sep 11, 2017

This should be fixed in Scala 2.12.x in 36c2c3d, enforced in c1799d2

@lihaoyi lihaoyi closed this Sep 11, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.