We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2d6f3e commit a445cc5Copy full SHA for a445cc5
effekt/shared/src/main/scala/effekt/generator/js/TransformerCps.scala
@@ -250,8 +250,8 @@ object TransformerCps extends Transformer {
250
251
val stmts = binding.stmts
252
253
- stmts.last match {
254
- case terminator : (js.Stmt.Return | js.Stmt.Break | js.Stmt.Continue) => (e, stmts)
+ stmts.lastOption match {
+ case Some(terminator : (js.Stmt.Return | js.Stmt.Break | js.Stmt.Continue)) => (e, stmts)
255
case other => (e, stmts :+ js.Break())
256
}
257
},
0 commit comments