Skip to content

Commit 771b866

Browse files
committed
Document why large generic tuples are not exhaustivity checked
1 parent 5bafaac commit 771b866

File tree

1 file changed

+1
-0
lines changed
  • compiler/src/dotty/tools/dotc/transform/patmat

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/transform/patmat/Space.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ object SpaceEngine {
836836
val tpw = tp.widen.dealias
837837
val classSym = tpw.classSymbol
838838
classSym.is(Sealed) && !tpw.isLargeGenericTuple || // exclude large generic tuples from exhaustivity
839+
// requires an unknown number of changes to make work
839840
tpw.isInstanceOf[OrType] ||
840841
(tpw.isInstanceOf[AndType] && {
841842
val and = tpw.asInstanceOf[AndType]

0 commit comments

Comments
 (0)