Skip to content

Commit e8b7038

Browse files
committed
Fix CI
1 parent 9452437 commit e8b7038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ object TypeTestsCasts {
132132
recur(tp1, P) && recur(tp2, P)
133133
case _ =>
134134
// first try withou striping type parameters for performance
135-
!X.classSymbol.asClass.mayHaveCommonChild(P.classSymbol.asClass) ||
135+
X.classSymbol.exists && P.classSymbol.exists && !X.classSymbol.asClass.mayHaveCommonChild(P.classSymbol.asClass) ||
136136
isClassDetermined(X, tpe)(ctx.fresh.setNewTyperState()) ||
137137
isClassDetermined(stripTypeParam(X), tpe)(ctx.fresh.setNewTyperState())
138138
}

0 commit comments

Comments
 (0)