diff --git a/compiler/src/dotty/tools/dotc/typer/ImportSuggestions.scala b/compiler/src/dotty/tools/dotc/typer/ImportSuggestions.scala index 48b7c274daaa..7a284d0de03c 100644 --- a/compiler/src/dotty/tools/dotc/typer/ImportSuggestions.scala +++ b/compiler/src/dotty/tools/dotc/typer/ImportSuggestions.scala @@ -323,6 +323,7 @@ trait ImportSuggestions: |$fix might $help the problem: | |$suggestions%\n% - """ + | + |""" end importSuggestionAddendum end ImportSuggestions diff --git a/tests/neg/missing-implicit.check b/tests/neg/missing-implicit.check index 55c48a6345e3..0d4ad9c1f22e 100644 --- a/tests/neg/missing-implicit.check +++ b/tests/neg/missing-implicit.check @@ -7,7 +7,7 @@ | | import math.Ordered.orderingToOrdered | import math.Ordering.Implicits.infixOrderingOps - | + | -- [E008] Not Found Error: tests/neg/missing-implicit.scala:5:51 ------------------------------------------------------- 5 | case x :: xs1 if limit > 0 => consume(xs1, limit - x) // error // error | ^^^^^^^ @@ -16,7 +16,7 @@ | The following import might fix the problem: | | import math.Numeric.Implicits.infixNumericOps - | + | -- Error: tests/neg/missing-implicit.scala:10:24 ----------------------------------------------------------------------- 10 |val f = Future[Unit] { } // error | ^ @@ -36,7 +36,7 @@ | The following import might fix the problem: | | import concurrent.ExecutionContext.Implicits.global - | + | -- [E007] Type Mismatch Error: tests/neg/missing-implicit.scala:12:25 -------------------------------------------------- 12 |val b: java.lang.Byte = (1: Byte) // error, but no hint | ^^^^^^^ @@ -58,7 +58,7 @@ | The following import might fix the problem: | | import concurrent.duration.pairIntToDuration - | + | -- [E008] Not Found Error: tests/neg/missing-implicit.scala:18:48 ------------------------------------------------------ 18 |val d2: scala.concurrent.duration.Duration = 10.days // error | ^^^^^^^ @@ -69,4 +69,4 @@ | import concurrent.duration.DurationInt | import concurrent.duration.DurationLong | import concurrent.duration.DurationDouble - | + | diff --git a/tests/neg/missing-implicit1.check b/tests/neg/missing-implicit1.check index b78e5b239946..1781622512c5 100644 --- a/tests/neg/missing-implicit1.check +++ b/tests/neg/missing-implicit1.check @@ -6,7 +6,7 @@ |The following import might fix the problem: | | import testObjectInstance.instances.zipOption - | + | -- [E008] Not Found Error: tests/neg/missing-implicit1.scala:19:16 ----------------------------------------------------- 19 | List(1, 2, 3).traverse(x => Option(x)) // error | ^^^^^^^^^^^^^^^^^^^^^^ @@ -15,7 +15,7 @@ | The following import might make progress towards fixing the problem: | | import testObjectInstance.instances.traverseList - | + | -- Error: tests/neg/missing-implicit1.scala:23:42 ---------------------------------------------------------------------- 23 | List(1, 2, 3).traverse(x => Option(x)) // error | ^ @@ -24,7 +24,7 @@ |The following import might fix the problem: | | import testObjectInstance.instances.zipOption - | + | -- [E008] Not Found Error: tests/neg/missing-implicit1.scala:26:16 ----------------------------------------------------- 26 | List(1, 2, 3).first // error | ^^^^^^^^^^^^^^^^^^^ @@ -33,7 +33,7 @@ | The following import might fix the problem: | | import testObjectInstance.instances.first - | + | -- [E008] Not Found Error: tests/neg/missing-implicit1.scala:27:16 ----------------------------------------------------- 27 | List(1, 2, 3).second // error | ^^^^^^^^^^^^^^^^^^^^ @@ -42,7 +42,7 @@ | The following import might fix the problem: | | import testObjectInstance.instances.listExtension - | + | -- [E008] Not Found Error: tests/neg/missing-implicit1.scala:28:17 ----------------------------------------------------- 28 | Array(1, 2, 3).first // error, no hint | ^^^^^^^^^^^^^^^^^^^^ @@ -55,7 +55,7 @@ | The following import might fix the problem: | | import instances.zipOption - | + | -- [E008] Not Found Error: tests/neg/missing-implicit1.scala:46:16 ----------------------------------------------------- 46 | List(1, 2, 3).traverse(x => Option(x)) // error | ^^^^^^^^^^^^^^^^^^^^^^ @@ -64,7 +64,7 @@ | The following import might make progress towards fixing the problem: | | import instances.traverseList - | + | -- Error: tests/neg/missing-implicit1.scala:50:42 ---------------------------------------------------------------------- 50 | List(1, 2, 3).traverse(x => Option(x)) // error | ^ @@ -73,4 +73,4 @@ |The following import might fix the problem: | | import instances.zipOption - | + | diff --git a/tests/neg/missing-implicit2.check b/tests/neg/missing-implicit2.check index 7b04dbc33a30..3b3661295d3a 100644 --- a/tests/neg/missing-implicit2.check +++ b/tests/neg/missing-implicit2.check @@ -6,7 +6,7 @@ | The following import might fix the problem: | | import test.instances.y - | + | -- Error: tests/neg/missing-implicit2.scala:16:5 ----------------------------------------------------------------------- 16 | f // error | ^ @@ -15,4 +15,4 @@ | The following import might make progress towards fixing the problem: | | import instances2.xFromY - | + |