Skip to content

Loading…

Lazy vals aren't forced, which is good, but their value isn't printed if they are evaluated #60

Open
dotta opened this Issue · 0 comments

1 participant

@dotta
Eclipse Scala IDE member

It would be nice if after evaluation the evaluation of a is updated to the computed value, i.e., 2

object f {
  lazy val a = 2                              //> a : Int = <lazy>

  a + 2                                           //> res0: Int = 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.