From 326a28c89d3f545f354073ff99fc59f99d104aa0 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Mon, 23 Sep 2019 15:33:12 +0200 Subject: [PATCH] Correct position for f interpolator expansion --- compiler/src/dotty/tools/dotc/typer/Typer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/typer/Typer.scala b/compiler/src/dotty/tools/dotc/typer/Typer.scala index 33170ef46278..b4e2ac3001c8 100644 --- a/compiler/src/dotty/tools/dotc/typer/Typer.scala +++ b/compiler/src/dotty/tools/dotc/typer/Typer.scala @@ -2753,7 +2753,7 @@ class Typer extends Namer // a call to dotty.internal.StringContext.f which we can implement using the new macros. // As the macro is implemented in the bootstrapped library, it can only be used from the bootstrapped compiler. val Apply(TypeApply(Select(sc, _), _), args) = tree - val newCall = ref(defn.InternalStringContextMacroModule_f).appliedTo(sc).appliedToArgs(args) + val newCall = ref(defn.InternalStringContextMacroModule_f).appliedTo(sc).appliedToArgs(args).withSpan(tree.span) readaptSimplified(Inliner.inlineCall(newCall)) } else if (ctx.settings.XignoreScala2Macros.value) {