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 296e963 commit 6c58df8Copy full SHA for 6c58df8
compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
@@ -626,14 +626,14 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
626
val protoTp1 = thisTypeMap(tp1.appliedTo(tvars))
627
628
if (protoTp1 <:< tp2) {
629
- isFullyDefined(protoTp1, force)
630
- instUndetMap(protoTp1)
+ if (isFullyDefined(protoTp1, force)) protoTp1
+ else instUndetMap(protoTp1)
631
}
632
else {
633
val protoTp2 = typeParamMap(tp2)
634
if (protoTp1 <:< protoTp2) {
635
- isFullyDefined(AndType(protoTp1, protoTp2), force)
636
+ if (isFullyDefined(AndType(protoTp1, protoTp2), force)) protoTp1
637
638
639
debug.println(s"$protoTp1 <:< $protoTp2 = false")
0 commit comments