Skip to content

Commit ea71b2c

Browse files
authored
Merge pull request #8411 from xuwei-k/patch-1
fix error message in Typer.scala
2 parents c6b681c + 90a824b commit ea71b2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2920,7 +2920,7 @@ class Typer extends Namer
29202920
}
29212921
else {
29222922
ctx.error(
2923-
"""Scala 2 macro cannot be used in Dotty. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html\n"
2923+
"""Scala 2 macro cannot be used in Dotty. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
29242924
|To turn this error into a warning, pass -Xignore-scala2-macros to the compiler""".stripMargin, tree.sourcePos.startPos)
29252925
tree
29262926
}

0 commit comments

Comments
 (0)