Skip to content

Commit 0ffaf60

Browse files
committed
move RefChecks before ExtractAPI
We need to make sure RefChecks run before ExtractAPI, as there might be cyclic reference exceptions, which is handled in RefChecks. See neg/i1750.scala.
1 parent 714a8d7 commit 0ffaf60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ class Compiler {
4444
List(new FrontEnd), // Compiler frontend: scanner, parser, namer, typer
4545
List(new sbt.ExtractDependencies), // Sends information on classes' dependencies to sbt via callbacks
4646
List(new PostTyper), // Additional checks and cleanups after type checking
47+
List(new RefChecks, // Various checks mostly related to abstract members and overriding
48+
new CheckStatic), // Check restrictions that apply to @static members
4749
List(new sbt.ExtractAPI), // Sends a representation of the API of classes to sbt via callbacks
4850
List(new Pickler), // Generate TASTY info
4951
List(new FirstTransform, // Some transformations to put trees into a canonical form
5052
new CheckReentrant), // Internal use only: Check that compiled program has no data races involving global vars
51-
List(new RefChecks, // Various checks mostly related to abstract members and overriding
52-
new CheckStatic, // Check restrictions that apply to @static members
53-
new ElimRepeated, // Rewrite vararg parameters and arguments
53+
List(new ElimRepeated, // Rewrite vararg parameters and arguments
5454
new NormalizeFlags, // Rewrite some definition flags
5555
new ExtensionMethods, // Expand methods of value classes with extension methods
5656
new ExpandSAMs, // Expand single abstract method closures to anonymous classes

0 commit comments

Comments
 (0)