Skip to content

Commit d976a22

Browse files
rjollymichelou
authored andcommitted
Remove duplicate mention in error message
1 parent 0586d2c commit d976a22

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)