Skip to content

Commit 47c463d

Browse files
committed
1 parent 2741d0a commit 47c463d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2207,7 +2207,9 @@ object SymDenotations {
22072207
if !myCompanion.exists then
22082208
ensureCompleted()
22092209
myCompanion
2210-
override def registeredCompanion_=(c: Symbol) = { myCompanion = c }
2210+
2211+
override def registeredCompanion_=(c: Symbol) =
2212+
myCompanion = c
22112213

22122214
private var myNestingLevel = -1
22132215

@@ -2457,6 +2459,7 @@ object SymDenotations {
24572459
!owner.isClass
24582460
|| owner.isRefinementClass
24592461
|| owner.is(Scala2x)
2462+
|| denot.is(Synthetic)
24602463
|| owner.unforcedDecls.contains(denot.name, denot.symbol)
24612464
|| denot.isSelfSym
24622465
|| denot.isLocalDummy)

0 commit comments

Comments
 (0)