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
Mixing pattern matching and continuations causes an surprising warning in 2.10.0-RC5, though the code compiles fine in 2.9.2
$ /usr/local/scala-2.10.0-RC5/bin/scalac -P:continuations:enable bug1.scala
bug1.scala:7: warning: expression matchEnd6(x: Int){
x
} is cps-transformed unexpectedly
x match {
^
one warning found
When the case analysis appears in a catch statement, the warning becomes a compiler crash that has a lot to say about itself. I've attached the output of
Ngoc Dao (ngocdaothanh) said:
I've also seen this warning:
[warn] /Users/ngoc/src/xitrum-demos/src/main/scala/demos/controller/BoringGreeter.scala:79: expression matchEnd7(x: String){
[warn] x
[warn] } is cps-transformed unexpectedly
[warn] params.get("Favorite book") match {
[warn] ^
[warn] one warning found
To reproduce it:
git clone git://github.com/ngocdaothanh/xitrum-demos.git
cd xitrum-demos
sbt/sbt run
@adriaanm said:
Sorry, the continuations plugin has been unsupported for a while now. Please open an issue over at https://github.com/scala/scala-continuations (we're still looking for a maintainer for it, though).
Mixing pattern matching and continuations causes an surprising warning in 2.10.0-RC5, though the code compiles fine in 2.9.2
$ /usr/local/scala-2.10.0-RC5/bin/scalac -P:continuations:enable bug1.scala
bug1.scala:7: warning: expression matchEnd6(x: Int){
x
} is cps-transformed unexpectedly
x match {
^
one warning found
When the case analysis appears in a catch statement, the warning becomes a compiler crash that has a lot to say about itself. I've attached the output of
$ /usr/local/scala-2.10.0-RC5/bin/scalac -P:continuations:enable bug2.scala
The text was updated successfully, but these errors were encountered: