File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Phases.Phase
6
6
import ast .tpd
7
7
import transform .MegaPhase .MiniPhase
8
8
import Decorators ._
9
- import Symbols .Symbol
9
+ import Symbols .{ Symbol , requiredClass }
10
10
import Constants .Constant
11
11
import StdNames ._
12
12
@@ -23,7 +23,7 @@ class DivideZero extends MiniPhase with ResearchPlugin {
23
23
24
24
private def isNumericDivide (sym : Symbol )(implicit ctx : Context ): Boolean = {
25
25
def test (tpe : String ): Boolean =
26
- (sym.owner eq ctx. requiredClass(tpe)) && sym.name == nme.DIV
26
+ (sym.owner eq requiredClass(tpe)) && sym.name == nme.DIV
27
27
28
28
test(" scala.Int" ) || test(" scala.Long" ) || test(" scala.Short" ) || test(" scala.Float" ) || test(" scala.Double" )
29
29
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Phases.Phase
6
6
import ast .tpd
7
7
import transform .MegaPhase .MiniPhase
8
8
import Decorators ._
9
- import Symbols .Symbol
9
+ import Symbols .{ Symbol , requiredClass }
10
10
import Constants .Constant
11
11
import transform .{Pickler , ReifyQuotes }
12
12
import StdNames ._
@@ -24,7 +24,7 @@ class DivideZero extends PluginPhase with StandardPlugin {
24
24
25
25
private def isNumericDivide (sym : Symbol )(implicit ctx : Context ): Boolean = {
26
26
def test (tpe : String ): Boolean =
27
- (sym.owner eq ctx. requiredClass(tpe)) && sym.name == nme.DIV
27
+ (sym.owner eq requiredClass(tpe)) && sym.name == nme.DIV
28
28
29
29
test(" scala.Int" ) || test(" scala.Long" ) || test(" scala.Short" ) || test(" scala.Float" ) || test(" scala.Double" )
30
30
}
You can’t perform that action at this time.
0 commit comments