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 {
626
626
val protoTp1 = thisTypeMap(tp1.appliedTo(tvars))
627
627
628
628
if (protoTp1 <:< tp2) {
629
- isFullyDefined(protoTp1, force)
630
- instUndetMap(protoTp1)
629
+ if ( isFullyDefined(protoTp1, force)) protoTp1
630
+ else instUndetMap(protoTp1)
631
631
}
632
632
else {
633
633
val protoTp2 = typeParamMap(tp2)
634
634
if (protoTp1 <:< protoTp2) {
635
- isFullyDefined(AndType (protoTp1, protoTp2), force)
636
- instUndetMap(protoTp1)
635
+ if ( isFullyDefined(AndType (protoTp1, protoTp2), force)) protoTp1
636
+ else instUndetMap(protoTp1)
637
637
}
638
638
else {
639
639
debug.println(s " $protoTp1 <:< $protoTp2 = false " )
You can’t perform that action at this time.
0 commit comments