Skip to content

Commit 831b062

Browse files
authored
Merge pull request #12224 from rjolly/dup
Remove duplicate mention in error message
2 parents c30fc8e + 7a0b19e commit 831b062

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)