Skip to content

Commit 0400253

Browse files
committed
Fix position for hidden implicit note computation
1 parent 48c9eab commit 0400253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ trait Implicits { self: Typer =>
911911
if (ctx == NoContext) ctx
912912
else ctx.freshOver(FindHiddenImplicitsCtx(ctx.outer)).addMode(Mode.FindHiddenImplicits)
913913

914-
inferImplicit(fail.expectedType, fail.argument, fail.argument.span)(
914+
inferImplicit(fail.expectedType, fail.argument, arg.span)(
915915
FindHiddenImplicitsCtx(ctx)) match {
916916
case s: SearchSuccess => hiddenImplicitNote(s)
917917
case f: SearchFailure =>

0 commit comments

Comments
 (0)