Skip to content

Commit

Permalink
Fix analyzer-plugins scripted test after phase move
Browse files Browse the repository at this point in the history
CompleteJavaEnums was moved after erasure in
1818b99 which broke this test.
  • Loading branch information
smarter committed Jun 3, 2020
1 parent 5fce8e6 commit 4ab222c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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._
Expand All @@ -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)
Expand Down

0 comments on commit 4ab222c

Please sign in to comment.