File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
sbt-dotty/sbt-test/sbt-dotty Expand file tree Collapse file tree 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
44
55import dotty .tools .dotc ._
66import core ._
7+ import Symbols ._
78import Contexts .Context
89import plugins ._
910import Phases .Phase
@@ -45,8 +46,8 @@ class InitChecker extends PluginPhase {
4546 private def checkRef (tree : Tree )(implicit ctx : Context ): Tree =
4647 if (! checkable(tree.symbol)) tree
4748 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
5051 val enclosingPkg = tree.symbol.enclosingPackageClass
5152
5253 if (enclosingPkg == helloPkgSym) { // source code
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import Phases.Phase
88import ast .tpd
99import transform .MegaPhase .MiniPhase
1010import Decorators ._
11- import Symbols .Symbol
11+ import Symbols ._
1212import Constants .Constant
1313import transform .{Pickler , Staging }
1414
@@ -26,7 +26,7 @@ class DivideZero extends PluginPhase with StandardPlugin {
2626
2727 private def isNumericDivide (sym : Symbol )(implicit ctx : Context ): Boolean = {
2828 def test (tpe : String ): Boolean =
29- (sym.owner eq ctx. requiredClass(tpe)) && sym.name.show == " /"
29+ (sym.owner eq requiredClass(tpe)) && sym.name.show == " /"
3030
3131 test(" scala.Int" ) || test(" scala.Long" ) || test(" scala.Short" ) || test(" scala.Float" ) || test(" scala.Double" )
3232 }
@@ -38,4 +38,4 @@ class DivideZero extends PluginPhase with StandardPlugin {
3838 case _ =>
3939 tree
4040 }
41- }
41+ }
You can’t perform that action at this time.
0 commit comments