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

Closed
japgolly opened this issue Apr 2, 2015 · 1 comment
Closed

lazy vals crash compiler #67

japgolly opened this issue Apr 2, 2015 · 1 comment

Comments

@japgolly
Copy link
Collaborator

japgolly commented Apr 2, 2015

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

Reproduction:

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

@lihaoyi
Copy link
Member

lihaoyi commented Sep 11, 2017

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

@lihaoyi lihaoyi closed this as completed Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants