Skip to content

Commit 625e29c

Browse files
committed
Fix another test
1 parent 2327272 commit 625e29c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/plugins/custom/analyzer/Analyzer_1.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Phases.Phase
1616
import ast.tpd
1717
import transform.MegaPhase.MiniPhase
1818
import Decorators._
19-
import Symbols.Symbol
19+
import Symbols.{Symbol, requiredPackage}
2020
import Constants.Constant
2121
import Types._
2222
import transform.{ReifyQuotes, FirstTransform}
@@ -67,8 +67,8 @@ class InitChecker extends PluginPhase with StandardPlugin {
6767
private def checkRef(tree: Tree)(implicit ctx: Context): Tree =
6868
if (!checkable(tree.symbol)) tree
6969
else {
70-
val helloPkgSym = ctx.requiredPackage("hello").moduleClass
71-
val libPkgSym = ctx.requiredPackage("lib").moduleClass
70+
val helloPkgSym = requiredPackage("hello").moduleClass
71+
val libPkgSym = requiredPackage("lib").moduleClass
7272
val enclosingPkg = tree.symbol.enclosingPackageClass
7373

7474
if (enclosingPkg == helloPkgSym) { // source code

0 commit comments

Comments
 (0)