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
deftupleApp(i: Int, receiver: Tree) =// manually inlining the call to NonEmptyTuple#apply, because it's an inline method
332
+
deftupleApp(tuple: Type, i: Int, receiver: Tree) =// manually inlining the call to NonEmptyTuple#apply, because it's an inline method
332
333
ref(defn.RuntimeTuplesModule)
333
334
.select(defn.RuntimeTuples_apply)
334
335
.appliedTo(receiver, Literal(Constant(i)))
335
-
.cast(args(i).tpe.widen)
336
+
.cast(tuple.tupleElementTypes.applyOrElse(i, (_: Int) =>NoType).ensuring(_ !=NoType, i"Failed to find type at index $i in $tuple (${tree.sourcePos})"))
336
337
337
338
if (isSyntheticScala2Unapply(unapp.symbol) && caseAccessors.length == args.length)
0 commit comments