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 95efbb1 commit 5f7ef0cCopy full SHA for 5f7ef0c
compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -1056,7 +1056,10 @@ object SymDenotations {
1056
else overriddenFromType(owner.asClass.classInfo.selfType)
1057
1058
private def overriddenFromType(tp: Type)(implicit ctx: Context): Iterator[Symbol] =
1059
- tp.baseClasses.tail.iterator map overriddenSymbol filter (_.exists)
+ tp.baseClasses match {
1060
+ case _ :: inherited => inherited.iterator map overriddenSymbol filter (_.exists)
1061
+ case Nil => Iterator.empty
1062
+ }
1063
1064
/** The symbol overriding this symbol in given subclass `ofclazz`.
1065
*
0 commit comments