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
Copy file name to clipboardExpand all lines: src/dotty/tools/dotc/transform/PatternMatcher.scala
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ class PatternMatcher extends MiniPhaseTransform with DenotTransformer {thisTrans
105
105
deftupleSel(binder: Symbol)(i: Int):Tree= ref(binder).select(nme.productAccessorName(i)) // make tree that accesses the i'th component of the tuple referenced by binder
106
106
defindex(tgt: Tree)(i: Int):Tree= {
107
107
if (i >0) tgt.select(defn.Seq_apply).appliedTo(Literal(Constant(i)))
108
-
else tgt.select(defn.Seq_head).appliedToNone
108
+
else tgt.select(defn.Seq_head).appliedIfMethod
109
109
}
110
110
111
111
// Right now this blindly calls drop on the result of the unapplySeq
@@ -232,7 +232,7 @@ class PatternMatcher extends MiniPhaseTransform with DenotTransformer {thisTrans
0 commit comments