Skip to content

Commit e873908

Browse files
authored
Merge pull request #5753 from dotty-staging/fix-scripted-test
Fix scripted test
2 parents c2542c2 + c438794 commit e873908

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)