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 works as expected if the case is on the line following the catch, at same or greater indent.
defk:String=try"WUT"catchcase t => println(s"Caught a case of $t")
"OK"
Compilation output
defk:String=try"WUT"catch
{
case t @ _ =>
println(
_root_.scala.StringContext.apply(
["Caught a case of ","":String]:String*
).s([t : Any]:Any*)
)
"OK"
}
expectation
"OK" result is not in the body of the catch case.
The text was updated successfully, but these errors were encountered:
minimized code
This works as expected if the
case
is on the line following thecatch
, at same or greater indent.Compilation output
expectation
"OK"
result is not in the body of the catch case.The text was updated successfully, but these errors were encountered: