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 44a89c9 commit bcb1f94Copy full SHA for bcb1f94
compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -444,7 +444,7 @@ object SymDenotations {
444
enclClassInfo.selfInfo match {
445
case self: Type =>
446
owner.info = enclClassInfo.derivedClassInfo(
447
- selfInfo = refineSelfType(enclClassInfo.selfType))
+ selfInfo = refineSelfType(self.orElse(defn.AnyType)))
448
case self: Symbol =>
449
self.info = refineSelfType(self.info)
450
}
0 commit comments