Skip to content

Commit b7d8fcb

Browse files
committed
Code refactoring
1 parent 65dbc1b commit b7d8fcb

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
@@ -82,7 +82,7 @@ object TypeTestsCasts {
8282
def apply(tp: Type): Type = tp match {
8383
case _: MatchType =>
8484
tp // break cycles
85-
case tp: TypeRef if isBounds(tp.underlying) =>
85+
case tp: TypeRef if !tp.symbol.isClass =>
8686
boundTypeParams.getOrElseUpdate(tp, newTypeVar(tp.underlying.toBounds))
8787
case _ =>
8888
mapOver(tp)

0 commit comments

Comments
 (0)