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
Test suite finished with 3 cases failing:
fail - continuations-run/match2.scala [compilation failed]% scalac match2.scala
match2.scala:9: error: error during expansion of this match (this is a scalac bug).
The underlying error was: type mismatch;
found : (String, String) @scala.util.continuations.cpsSynth @scala.util.continuations.cpsParam[String,String]
required: (String, String)
val (a, b) = shift { k: (((String,String)) => String) => k("A","B") }
Usually, the pattern match translation converts a
Match
to code consisting of if/else and label jumps.
However, if it able to express the result as a table switch,
it emits another
Match
node.The pattern matcher phase's TypingTransformer then typechecks
that without an expected type, which needlessly lubs the
cases.
Suggested fix:
https://github.com/retronym/scala/compare/topic;match-pt?expand=1
Will it Blend?
https://scala-webapps.epfl.ch/jenkins/job/scala-checkin-manual/926/console
The text was updated successfully, but these errors were encountered: