We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2542c2 + c438794 commit e873908Copy full SHA for e873908
sbt-dotty/sbt-test/sbt-dotty/compiler-plugin/plugin/DivideZero.scala
@@ -33,7 +33,7 @@ class DivideZero extends PluginPhase with StandardPlugin {
33
34
override def transformApply(tree: tpd.Apply)(implicit ctx: Context): tpd.Tree = tree match {
35
case tpd.Apply(fun, tpd.Literal(Constants.Constant(v)) :: Nil) if isNumericDivide(fun.symbol) && v == 0 =>
36
- ctx.error("divide by zero", tree.pos)
+ ctx.error("divide by zero", tree.sourcePos)
37
tpd.Literal(Constant(0))
38
case _ =>
39
tree
0 commit comments