Skip to content

Commit bcb1f94

Browse files
committed
Use simpler given self type for opaque types in classes
1 parent 44a89c9 commit bcb1f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/SymDenotations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ object SymDenotations {
444444
enclClassInfo.selfInfo match {
445445
case self: Type =>
446446
owner.info = enclClassInfo.derivedClassInfo(
447-
selfInfo = refineSelfType(enclClassInfo.selfType))
447+
selfInfo = refineSelfType(self.orElse(defn.AnyType)))
448448
case self: Symbol =>
449449
self.info = refineSelfType(self.info)
450450
}

0 commit comments

Comments
 (0)