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 3489972 commit 060b239Copy full SHA for 060b239
compiler/src/dotty/tools/backend/jvm/LabelDefs.scala
@@ -77,6 +77,19 @@ class LabelDefs extends MiniPhase {
77
assert(t.symbol is Label)
78
EmptyTree
79
case t: If =>
80
+ // Trees generated by pattern matcher usually looks like the
81
+ // following:
82
+ //
83
+ // ...
84
+ // }
85
+ // else case58(x704)
86
87
88
89
90
91
+ // First transform on the else branch will make labeldef
92
+ // inserted on a shallow node.
93
val elsep2 = transform(t.elsep)
94
val thenp2 = transform(t.thenp)
95
cpy.If(tree)(transform(t.cond), thenp2, elsep2)
0 commit comments