Skip to content

Commit 7a0b19e

Browse files
committed
Remove duplicate mention in error message
1 parent 855f572 commit 7a0b19e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ class ImplicitSearchError(
414414

415415
private def hiddenImplicitsAddendum: String =
416416
def hiddenImplicitNote(s: SearchSuccess) =
417-
em"\n\nNote: given instance ${s.ref.symbol.showLocated} was not considered because it was not imported with `import given`."
417+
em"\n\nNote: ${s.ref.symbol.showLocated} was not considered because it was not imported with `import given`."
418418

419419
val normalImports = ignoredInstanceNormalImport.map(hiddenImplicitNote)
420420

0 commit comments

Comments
 (0)