File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -112,15 +112,15 @@ object Applications {
112
112
RefinedType .make(defn.AnyType , names, tps)
113
113
}
114
114
getTp <:< superType(WildcardType ) && {
115
- val seqArg = getTp.member( nme.toSeq).info .elemType.hiBound
115
+ val seqArg = extractorMemberType(getTp, nme.toSeq).elemType.hiBound
116
116
getTp <:< superType(seqArg)
117
117
}
118
118
}
119
119
120
120
if (unapplyName == nme.unapplySeq) {
121
121
if (unapplyResult derivesFrom defn.SeqClass ) seqSelector :: Nil
122
122
else if (isGetMatch(unapplyResult, pos) && vaidUnapplySeqType(getTp)) {
123
- val seqArg = getTp.member( nme.apply).info.finalResultType
123
+ val seqArg = extractorMemberType(getTp, nme.toSeq).elemType.hiBound
124
124
if (seqArg.exists) args.map(Function .const(seqArg))
125
125
else fail
126
126
}
You can’t perform that action at this time.
0 commit comments