From c438794d273be812b90e64b2ccc9a74d8e06dcdd Mon Sep 17 00:00:00 2001 From: Allan Renucci Date: Sun, 20 Jan 2019 00:17:12 +0100 Subject: [PATCH] Fix scripted test --- .../sbt-test/sbt-dotty/compiler-plugin/plugin/DivideZero.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbt-dotty/sbt-test/sbt-dotty/compiler-plugin/plugin/DivideZero.scala b/sbt-dotty/sbt-test/sbt-dotty/compiler-plugin/plugin/DivideZero.scala index e7f07232a8c1..b570e4ae6d11 100644 --- a/sbt-dotty/sbt-test/sbt-dotty/compiler-plugin/plugin/DivideZero.scala +++ b/sbt-dotty/sbt-test/sbt-dotty/compiler-plugin/plugin/DivideZero.scala @@ -33,7 +33,7 @@ class DivideZero extends PluginPhase with StandardPlugin { override def transformApply(tree: tpd.Apply)(implicit ctx: Context): tpd.Tree = tree match { case tpd.Apply(fun, tpd.Literal(Constants.Constant(v)) :: Nil) if isNumericDivide(fun.symbol) && v == 0 => - ctx.error("divide by zero", tree.pos) + ctx.error("divide by zero", tree.sourcePos) tpd.Literal(Constant(0)) case _ => tree