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
22
22
import ast .tpd ._
23
23
override def phaseName = " restoreScopes"
24
24
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
-
37
25
override def transformTypeDef (tree : TypeDef )(implicit ctx : Context , info : TransformerInfo ) = {
38
26
val TypeDef (_, impl : Template ) = tree
39
27
//
@@ -46,8 +34,6 @@ class RestoreScopes extends MiniPhaseTransform with IdentityDenotTransformer { t
46
34
val cls = tree.symbol.asClass
47
35
val pkg = cls.owner.asClass
48
36
pkg.enter(cls)
49
- invalidateUndefinedCompanions(pkg, cls)(
50
- ctx.withPhase(cls.initial.validFor.phaseId).addMode(Mode .FutureDefsOK ))
51
37
val cinfo = cls.classInfo
52
38
tree.symbol.copySymDenotation(
53
39
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