File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1443,7 +1443,7 @@ class PatternMatcher extends MiniPhaseTransform with DenotTransformer {thisTrans
1443
1443
// require (nbSubPats > 0 && (!lastIsStar || isSeq))
1444
1444
protected def subPatRefs (binder : Symbol ): List [Tree ] = {
1445
1445
val refs = if (totalArity > 0 && isSeq) subPatRefsSeq(binder)
1446
- else if (totalArity > 1 && ! isSeq) productElemsToN(binder, totalArity)
1446
+ else if (defn.isProductSubType(binder.info) && ! isSeq) productElemsToN(binder, totalArity)
1447
1447
else ref(binder):: Nil
1448
1448
refs
1449
1449
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ object NonNullChar {
6
6
@ inline final val None = new NonNullChar (0 .toChar)
7
7
}
8
8
9
- final class SomeProduct /* extends Product3[String, Int, List[String]]*/ {
9
+ final class SomeProduct extends Product3 [String , Int , List [String ]] {
10
10
def canEqual (x : Any ) = x.isInstanceOf [SomeProduct ]
11
11
def _1 = " abc"
12
12
def _2 = 5
You can’t perform that action at this time.
0 commit comments