We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65dbc1b commit b7d8fcbCopy full SHA for b7d8fcb
compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala
@@ -82,7 +82,7 @@ object TypeTestsCasts {
82
def apply(tp: Type): Type = tp match {
83
case _: MatchType =>
84
tp // break cycles
85
- case tp: TypeRef if isBounds(tp.underlying) =>
+ case tp: TypeRef if !tp.symbol.isClass =>
86
boundTypeParams.getOrElseUpdate(tp, newTypeVar(tp.underlying.toBounds))
87
case _ =>
88
mapOver(tp)
0 commit comments