You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/src/dotty/tools/dotc/typer/Typer.scala
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2777,7 +2777,7 @@ class Typer extends Namer
2777
2777
elseif (tree.symbol.isScala2Macro) {
2778
2778
if (ctx.settings.XignoreScala2Macros.value) {
2779
2779
ctx.warning("Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See http://dotty.epfl.ch/docs/reference/dropped-features/macros.html", tree.sourcePos)
2780
-
tree
2780
+
Throw(New(defn.MatchErrorType, Literal(Constant(s"Reached unexpanded Scala 2 macro call to ${tree.symbol.showFullName} compiled with -Xignore-scala2-macros.")) ::Nil)).withSpan(tree.span)
2781
2781
} elseif (tree.symbol eq defn.StringContext_f) {
2782
2782
// As scala.StringContext.f is defined in the standard library which
2783
2783
// we currently do not bootstrap we cannot implement the macro the library.
0 commit comments