You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"If possible, please file a bug on https://github.com/lampepfl/dotty/issues")
862
862
863
863
tp match {
864
-
casetp: ThisTypeif tp.cls == defn.ArrayClass=>ObjectReference.asInstanceOf[ct.bTypes.ClassBType] // was introduced in 9b17332f11 to fix SI-999, but this code is not reached in its test, or any other test
864
+
casetp: ThisTypeif tp.cls == defn.ArrayClass=>ObjectRef.asInstanceOf[ct.bTypes.ClassBType] // was introduced in 9b17332f11 to fix SI-999, but this code is not reached in its test, or any other test
// Approximate `lub`. The common type of two references is always ObjectReference.
168
-
ObjectReference
168
+
ObjectRef
169
169
}
170
170
171
171
/**
@@ -668,7 +668,7 @@ abstract class BTypes {
668
668
if (this== other) returntrue
669
669
670
670
if (isInterface) {
671
-
if (other ==ObjectReference) returntrue// interfaces conform to Object
671
+
if (other ==ObjectRef) returntrue// interfaces conform to Object
672
672
if (!other.isInterface) returnfalse// this is an interface, the other is some class other than object. interfaces cannot extend classes, so the result is false.
673
673
// else: this and other are both interfaces. continue to (*)
674
674
} else {
@@ -698,13 +698,13 @@ abstract class BTypes {
698
698
// exercised by test/files/run/t4761.scala
699
699
if (other.isSubtypeOf(this)) this
700
700
elseif (this.isSubtypeOf(other)) other
701
-
elseObjectReference
701
+
elseObjectRef
702
702
703
703
case (true, false) =>
704
-
if (other.isSubtypeOf(this)) thiselseObjectReference
704
+
if (other.isSubtypeOf(this)) thiselseObjectRef
705
705
706
706
case (false, true) =>
707
-
if (this.isSubtypeOf(other)) other elseObjectReference
707
+
if (this.isSubtypeOf(other)) other elseObjectRef
708
708
709
709
case _ =>
710
710
// TODO @lry I don't really understand the reasoning here.
0 commit comments