File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/transform/patmat Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 " )
You can’t perform that action at this time.
0 commit comments