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 dc669a6 commit d924ef1Copy full SHA for d924ef1
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -208,6 +208,10 @@ object Types {
208
case tp: TypeRef =>
209
val sym = tp.symbol
210
if (sym.isClass) sym.derivesFrom(cls) else loop(tp.superType): @tailrec
211
+ case tp: AppliedType =>
212
+ tp.superType.derivesFrom(cls)
213
+ case tp: MatchType =>
214
+ tp.bound.derivesFrom(cls) || tp.reduced.derivesFrom(cls)
215
case tp: TypeProxy =>
216
loop(tp.underlying): @tailrec
217
case tp: AndType =>
0 commit comments