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 41388ee commit 5a6fbc2Copy full SHA for 5a6fbc2
compiler/src/dotty/tools/dotc/transform/Constructors.scala
@@ -251,9 +251,9 @@ class Constructors extends MiniPhase with IdentityDenotTransformer { thisPhase =
251
// Drop accessors that are not retained from class scope
252
if (dropped.nonEmpty) {
253
val clsInfo = cls.classInfo
254
- cls.copy(
255
- info = clsInfo.derivedClassInfo(
256
- decls = clsInfo.decls.filteredScope(!dropped.contains(_))))
+ val decls = clsInfo.decls.filteredScope(!dropped.contains(_))
+ val clsInfo2 = clsInfo.derivedClassInfo(decls = decls)
+ cls.copySymDenotation(info = clsInfo2).installAfter(thisPhase)
257
// TODO: this happens to work only because Constructors is the last phase in group
258
}
259
0 commit comments