Skip to content

Commit 2327272

Browse files
committed
Fix tests
1 parent 70ce24f commit 2327272

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/plugins/neg/divideZero-research/plugin_1.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Phases.Phase
66
import ast.tpd
77
import transform.MegaPhase.MiniPhase
88
import Decorators._
9-
import Symbols.Symbol
9+
import Symbols.{Symbol, requiredClass}
1010
import Constants.Constant
1111
import StdNames._
1212

@@ -23,7 +23,7 @@ class DivideZero extends MiniPhase with ResearchPlugin {
2323

2424
private def isNumericDivide(sym: Symbol)(implicit ctx: Context): Boolean = {
2525
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
2727

2828
test("scala.Int") || test("scala.Long") || test("scala.Short") || test("scala.Float") || test("scala.Double")
2929
}

tests/plugins/neg/divideZero/plugin_1.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Phases.Phase
66
import ast.tpd
77
import transform.MegaPhase.MiniPhase
88
import Decorators._
9-
import Symbols.Symbol
9+
import Symbols.{Symbol, requiredClass}
1010
import Constants.Constant
1111
import transform.{Pickler, ReifyQuotes}
1212
import StdNames._
@@ -24,7 +24,7 @@ class DivideZero extends PluginPhase with StandardPlugin {
2424

2525
private def isNumericDivide(sym: Symbol)(implicit ctx: Context): Boolean = {
2626
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
2828

2929
test("scala.Int") || test("scala.Long") || test("scala.Short") || test("scala.Float") || test("scala.Double")
3030
}

0 commit comments

Comments
 (0)