diff options
Diffstat (limited to 'src/dotty/tools/dotc/typer/Implicits.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Implicits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Implicits.scala b/src/dotty/tools/dotc/typer/Implicits.scala index 6e1044281..36dee475a 100644 --- a/src/dotty/tools/dotc/typer/Implicits.scala +++ b/src/dotty/tools/dotc/typer/Implicits.scala @@ -301,7 +301,7 @@ trait Implicits { self: Typer => pt)(ctx.fresh.addMode(Mode.RestrictedInterpolation)) val generated1 = interpolateAndAdapt(generated, pt) lazy val shadowing = - typed(untpd.Ident(ref.name), ref)(nestedContext).tpe + typed(untpd.Ident(ref.name) withPos pos.toSynthetic, ref)(nestedContext).tpe if (ctx.typerState.reporter.hasErrors) nonMatchingImplicit(ref) else if (contextual && !(shadowing =:= ref)) shadowedImplicit(ref, shadowing) else SearchSuccess(generated)(ref, ctx.typerState) |