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
This should clearly run without error, but the assertion fails in 2.11.x when -optimise is specified. It works fine if -optimise is left off, and it works fine in scala 2.10.x.
I also tried this with the latest scala nightly build (scala-2.11.8-7492bda-nightly), but it still fails.
The text was updated successfully, but these errors were encountered:
@retronym said:
Regressed in scala/scala@69109c0. Workaround is to avoid the optimizer, or to use -Yconst-opt:false, which disabled the optimizations introduced in that commit.
% scalac test/files/run/t9422.scala && scala Test // okay
% scalac -Yconst-opt:false -optimize test/files/run/t9422.scala && scala Test // okay
Here is another case where the optimizer in scala
2.11.x
is generating incorrect code:This should clearly run without error, but the assertion fails in
2.11.x
when-optimise
is specified. It works fine if-optimise
is left off, and it works fine in scala2.10.x
.I also tried this with the latest scala nightly build (
scala-2.11.8-7492bda-nightly
), but it still fails.The text was updated successfully, but these errors were encountered: