From 4ab222c9f4b1abe73de4c9fc4d5938b0f2a3cebb Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Wed, 3 Jun 2020 13:53:35 +0200 Subject: [PATCH] Fix analyzer-plugins scripted test after phase move CompleteJavaEnums was moved after erasure in 1818b99f7cec44e70ea75eb41e63e4fd0b7d7647 which broke this test. --- .../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 7cc5756a730c..e88ba308e215 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.CompleteJavaEnums +import transform.ElimRepeated 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(CompleteJavaEnums.name) + override val runsBefore = Set(ElimRepeated.name) private def checkDef(tree: Tree)(implicit ctx: Context): Tree = { if (tree.symbol.defTree.isEmpty)