You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scala-hash origin/2.10.x -nc -Xcheckinit
[info] origin/2.1=>/Users/jason/usr/scala-v2.10.1-223-g53e031f
Welcome to Scala version 2.10.2-20130407-091443-53e031f553 (JavaHotSpot(TM) 64-BitServerVM, Java1.6.0_37).
Type in expressions to have them evaluated.
Type:help for more information.
scala>objectterminal0 {
|privatevarcache:Any= ()
|defreturning(f: () =>Unit) = ()
|deffoo {
| returning(() => cache = ())
| }
||defapply():Any= {
| cache
| }
| }
defined module terminal0
scala> terminal0()
scala.UninitializedFieldError:Uninitializedfield: <console>:8
at terminal0$.cache(<console>:8)
@eugene: Can you please submit a reversion PR, and include this test case? It should be a run test case, with -Xcheckinit in the .flags file. We can then figure out what's really going on without the pressure of a broken build.
The text was updated successfully, but these errors were encountered:
Test case:
@eugene: Can you please submit a reversion PR, and include this test case? It should be a run test case, with
-Xcheckinit
in the .flags file. We can then figure out what's really going on without the pressure of a broken build.The text was updated successfully, but these errors were encountered: