We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa931c4 commit b53105fCopy full SHA for b53105f
compiler/src/dotty/tools/dotc/typer/Namer.scala
@@ -1452,10 +1452,11 @@ class Namer { typer: Typer =>
1452
forwarders.derivedCons(forwarder2, avoidClashes(forwarders2))
1453
case Nil => forwarders
1454
1455
- addForwarders(selectors, Nil)
1456
- val forwarders = avoidClashes(buf.toList)
1457
- exp.putAttachment(ExportForwarders, forwarders)
1458
- forwarders
+ exp.getAttachment(ExportForwarders).getOrElse:
+ addForwarders(selectors, Nil)
+ val forwarders = avoidClashes(buf.toList)
+ exp.pushAttachment(ExportForwarders, forwarders)
1459
+ forwarders
1460
end exportForwarders
1461
1462
/** Add forwarders as required by the export statements in this class */
0 commit comments