File tree 2 files changed +6
-5
lines changed
sbt-dotty/sbt-test/sbt-dotty
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import scala.language.implicitConversions
4
4
5
5
import dotty .tools .dotc ._
6
6
import core ._
7
+ import Symbols ._
7
8
import Contexts .Context
8
9
import plugins ._
9
10
import Phases .Phase
@@ -45,8 +46,8 @@ class InitChecker extends PluginPhase {
45
46
private def checkRef (tree : Tree )(implicit ctx : Context ): Tree =
46
47
if (! checkable(tree.symbol)) tree
47
48
else {
48
- val helloPkgSym = ctx. requiredPackage(" hello" ).moduleClass
49
- val libPkgSym = ctx. requiredPackage(" lib" ).moduleClass
49
+ val helloPkgSym = requiredPackage(" hello" ).moduleClass
50
+ val libPkgSym = requiredPackage(" lib" ).moduleClass
50
51
val enclosingPkg = tree.symbol.enclosingPackageClass
51
52
52
53
if (enclosingPkg == helloPkgSym) { // source code
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import Phases.Phase
8
8
import ast .tpd
9
9
import transform .MegaPhase .MiniPhase
10
10
import Decorators ._
11
- import Symbols .Symbol
11
+ import Symbols ._
12
12
import Constants .Constant
13
13
import transform .{Pickler , Staging }
14
14
@@ -26,7 +26,7 @@ class DivideZero extends PluginPhase with StandardPlugin {
26
26
27
27
private def isNumericDivide (sym : Symbol )(implicit ctx : Context ): Boolean = {
28
28
def test (tpe : String ): Boolean =
29
- (sym.owner eq ctx. requiredClass(tpe)) && sym.name.show == " /"
29
+ (sym.owner eq requiredClass(tpe)) && sym.name.show == " /"
30
30
31
31
test(" scala.Int" ) || test(" scala.Long" ) || test(" scala.Short" ) || test(" scala.Float" ) || test(" scala.Double" )
32
32
}
@@ -38,4 +38,4 @@ class DivideZero extends PluginPhase with StandardPlugin {
38
38
case _ =>
39
39
tree
40
40
}
41
- }
41
+ }
You can’t perform that action at this time.
0 commit comments