Skip to content

Commit e35185a

Browse files
committed
Fix #3960: Move RestoreScopes after ExpandPrivate
1 parent b3f49a9 commit e35185a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ class Compiler {
111111
// Note: in this mini-phase block scopes are incorrect. No phases that rely on scopes should be here
112112
new ElimStaticThis) :: // Replace `this` references to static objects by global identifiers
113113
List(new Flatten, // Lift all inner classes to package scope
114-
new RestoreScopes, // Repair scopes rendered invalid by moving definitions in prior phases of the group
115114
new RenameLifted, // Renames lifted classes to local numbering scheme
116115
new TransformWildcards, // Replace wildcards with default values
117116
new MoveStatics, // Move static methods to companion classes
118117
new ExpandPrivate, // Widen private definitions accessed from nested classes
118+
new RestoreScopes, // Repair scopes rendered invalid by moving definitions in prior phases of the group
119119
new SelectStatic, // get rid of selects that would be compiled into GetStatic
120120
new CollectEntryPoints, // Find classes with main methods
121121
new CollectSuperCalls, // Find classes that are called with super

0 commit comments

Comments
 (0)