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

Open
dotta opened this Issue Aug 16, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@dotta
Member

dotta commented Aug 16, 2012

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