Skip to content

Commit 2f8dc49

Browse files
committed
fix test for abstract types
1 parent 1729899 commit 2f8dc49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/transform/IsInstanceOfChecker.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ object Checkable {
8888
def recur(X: Type, P: Type): Boolean = P match {
8989
case _: SingletonType => true
9090
case WildcardType => true
91-
case _ if isAbstract(P) => X <:< P
91+
case _: TypeProxy
92+
if isAbstract(P) => X <:< P
9293
case defn.ArrayOf(tpT) =>
9394
X match {
9495
case defn.ArrayOf(tpE) => recur(tpE, tpT)

0 commit comments

Comments
 (0)