From 7a0b19e56a512545dca9cb6a710ff3d5c2d3519a Mon Sep 17 00:00:00 2001 From: Raphael Jolly Date: Mon, 26 Apr 2021 14:23:04 +0200 Subject: [PATCH] Remove duplicate mention in error message --- compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala b/compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala index 2c5eaca1a4c5..8c6eb6c6dece 100644 --- a/compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala +++ b/compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala @@ -414,7 +414,7 @@ class ImplicitSearchError( private def hiddenImplicitsAddendum: String = def hiddenImplicitNote(s: SearchSuccess) = - em"\n\nNote: given instance ${s.ref.symbol.showLocated} was not considered because it was not imported with `import given`." + em"\n\nNote: ${s.ref.symbol.showLocated} was not considered because it was not imported with `import given`." val normalImports = ignoredInstanceNormalImport.map(hiddenImplicitNote)