File tree 3 files changed +15
-7
lines changed
compiler/src/dotty/tools/dotc
3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,10 @@ class Compiler {
73
73
new ByNameClosures , // Expand arguments to by-name parameters to closures
74
74
new HoistSuperArgs , // Hoist complex arguments of supercalls to enclosing scope
75
75
new SpecializeApplyMethods , // Adds specialized methods to FunctionN
76
- new RefChecks ) :: // Various checks mostly related to abstract members and overriding
77
- List (new ElimOpaque , // Turn opaque into normal aliases
76
+ new RefChecks , // Various checks mostly related to abstract members and overriding
78
77
new TryCatchPatterns , // Compile cases in try/catch
79
- new PatternMatcher , // Compile pattern matches
78
+ new PatternMatcher ) :: // Compile pattern matches
79
+ List (new ElimOpaque , // Turn opaque into normal aliases
80
80
new sjs.ExplicitJSClasses , // Make all JS classes explicit (Scala.js only)
81
81
new ExplicitOuter , // Add accessors to outer classes from nested ones.
82
82
new ExplicitSelf , // Make references to non-trivial self types explicit as casts
Original file line number Diff line number Diff line change @@ -40,10 +40,8 @@ class ExplicitOuter extends MiniPhase with InfoTransformer { thisPhase =>
40
40
41
41
override def phaseName : String = ExplicitOuter .name
42
42
43
- /** List of names of phases that should have finished their processing of all compilation units
44
- * before this phase starts
45
- */
46
- override def runsAfter : Set [String ] = Set (PatternMatcher .name, HoistSuperArgs .name)
43
+ override def runsAfter : Set [String ] = Set (HoistSuperArgs .name)
44
+ override def runsAfterGroupsOf : Set [String ] = Set (PatternMatcher .name)
47
45
48
46
override def changesMembers : Boolean = true // the phase adds outer accessors
49
47
Original file line number Diff line number Diff line change
1
+ class C1 {
2
+ private class C2
3
+ new C2 match {
4
+ case c : C2 =>
5
+ }
6
+ }
7
+
8
+ object Test extends App {
9
+ new C1
10
+ }
You can’t perform that action at this time.
0 commit comments