Skip to content

Commit 6c58df8

Browse files
committed
address reviews
1 parent 296e963 commit 6c58df8

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -626,14 +626,14 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
626626
val protoTp1 = thisTypeMap(tp1.appliedTo(tvars))
627627

628628
if (protoTp1 <:< tp2) {
629-
isFullyDefined(protoTp1, force)
630-
instUndetMap(protoTp1)
629+
if (isFullyDefined(protoTp1, force)) protoTp1
630+
else instUndetMap(protoTp1)
631631
}
632632
else {
633633
val protoTp2 = typeParamMap(tp2)
634634
if (protoTp1 <:< protoTp2) {
635-
isFullyDefined(AndType(protoTp1, protoTp2), force)
636-
instUndetMap(protoTp1)
635+
if (isFullyDefined(AndType(protoTp1, protoTp2), force)) protoTp1
636+
else instUndetMap(protoTp1)
637637
}
638638
else {
639639
debug.println(s"$protoTp1 <:< $protoTp2 = false")

0 commit comments

Comments
 (0)