We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af37d64 commit e847e5aCopy full SHA for e847e5a
compiler/src/dotty/tools/dotc/core/TypeOps.scala
@@ -641,6 +641,9 @@ object TypeOps:
641
if (maximize) lo else hi
642
643
def apply(tp: Type): Type = tp match {
644
+ case _: MatchType =>
645
+ tp // break cycles
646
+
647
case tp: TypeRef if isBounds(tp.underlying) =>
648
val lo = this(tp.info.loBound)
649
val hi = this(tp.info.hiBound)
tests/pos/8905.scala
@@ -0,0 +1,4 @@
1
+object Test {
2
+ def f[T1 <: Tuple](o: Option[Tuple.Concat[T1, T1]]): Unit =
3
+ o match { case Some(x) => }
4
+}
0 commit comments