Skip to content

Commit c438794

Browse files
committed
Fix scripted test
1 parent c2542c2 commit c438794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbt-dotty/sbt-test/sbt-dotty/compiler-plugin/plugin/DivideZero.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class DivideZero extends PluginPhase with StandardPlugin {
3333

3434
override def transformApply(tree: tpd.Apply)(implicit ctx: Context): tpd.Tree = tree match {
3535
case tpd.Apply(fun, tpd.Literal(Constants.Constant(v)) :: Nil) if isNumericDivide(fun.symbol) && v == 0 =>
36-
ctx.error("divide by zero", tree.pos)
36+
ctx.error("divide by zero", tree.sourcePos)
3737
tpd.Literal(Constant(0))
3838
case _ =>
3939
tree

0 commit comments

Comments
 (0)