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 682dfb5 commit 496bc3cCopy full SHA for 496bc3c
compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala
@@ -785,7 +785,7 @@ object PatternMatcher {
785
object AlternativesPlan {
786
def unapply(plan: LabeledPlan): Option[(List[Tree], Plan)] = {
787
plan.expr match {
788
- case SeqPlan(LabeledPlan(innerLabel, innerPlan), ons) =>
+ case SeqPlan(LabeledPlan(innerLabel, innerPlan), ons) if !canFallThrough(ons) =>
789
val outerLabel = plan.sym
790
val alts = List.newBuilder[Tree]
791
def rec(innerPlan: Plan): Boolean = innerPlan match {
0 commit comments