From dd93ad3b05938378793e789f3543bfd4fce9f9f4 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Sat, 18 Jan 2020 22:37:04 +0100 Subject: [PATCH] Fix analyzer-plugin scripted test This was broken after the CheckStatic phase was moved in f6f3b28cfcc1f79d002a8af950ef49a84bc88b07, it would be nice to make this more robust but I don't know how. --- .../sbt-test/sbt-dotty/analyzer-plugin/plugin/Analyzer.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbt-dotty/sbt-test/sbt-dotty/analyzer-plugin/plugin/Analyzer.scala b/sbt-dotty/sbt-test/sbt-dotty/analyzer-plugin/plugin/Analyzer.scala index 65d25055c9df..7cc5756a730c 100644 --- a/sbt-dotty/sbt-test/sbt-dotty/analyzer-plugin/plugin/Analyzer.scala +++ b/sbt-dotty/sbt-test/sbt-dotty/analyzer-plugin/plugin/Analyzer.scala @@ -13,7 +13,7 @@ import Decorators._ import Symbols.Symbol import Constants.Constant import Types._ -import transform.{CheckStatic} +import transform.CompleteJavaEnums class InitPlugin extends StandardPlugin { import tpd._ @@ -30,7 +30,7 @@ class InitChecker extends PluginPhase { val phaseName = "symbolTreeChecker" override val runsAfter = Set(SetDefTree.name) - override val runsBefore = Set(CheckStatic.name) + override val runsBefore = Set(CompleteJavaEnums.name) private def checkDef(tree: Tree)(implicit ctx: Context): Tree = { if (tree.symbol.defTree.isEmpty)