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
smarter
changed the title
Local optimisations inline too eagerly: System.out is final but still can be mutated by System.setOut
Local optimisations inline too eagerly: System.out is final but can still be mutated by System.setOut
Jun 18, 2017
Also update DropNoEffects to keep Select on static java field, to make sure a
Java class doesn't end up in value position. That's another bug, unrelated to
Without
-optimise
this code works, with-optimise
we get a NullPointerException.Without
-optimise
:With
-optimise
:Notice that the anonymous function now calls
System.out
instead ofout
.This happened in the Dotty Language Server (https://github.com/lampepfl/dotty/blob/master/language-server/src/dotty/tools/languageserver/Main.scala#L32-L35), the result is that outside projects cannot use the IDE with
scalaVersion := 0.2.0-bin-20170614-8ddfcaf-NIGHTLY
.The text was updated successfully, but these errors were encountered: