File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,6 @@ class RestoreScopes extends MiniPhaseTransform with IdentityDenotTransformer { t
2222 import ast .tpd ._
2323 override def phaseName = " restoreScopes"
2424
25- private def invalidateUndefinedCompanions (pkg : ClassSymbol , cls : ClassSymbol )(implicit ctx : Context ): Unit = {
26- val otherNames =
27- if (cls is Flags .Module )
28- List (cls.name.sourceModuleName, cls.name.stripModuleClassSuffix.toTypeName)
29- else
30- List (cls.name.toTermName, cls.name.moduleClassName)
31- for (otherName <- otherNames) {
32- val other = pkg.info.decl(otherName).asSymDenotation
33- if (other.exists && ! other.isCompleted) other.markAbsent
34- }
35- }
36-
3725 override def transformTypeDef (tree : TypeDef )(implicit ctx : Context , info : TransformerInfo ) = {
3826 val TypeDef (_, impl : Template ) = tree
3927 //
@@ -46,8 +34,6 @@ class RestoreScopes extends MiniPhaseTransform with IdentityDenotTransformer { t
4634 val cls = tree.symbol.asClass
4735 val pkg = cls.owner.asClass
4836 pkg.enter(cls)
49- invalidateUndefinedCompanions(pkg, cls)(
50- ctx.withPhase(cls.initial.validFor.phaseId).addMode(Mode .FutureDefsOK ))
5137 val cinfo = cls.classInfo
5238 tree.symbol.copySymDenotation(
5339 info = cinfo.derivedClassInfo( // Dotty deviation: Cannot expand cinfo inline without a type error
You can’t perform that action at this time.
0 commit comments