Skip to content

Commit 10091bd

Browse files
Merge pull request #7295 from dotty-staging/fix-f-position
Correct position for f interpolator expansion
2 parents 0d34bfb + 326a28c commit 10091bd

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
@@ -2753,7 +2753,7 @@ class Typer extends Namer
27532753
// a call to dotty.internal.StringContext.f which we can implement using the new macros.
27542754
// As the macro is implemented in the bootstrapped library, it can only be used from the bootstrapped compiler.
27552755
val Apply(TypeApply(Select(sc, _), _), args) = tree
2756-
val newCall = ref(defn.InternalStringContextMacroModule_f).appliedTo(sc).appliedToArgs(args)
2756+
val newCall = ref(defn.InternalStringContextMacroModule_f).appliedTo(sc).appliedToArgs(args).withSpan(tree.span)
27572757
readaptSimplified(Inliner.inlineCall(newCall))
27582758
}
27592759
else if (ctx.settings.XignoreScala2Macros.value) {

0 commit comments

Comments
 (0)