diff --git a/compiler/src/dotty/tools/dotc/reporting/ConsoleReporter.scala b/compiler/src/dotty/tools/dotc/reporting/ConsoleReporter.scala index f872968006b0..0d2292318a71 100644 --- a/compiler/src/dotty/tools/dotc/reporting/ConsoleReporter.scala +++ b/compiler/src/dotty/tools/dotc/reporting/ConsoleReporter.scala @@ -32,10 +32,6 @@ object ConsoleReporter { /** Prints the message with the given position indication. */ def doReport(dia: Diagnostic)(using Context): Unit = { printMessage(messageAndPos(dia)) - if Diagnostic.shouldExplain(dia) then - printMessage(explanation(dia.msg)) - else if dia.msg.canExplain then - printMessage("\nlonger explanation available when compiling with `-explain`") } } } diff --git a/compiler/src/dotty/tools/dotc/reporting/MessageRendering.scala b/compiler/src/dotty/tools/dotc/reporting/MessageRendering.scala index 1cc98cf75898..65ccc18143ab 100644 --- a/compiler/src/dotty/tools/dotc/reporting/MessageRendering.scala +++ b/compiler/src/dotty/tools/dotc/reporting/MessageRendering.scala @@ -248,6 +248,19 @@ trait MessageRendering { else sb.append(msg.message) if (dia.isVerbose) appendFilterHelp(dia, sb) + + if Diagnostic.shouldExplain(dia) then + sb.append(EOL).append(newBox()) + sb.append(EOL).append(offsetBox).append(" Explanation (enabled by `-explain`)") + sb.append(EOL).append(newBox(soft = true)) + dia.msg.explanation.split(EOL).foreach { line => + sb.append(EOL).append(offsetBox).append(if line.isEmpty then "" else " ").append(line) + } + sb.append(EOL).append(endBox) + else if dia.msg.canExplain then + sb.append(EOL).append(offsetBox) + sb.append(EOL).append(offsetBox).append(" longer explanation available when compiling with `-explain`") + sb.toString } diff --git a/compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala b/compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala index f64b970b5c80..733977734329 100644 --- a/compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala +++ b/compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala @@ -142,7 +142,7 @@ object ErrorReporting { |conforms to | $expected |but the comparison trace ended with `false`: - """ + |""" val c = ctx.typerState.constraint val constraintText = if c.domainLambdas.isEmpty then @@ -150,10 +150,9 @@ object ErrorReporting { else i"""a constraint with: |$c""" - i""" - |${TypeComparer.explained(_.isSubType(found, expected), header)} - | - |The tests were made under $constraintText""" + i"""${TypeComparer.explained(_.isSubType(found, expected), header)} + | + |The tests were made under $constraintText""" /** Format `raw` implicitNotFound or implicitAmbiguous argument, replacing * all occurrences of `${X}` where `X` is in `paramNames` with the diff --git a/compiler/test-resources/repl/errmsgs b/compiler/test-resources/repl/errmsgs index 14e9d44fa0b8..9819c1cb089f 100644 --- a/compiler/test-resources/repl/errmsgs +++ b/compiler/test-resources/repl/errmsgs @@ -6,7 +6,8 @@ scala> val x: List[String] = List(1) | ^ | Found: (1 : Int) | Required: String -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala> val y: List[List[String]] = List(List(1)) -- [E007] Type Mismatch Error: ------------------------------------------------- @@ -14,7 +15,8 @@ scala> val y: List[List[String]] = List(List(1)) | ^ | Found: (1 : Int) | Required: String -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala> val z: (List[String], List[Int]) = (List(1), List("a")) -- [E007] Type Mismatch Error: ------------------------------------------------- @@ -22,13 +24,15 @@ scala> val z: (List[String], List[Int]) = (List(1), List("a")) | ^ | Found: (1 : Int) | Required: String -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: ------------------------------------------------- 1 | val z: (List[String], List[Int]) = (List(1), List("a")) | ^^^ | Found: ("a" : String) | Required: Int -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 2 errors found scala> val a: Inv[String] = new Inv(new Inv(1)) -- [E007] Type Mismatch Error: ------------------------------------------------- @@ -36,7 +40,8 @@ scala> val a: Inv[String] = new Inv(new Inv(1)) | ^^^^^^^^^^ | Found: Inv[Int] | Required: String -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala> val b: Inv[String] = new Inv(1) -- [E007] Type Mismatch Error: ------------------------------------------------- @@ -44,7 +49,8 @@ scala> val b: Inv[String] = new Inv(1) | ^ | Found: (1 : Int) | Required: String -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala> abstract class C { type T; val x: T; val s: Unit = { type T = String; var y: T = x; locally { def f() = { type T = Int; val z: T = y }; f() } }; } -- [E007] Type Mismatch Error: ------------------------------------------------- @@ -55,7 +61,8 @@ scala> abstract class C { type T; val x: T; val s: Unit = { type T = String; var | |where: T is a type in class C | T² is a type in the initializer of value s which is an alias of String -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: ------------------------------------------------- 1 | abstract class C { type T; val x: T; val s: Unit = { type T = String; var y: T = x; locally { def f() = { type T = Int; val z: T = y }; f() } }; } | ^ @@ -64,7 +71,8 @@ longer explanation available when compiling with `-explain` | |where: T is a type in the initializer of value s which is an alias of String | T² is a type in method f which is an alias of Int -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 2 errors found scala> class Foo() { def bar: Int = 1 }; val foo = new Foo(); foo.barr -- [E008] Not Found Error: ----------------------------------------------------- @@ -78,33 +86,38 @@ scala> val x: List[Int] = "foo" :: List(1) | ^^^^^ | Found: ("foo" : String) | Required: Int -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala> while ((( foo ))) {} -- [E006] Not Found Error: ----------------------------------------------------- 1 | while ((( foo ))) {} | ^^^ | Not found: foo -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala> val a: iDontExist = 1 -- [E006] Not Found Error: ----------------------------------------------------- 1 | val a: iDontExist = 1 | ^^^^^^^^^^ | Not found: type iDontExist -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala> def foo1(x: => Int) = x _ -- [E099] Syntax Error: -------------------------------------------------------- 1 | def foo1(x: => Int) = x _ | ^^^ |Only function types can be followed by _ but the current expression has type Int -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala> def foo2(x: => Int): () => Int = x _ -- [E099] Syntax Error: -------------------------------------------------------- 1 | def foo2(x: => Int): () => Int = x _ | ^^^ |Only function types can be followed by _ but the current expression has type Int -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found diff --git a/compiler/test-resources/repl/i13208.default.scala b/compiler/test-resources/repl/i13208.default.scala index 586b5862a67f..9a18f9a67c66 100644 --- a/compiler/test-resources/repl/i13208.default.scala +++ b/compiler/test-resources/repl/i13208.default.scala @@ -5,5 +5,6 @@ scala> try 1 | ^^^^^ | A try without catch or finally is equivalent to putting | its body in a block; no exceptions are handled. -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` val res0: Int = 1 diff --git a/compiler/test-resources/repl/i2063 b/compiler/test-resources/repl/i2063 index e1da25588cdf..7245f677bfe6 100644 --- a/compiler/test-resources/repl/i2063 +++ b/compiler/test-resources/repl/i2063 @@ -3,19 +3,22 @@ scala> class Foo extends Bar // with one tab 1 | class Foo extends Bar // with one tab | ^^^ | Not found: type Bar -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala> class Foo extends Bar // with spaces -- [E006] Not Found Error: ----------------------------------------------------- 1 | class Foo extends Bar // with spaces | ^^^ | Not found: type Bar -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala> class Foo extends Bar // with tabs -- [E006] Not Found Error: ----------------------------------------------------- 1 | class Foo extends Bar // with tabs | ^^^ | Not found: type Bar -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found diff --git a/compiler/test-resources/repl/i2213 b/compiler/test-resources/repl/i2213 index b4f703b42167..b75b2056c959 100644 --- a/compiler/test-resources/repl/i2213 +++ b/compiler/test-resources/repl/i2213 @@ -3,7 +3,8 @@ scala> def x 1 | def x | ^ | Missing return type -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` scala> def x: Int -- [E067] Syntax Error: -------------------------------------------------------- 1 | def x: Int diff --git a/compiler/test-resources/repl/i4217 b/compiler/test-resources/repl/i4217 index 61dfcdc3a955..d4e113271073 100644 --- a/compiler/test-resources/repl/i4217 +++ b/compiler/test-resources/repl/i4217 @@ -6,5 +6,6 @@ scala> def foo(x: Option[Int]) = x match { case None => } | match may not be exhaustive. | | It would fail on pattern case: Some(_) -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` def foo(x: Option[Int]): Unit diff --git a/compiler/test-resources/repl/i4566 b/compiler/test-resources/repl/i4566 index 27516a98b0c1..32d84a6403d4 100644 --- a/compiler/test-resources/repl/i4566 +++ b/compiler/test-resources/repl/i4566 @@ -4,5 +4,6 @@ scala> object test { type ::[A, B]; def a: Int :: Int = ???; def b: Int = a } | ^ | Found: Int :: Int | Required: Int -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found diff --git a/compiler/test-resources/repl/i7644 b/compiler/test-resources/repl/i7644 index 4b6fd33acefa..8ceaf8b00804 100644 --- a/compiler/test-resources/repl/i7644 +++ b/compiler/test-resources/repl/i7644 @@ -3,7 +3,8 @@ scala> class T extends CanEqual 1 | class T extends CanEqual | ^ | Cannot extend sealed trait CanEqual in a different source file -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E056] Syntax Error: -------------------------------------------------------- 1 | class T extends CanEqual | ^^^^^^^^ @@ -14,7 +15,8 @@ scala> class T extends CanEqual 1 | class T extends CanEqual | ^ | Cannot extend sealed trait CanEqual in a different source file -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E056] Syntax Error: -------------------------------------------------------- 1 | class T extends CanEqual | ^^^^^^^^ diff --git a/compiler/test-resources/repl/importFromObj b/compiler/test-resources/repl/importFromObj index 58e8c5370f72..281025af45f5 100644 --- a/compiler/test-resources/repl/importFromObj +++ b/compiler/test-resources/repl/importFromObj @@ -10,7 +10,8 @@ scala> buf += xs | ^^ | Found: (o.xs : List[Int]) | Required: Int -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala> buf ++= xs val res0: scala.collection.mutable.ListBuffer[Int] = ListBuffer(1, 2, 3) diff --git a/compiler/test-resources/repl/notFound b/compiler/test-resources/repl/notFound index e6b251d8b723..689854ef2700 100644 --- a/compiler/test-resources/repl/notFound +++ b/compiler/test-resources/repl/notFound @@ -3,12 +3,14 @@ scala> Foo 1 | Foo | ^^^ | Not found: Foo -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala> Bar -- [E006] Not Found Error: ----------------------------------------------------- 1 | Bar | ^^^ | Not found: Bar -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found diff --git a/compiler/test-resources/repl/nowarn.scala b/compiler/test-resources/repl/nowarn.scala index 3236d60f9805..db6ea24465e7 100644 --- a/compiler/test-resources/repl/nowarn.scala +++ b/compiler/test-resources/repl/nowarn.scala @@ -5,7 +5,8 @@ scala> @annotation.nowarn def f = try 1 // @nowarn doesn't work on first line, c | ^^^^^ | A try without catch or finally is equivalent to putting | its body in a block; no exceptions are handled. -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` def f: Int scala> @annotation.nowarn def f = try 1 def f: Int @@ -16,7 +17,8 @@ scala> def f = try 1 | ^^^^^ | A try without catch or finally is equivalent to putting | its body in a block; no exceptions are handled. -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` def f: Int scala> @annotation.nowarn def f = { 1; 2 } def f: Int @@ -26,5 +28,6 @@ scala> def f = { 1; 2 } 1 | def f = { 1; 2 } | ^ |A pure expression does nothing in statement position; you may be omitting necessary parentheses -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` def f: Int diff --git a/compiler/test-resources/repl/overrides b/compiler/test-resources/repl/overrides index a32d4b18d404..5bad603801a4 100644 --- a/compiler/test-resources/repl/overrides +++ b/compiler/test-resources/repl/overrides @@ -3,7 +3,8 @@ scala> class B { override def foo(i: Int): Unit = {}; } 1 | class B { override def foo(i: Int): Unit = {}; } | ^ | method foo overrides nothing -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala> class A { def foo: Unit = {}; } // defined class A @@ -12,5 +13,6 @@ scala> class B extends A { override def foo(i: Int): Unit = {}; } 1 | class B extends A { override def foo(i: Int): Unit = {}; } | ^ | method foo has a different signature than the overridden declaration -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found diff --git a/compiler/test-resources/repl/reset-command b/compiler/test-resources/repl/reset-command index e47b3c45f696..ad38c9e9a867 100644 --- a/compiler/test-resources/repl/reset-command +++ b/compiler/test-resources/repl/reset-command @@ -22,7 +22,8 @@ scala> resetNoArgsStillWorks 1 | resetNoArgsStillWorks | ^^^^^^^^^^^^^^^^^^^^^ | Not found: resetNoArgsStillWorks -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found scala>:settings "-Dfoo=bar baz" diff --git a/compiler/test-resources/type-printer/type-mismatch b/compiler/test-resources/type-printer/type-mismatch index 363065320b9d..d139f9dff74b 100644 --- a/compiler/test-resources/type-printer/type-mismatch +++ b/compiler/test-resources/type-printer/type-mismatch @@ -8,5 +8,6 @@ scala> val x: Foo[String] = res0 | ^^^^ | Found: (res0 : Foo[Int]) | Required: Foo[String] -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` 1 error found diff --git a/tests/neg-custom-args/explicit-nulls/byname-nullables.check b/tests/neg-custom-args/explicit-nulls/byname-nullables.check index efe94a496c19..ffd0a637563e 100644 --- a/tests/neg-custom-args/explicit-nulls/byname-nullables.check +++ b/tests/neg-custom-args/explicit-nulls/byname-nullables.check @@ -3,8 +3,8 @@ | ^ | Found: (x : String | Null) | Required: String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- Error: tests/neg-custom-args/explicit-nulls/byname-nullables.scala:43:32 -------------------------------------------- 43 | if x != null then f(identity(x), 1) // error: dropping not null check fails typing | ^^^^^^^^^^^ diff --git a/tests/neg-custom-args/explicit-nulls/i7883.check b/tests/neg-custom-args/explicit-nulls/i7883.check index 9a1165a6440e..579ea0b4cd00 100644 --- a/tests/neg-custom-args/explicit-nulls/i7883.check +++ b/tests/neg-custom-args/explicit-nulls/i7883.check @@ -10,11 +10,11 @@ 6 | case r(hd, tl) => Some((hd, tl)) // error // error // error | ^^ | Not found: hd - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E006] Not Found Error: tests/neg-custom-args/explicit-nulls/i7883.scala:6:34 --------------------------------------- 6 | case r(hd, tl) => Some((hd, tl)) // error // error // error | ^^ | Not found: tl - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg-custom-args/i11637.check b/tests/neg-custom-args/i11637.check index eca2cf91b99f..41c49d81e9d0 100644 --- a/tests/neg-custom-args/i11637.check +++ b/tests/neg-custom-args/i11637.check @@ -2,56 +2,55 @@ 11 | var h = new HKT3_1[FunctorImpl](); // error // error | ^ | Type argument test2.FunctorImpl does not conform to upper bound [Generic2[T <: String] <: Set[T]] =>> Any - -Explanation -=========== - -I tried to show that - test2.FunctorImpl -conforms to - [Generic2[T <: String] <: Set[T]] =>> Any -but the comparison trace ended with `false`: - - ==> test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any - ==> type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] - ==> [T <: String] =>> Set[T] <: Iterable - ==> type bounds [] <: type bounds [ <: String] - ==> Any <: String - ==> Any <: String - <== Any <: String = false - <== Any <: String = false - <== type bounds [] <: type bounds [ <: String] = false - <== [T <: String] =>> Set[T] <: Iterable = false - <== type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] = false - <== test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any = false - -The tests were made under the empty constraint - + |-------------------------------------------------------------------------------------------------------------------- + | Explanation (enabled by `-explain`) + |···················································································································· + | I tried to show that + | test2.FunctorImpl + | conforms to + | [Generic2[T <: String] <: Set[T]] =>> Any + | but the comparison trace ended with `false`: + | + | ==> test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any + | ==> type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] + | ==> [T <: String] =>> Set[T] <: Iterable + | ==> type bounds [] <: type bounds [ <: String] + | ==> Any <: String + | ==> Any <: String + | <== Any <: String = false + | <== Any <: String = false + | <== type bounds [] <: type bounds [ <: String] = false + | <== [T <: String] =>> Set[T] <: Iterable = false + | <== type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] = false + | <== test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any = false + | + | The tests were made under the empty constraint + ·-------------------------------------------------------------------------------------------------------------------- -- [E057] Type Mismatch Error: tests/neg-custom-args/i11637.scala:11:21 ------------------------------------------------ 11 | var h = new HKT3_1[FunctorImpl](); // error // error | ^ | Type argument test2.FunctorImpl does not conform to upper bound [Generic2[T <: String] <: Set[T]] =>> Any - -Explanation -=========== - -I tried to show that - test2.FunctorImpl -conforms to - [Generic2[T <: String] <: Set[T]] =>> Any -but the comparison trace ended with `false`: - - ==> test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any - ==> type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] - ==> [T <: String] =>> Set[T] <: Iterable - ==> type bounds [] <: type bounds [ <: String] - ==> Any <: String - ==> Any <: String - <== Any <: String = false - <== Any <: String = false - <== type bounds [] <: type bounds [ <: String] = false - <== [T <: String] =>> Set[T] <: Iterable = false - <== type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] = false - <== test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any = false - -The tests were made under the empty constraint + |-------------------------------------------------------------------------------------------------------------------- + | Explanation (enabled by `-explain`) + |···················································································································· + | I tried to show that + | test2.FunctorImpl + | conforms to + | [Generic2[T <: String] <: Set[T]] =>> Any + | but the comparison trace ended with `false`: + | + | ==> test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any + | ==> type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] + | ==> [T <: String] =>> Set[T] <: Iterable + | ==> type bounds [] <: type bounds [ <: String] + | ==> Any <: String + | ==> Any <: String + | <== Any <: String = false + | <== Any <: String = false + | <== type bounds [] <: type bounds [ <: String] = false + | <== [T <: String] =>> Set[T] <: Iterable = false + | <== type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] = false + | <== test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any = false + | + | The tests were made under the empty constraint + ·-------------------------------------------------------------------------------------------------------------------- diff --git a/tests/neg-custom-args/i13026.check b/tests/neg-custom-args/i13026.check index ec729f1968b1..e610aa51336c 100644 --- a/tests/neg-custom-args/i13026.check +++ b/tests/neg-custom-args/i13026.check @@ -3,15 +3,15 @@ | ^^^^^^^^^^^^ | Found: ("not an int" : String) | Required: Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg-custom-args/i13026.scala:2:13 ------------------------------------------------- 2 |val y: Int = "not an int" // error | ^^^^^^^^^^^^ | Found: ("not an int" : String) | Required: Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E008] Not Found Error: tests/neg-custom-args/i13026.scala:3:20 ----------------------------------------------------- 3 |def foo(x: Any) = x.foo // error | ^^^^^ diff --git a/tests/neg-custom-args/i13838.check b/tests/neg-custom-args/i13838.check index 5730cb144e52..f6866dc6bf2a 100644 --- a/tests/neg-custom-args/i13838.check +++ b/tests/neg-custom-args/i13838.check @@ -22,5 +22,5 @@ | You can change the behavior by setting the `-Ximplicit-search-limit` value. | Smaller values cause the search to fail faster. | Larger values might make a very large search problem succeed. - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg-custom-args/jdk-9-app.check b/tests/neg-custom-args/jdk-9-app.check index e2b94e2cb115..0eacc7510766 100644 --- a/tests/neg-custom-args/jdk-9-app.check +++ b/tests/neg-custom-args/jdk-9-app.check @@ -2,5 +2,5 @@ 4 | println(ProcessHandle.current().pid()) // error: not found | ^^^^^^^^^^^^^ | Not found: ProcessHandle - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg-custom-args/kind-projector-underscores.check b/tests/neg-custom-args/kind-projector-underscores.check index bf4cdcfce30d..2a832ae3d7a2 100644 --- a/tests/neg-custom-args/kind-projector-underscores.check +++ b/tests/neg-custom-args/kind-projector-underscores.check @@ -6,14 +6,14 @@ 10 | type -_ = Int // error -_ not allowed as a type def name without backticks | ^ | =, >:, or <: expected, but '_' found - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E095] Syntax Error: tests/neg-custom-args/kind-projector-underscores.scala:11:8 ------------------------------------ 11 | type +_ = Int // error +_ not allowed as a type def name without backticks | ^ | =, >:, or <: expected, but '_' found - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- Error: tests/neg-custom-args/kind-projector-underscores.scala:14:51 ------------------------------------------------- 14 |class BacktickUnderscoreIsNotFine extends Foo[List[`_`]] // error wildcard invalid as backquoted identifier | ^ diff --git a/tests/neg-custom-args/nowarn/nowarn-parser-error.check b/tests/neg-custom-args/nowarn/nowarn-parser-error.check index 049d3b5b1a18..ce0d9113cf7f 100644 --- a/tests/neg-custom-args/nowarn/nowarn-parser-error.check +++ b/tests/neg-custom-args/nowarn/nowarn-parser-error.check @@ -2,12 +2,12 @@ 3 | def def // error | ^^^ | an identifier expected, but 'def' found - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn-parser-error.scala:2:10 ---------------------------------- 2 | def a = try 1 // warn | ^^^^^ | A try without catch or finally is equivalent to putting | its body in a block; no exceptions are handled. - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg-custom-args/nowarn/nowarn-typer-error.check b/tests/neg-custom-args/nowarn/nowarn-typer-error.check index da143965006b..a6c915807dca 100644 --- a/tests/neg-custom-args/nowarn/nowarn-typer-error.check +++ b/tests/neg-custom-args/nowarn/nowarn-typer-error.check @@ -2,5 +2,5 @@ 4 | def t1 = / // error | ^ | Not found: / - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg-custom-args/nowarn/nowarn.check b/tests/neg-custom-args/nowarn/nowarn.check index 736d9f82e910..d542643dbbbc 100644 --- a/tests/neg-custom-args/nowarn/nowarn.check +++ b/tests/neg-custom-args/nowarn/nowarn.check @@ -3,22 +3,22 @@ | ^^^^^ | A try without catch or finally is equivalent to putting | its body in a block; no exceptions are handled. - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:23:25 ---------------------------------------------- 23 |@nowarn(o.inl) def t2d = try 1 // two warnings (`inl` is not a compile-time constant) | ^^^^^ | A try without catch or finally is equivalent to putting | its body in a block; no exceptions are handled. - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:31:26 ---------------------------------------------- 31 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id) | ^^^^^ | A try without catch or finally is equivalent to putting | its body in a block; no exceptions are handled. - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:33:28 ---------------------------------------------- 33 |@nowarn("verbose") def t5 = try 1 // warning with details | ^^^^^ @@ -27,14 +27,14 @@ longer explanation available when compiling with `-explain` Matching filters for @nowarn or -Wconf: - id=E0 - name=EmptyCatchOrFinallyBlock - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E129] Potential Issue Warning: tests/neg-custom-args/nowarn/nowarn.scala:13:11 ------------------------------------- 13 |def t2 = { 1; 2 } // warning (the invalid nowarn doesn't silence anything) | ^ | A pure expression does nothing in statement position; you may be omitting necessary parentheses - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- Warning: tests/neg-custom-args/nowarn/nowarn.scala:12:8 ------------------------------------------------------------- 12 |@nowarn("wat?") // warning (typer, invalid filter) | ^^^^^^ @@ -44,8 +44,8 @@ longer explanation available when compiling with `-explain` 16 |def t2a = { 1; 2 } // warning (invalid nowarn doesn't silence) | ^ | A pure expression does nothing in statement position; you may be omitting necessary parentheses - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- Warning: tests/neg-custom-args/nowarn/nowarn.scala:15:8 ------------------------------------------------------------- 15 |@nowarn(t1a.toString) // warning (typer, argument not a compile-time constant) | ^^^^^^^^^^^^ diff --git a/tests/neg-macros/beta-reduce-inline-result.check b/tests/neg-macros/beta-reduce-inline-result.check index 0dd6098fb820..7b615feef308 100644 --- a/tests/neg-macros/beta-reduce-inline-result.check +++ b/tests/neg-macros/beta-reduce-inline-result.check @@ -4,5 +4,5 @@ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | Found: Int | Required: (4 : Int) - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg-macros/i6436.check b/tests/neg-macros/i6436.check index d861ad90717d..0b04bb9ddae2 100644 --- a/tests/neg-macros/i6436.check +++ b/tests/neg-macros/i6436.check @@ -6,5 +6,5 @@ 6 | val ps: Seq[Expr[String]] = parts // error | ^^^^^ | Not found: parts - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg-macros/type-splice-in-val-pattern.check b/tests/neg-macros/type-splice-in-val-pattern.check index 26a457127acb..627aa2d5755d 100644 --- a/tests/neg-macros/type-splice-in-val-pattern.check +++ b/tests/neg-macros/type-splice-in-val-pattern.check @@ -2,5 +2,5 @@ 5 | val '[ *:[$t] ] = ??? // error | ^^ | Type splices cannot be used in val patterns. Consider using `match` instead. - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg-scalajs/jsconstructorof-error-in-typer.check b/tests/neg-scalajs/jsconstructorof-error-in-typer.check index 391ffa4c6933..c0d25674dec5 100644 --- a/tests/neg-scalajs/jsconstructorof-error-in-typer.check +++ b/tests/neg-scalajs/jsconstructorof-error-in-typer.check @@ -2,17 +2,17 @@ 9 | val a = js.constructorOf[ScalaClass] // error | ^ | Type argument ScalaClass does not conform to upper bound scala.scalajs.js.Any - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E057] Type Mismatch Error: tests/neg-scalajs/jsconstructorof-error-in-typer.scala:10:27 ---------------------------- 10 | val b = js.constructorOf[ScalaTrait] // error | ^ | Type argument ScalaTrait does not conform to upper bound scala.scalajs.js.Any - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E057] Type Mismatch Error: tests/neg-scalajs/jsconstructorof-error-in-typer.scala:11:27 ---------------------------- 11 | val c = js.constructorOf[ScalaObject.type] // error | ^ | Type argument ScalaObject.type does not conform to upper bound scala.scalajs.js.Any - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg-scalajs/type-mismatch.check b/tests/neg-scalajs/type-mismatch.check index 2ea5f1f23945..73bb52079e3d 100644 --- a/tests/neg-scalajs/type-mismatch.check +++ b/tests/neg-scalajs/type-mismatch.check @@ -3,5 +3,5 @@ | ^^^ | Found: (msg : String) | Required: Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/3559d.check b/tests/neg/3559d.check index 128093d8579a..0f0e05f784b2 100644 --- a/tests/neg/3559d.check +++ b/tests/neg/3559d.check @@ -2,5 +2,5 @@ 7 | this(f) // error | ^ | Not found: f - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/6697.check b/tests/neg/6697.check index b2aeaa94d859..3249ad7aa4af 100644 --- a/tests/neg/6697.check +++ b/tests/neg/6697.check @@ -9,5 +9,5 @@ | failed since selector O | does not match case Test.Of[sup, sub] => sub | and cannot be shown to be disjoint from it either. - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/EmptyCaseClassParams.check b/tests/neg/EmptyCaseClassParams.check index 6cd019571c73..67ecda360cd4 100644 --- a/tests/neg/EmptyCaseClassParams.check +++ b/tests/neg/EmptyCaseClassParams.check @@ -2,17 +2,17 @@ 2 | case class A[T] // error | ^ | A case class must have at least one parameter list - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E004] Syntax Error: tests/neg/EmptyCaseClassParams.scala:5:13 ------------------------------------------------------ 5 | case class B[T] // error | ^ | A case class must have at least one parameter list - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E004] Syntax Error: tests/neg/EmptyCaseClassParams.scala:9:9 ------------------------------------------------------- 9 | case D[T] extends Foo[T] // error | ^ | A case class must have at least one parameter list - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/EmptyEnum.check b/tests/neg/EmptyEnum.check index 91281e6904e7..2ee3b74b4c15 100644 --- a/tests/neg/EmptyEnum.check +++ b/tests/neg/EmptyEnum.check @@ -2,5 +2,5 @@ 1 |enum EmptyEnum {} // error | ^^^^^^^^^ | Enumerations must contain at least one case - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/SummonFrom.check b/tests/neg/SummonFrom.check index e8bb4ad521f5..f0a3d4d1dbee 100644 --- a/tests/neg/SummonFrom.check +++ b/tests/neg/SummonFrom.check @@ -2,11 +2,11 @@ 4 | case x => ??? // error | ^ | Unexpected pattern for summonFrom. Expected `x: T` or `_` - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E153] Syntax Error: tests/neg/SummonFrom.scala:8:7 ----------------------------------------------------------------- 8 | case x@String => ??? // error | ^^^^^^^^ | Unexpected pattern for summonFrom. Expected `x: T` or `_` - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/abstract-givens.check b/tests/neg/abstract-givens.check index ee58afd3e76d..a74d0097b091 100644 --- a/tests/neg/abstract-givens.check +++ b/tests/neg/abstract-givens.check @@ -12,5 +12,5 @@ | ^ | error overriding given instance z in trait T of type [T](using x$1: T): List[T]; | given instance z of type [T](using x$1: T): Seq[T] has incompatible type - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/ambiref.check b/tests/neg/ambiref.check index d222940e0dbc..95b542c7aae3 100644 --- a/tests/neg/ambiref.check +++ b/tests/neg/ambiref.check @@ -4,29 +4,29 @@ | Reference to x is ambiguous, | it is both defined in object Test | and inherited subsequently in class D - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E049] Reference Error: tests/neg/ambiref.scala:10:14 --------------------------------------------------------------- 10 | println(x) // error | ^ | Reference to x is ambiguous, | it is both defined in object Test | and inherited subsequently in anonymous class test1.C {...} - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E049] Reference Error: tests/neg/ambiref.scala:17:14 --------------------------------------------------------------- 17 | println(y) // error | ^ | Reference to y is ambiguous, | it is both defined in method c | and inherited subsequently in anonymous class D {...} - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E049] Reference Error: tests/neg/ambiref.scala:25:16 --------------------------------------------------------------- 25 | println(y) // error | ^ | Reference to y is ambiguous, | it is both defined in method c | and inherited subsequently in class E - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/annot-printing.check b/tests/neg/annot-printing.check index 8c413e37a07e..c16112fe18b9 100644 --- a/tests/neg/annot-printing.check +++ b/tests/neg/annot-printing.check @@ -3,5 +3,5 @@ | ^^^^^ | Found: ("abc" : String) | Required: Int @nowarn() @main @Foo @Bar("hello") - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/bad-unapplies.check b/tests/neg/bad-unapplies.check index a2ee445b7db5..44633ca6950a 100644 --- a/tests/neg/bad-unapplies.check +++ b/tests/neg/bad-unapplies.check @@ -5,35 +5,35 @@ | (x: B): Option[String] | (x: A): Option[String] | both match arguments (C) - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E127] Syntax Error: tests/neg/bad-unapplies.scala:23:9 ------------------------------------------------------------- 23 | case B("2") => // error (cannot be used as an extractor) | ^ | B cannot be used as an extractor in a pattern because it lacks an unapply or unapplySeq method - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E127] Syntax Error: tests/neg/bad-unapplies.scala:24:9 ------------------------------------------------------------- 24 | case D("2") => // error (cannot be used as an extractor) | ^ | D cannot be used as an extractor in a pattern because it lacks an unapply or unapplySeq method - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E050] Type Error: tests/neg/bad-unapplies.scala:25:9 --------------------------------------------------------------- 25 | case E("2") => // error (value unapply in object E does not take parameters) | ^ | value unapply in object E does not take parameters - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E107] Syntax Error: tests/neg/bad-unapplies.scala:26:10 ------------------------------------------------------------ 26 | case F("2") => // error (Wrong number of argument patterns for F; expected: ()) | ^^^^^^ | Wrong number of argument patterns for F; expected: () - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E006] Not Found Error: tests/neg/bad-unapplies.scala:27:9 ---------------------------------------------------------- 27 | case G("2") => // error (Not found: G) | ^ | Not found: G - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/enumWithType.check b/tests/neg/enumWithType.check index fcc06d3532a4..76bc966e2955 100644 --- a/tests/neg/enumWithType.check +++ b/tests/neg/enumWithType.check @@ -2,5 +2,5 @@ 2 | case C[U](u: U) // error | ^ | explicit extends clause needed because both enum case and enum class have type parameters - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i10268.check b/tests/neg/i10268.check index e08571f7463d..abe39586b373 100644 --- a/tests/neg/i10268.check +++ b/tests/neg/i10268.check @@ -2,5 +2,5 @@ 2 | def test[T] = ?//test // error | ^ | Not found: ? - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i10757.check b/tests/neg/i10757.check index d60d2eea0b41..3a46c4e6cc53 100644 --- a/tests/neg/i10757.check +++ b/tests/neg/i10757.check @@ -2,5 +2,5 @@ 4 | case Var(name, _) => name: String // error | ^^^^^^^^^^^^ | Wrong number of argument patterns for Var; expected: (String) - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i11437.check b/tests/neg/i11437.check index f327d6a6a8d2..c8d7a2535964 100644 --- a/tests/neg/i11437.check +++ b/tests/neg/i11437.check @@ -2,5 +2,5 @@ 1 |transparent inline def foo = error // error | ^^^^^ | Not found: error - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i11544.check b/tests/neg/i11544.check index b4dba8a072c4..15469f0c37a5 100644 --- a/tests/neg/i11544.check +++ b/tests/neg/i11544.check @@ -7,5 +7,5 @@ | both match arguments ((23 : Int)) | | Note: Overloaded definitions introduced by refinements cannot be resolved - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i11561.check b/tests/neg/i11561.check index b1792511b0d0..96bf1ec6accf 100644 --- a/tests/neg/i11561.check +++ b/tests/neg/i11561.check @@ -9,5 +9,5 @@ 3 | val updateText2 = copy(text = (_: String)) // error | ^^^^^^^^^^^^^^^^^^ | Reassignment to val text - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i12049.check b/tests/neg/i12049.check index 0efc803477a8..44b8897605f0 100644 --- a/tests/neg/i12049.check +++ b/tests/neg/i12049.check @@ -13,8 +13,8 @@ | Therefore, reduction cannot advance to the remaining case | | case B => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- Error: tests/neg/i12049.scala:14:23 --------------------------------------------------------------------------------- 14 |val y3: String = ??? : Last[Int *: Int *: Boolean *: String *: EmptyTuple] // error | ^ diff --git a/tests/neg/i12150.check b/tests/neg/i12150.check index 44f09d772b43..60f559cde474 100644 --- a/tests/neg/i12150.check +++ b/tests/neg/i12150.check @@ -2,11 +2,11 @@ 1 |def f: Unit = // error | ^ | expression expected but end found - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E129] Potential Issue Warning: tests/neg/i12150.scala:1:11 --------------------------------------------------------- 1 |def f: Unit = // error | ^ | A pure expression does nothing in statement position; you may be omitting necessary parentheses - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i12284.check b/tests/neg/i12284.check index 00e445d3c41c..7d61acd012a5 100644 --- a/tests/neg/i12284.check +++ b/tests/neg/i12284.check @@ -5,5 +5,5 @@ | Required: Vector[F[Any]] | | where: F is a type in method magic with bounds <: [_] =>> Any - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i13435.check b/tests/neg/i13435.check index d60bea7ab588..ee2027a3dfe2 100644 --- a/tests/neg/i13435.check +++ b/tests/neg/i13435.check @@ -4,8 +4,8 @@ | match may not be exhaustive. | | It would fail on pattern case: (_), ((_, _), (_, _)) - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- Error: tests/neg/i13435.scala:8:10 ---------------------------------------------------------------------------------- 8 | case (dim: Axis, size: Int) => dim // error | ^^^^^^^^^ diff --git a/tests/neg/i13769.check b/tests/neg/i13769.check index 7785fbf4d198..3d7af1bd06a1 100644 --- a/tests/neg/i13769.check +++ b/tests/neg/i13769.check @@ -6,5 +6,5 @@ 2 |val te = tup.map((x: _ <: Int) => List(x)) // error // error | ^ | Not found: x - -longer explanation available when compiling with `-explain` \ No newline at end of file + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i13960.check b/tests/neg/i13960.check index ce280f48be4c..190f55690a5b 100644 --- a/tests/neg/i13960.check +++ b/tests/neg/i13960.check @@ -2,5 +2,5 @@ 13 | case A() => // error | ^^^ | A is not a valid result type of an unapply method of an extractor. - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i2033.check b/tests/neg/i2033.check index 0c5a9da975bd..5751d91f4f3a 100644 --- a/tests/neg/i2033.check +++ b/tests/neg/i2033.check @@ -7,8 +7,8 @@ | ^^^^^^^ | Found: Unit | Required: String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- Warning: tests/neg/i2033.scala:6:37 --------------------------------------------------------------------------------- 6 | val out = new ObjectOutputStream(println) | ^^^^^^^ diff --git a/tests/neg/i4382.check b/tests/neg/i4382.check index 3d21702ffe0f..4905638ab62a 100644 --- a/tests/neg/i4382.check +++ b/tests/neg/i4382.check @@ -2,23 +2,23 @@ 3 | def v1: Id[_] = ??? // error | ^^^^^ | unreducible application of higher-kinded type App.Id to wildcard arguments - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E043] Type Error: tests/neg/i4382.scala:6:10 ----------------------------------------------------------------------- 6 | def v2: HkL[_] = ??? // error | ^^^^^^ | unreducible application of higher-kinded type App.HkL to wildcard arguments - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E043] Type Error: tests/neg/i4382.scala:9:10 ----------------------------------------------------------------------- 9 | def v3: HkU[_] = ??? // error | ^^^^^^ | unreducible application of higher-kinded type App.HkU to wildcard arguments - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E043] Type Error: tests/neg/i4382.scala:12:10 ---------------------------------------------------------------------- 12 | def v4: HkAbs[_] = ??? // error | ^^^^^^^^ | unreducible application of higher-kinded type App.HkAbs to wildcard arguments - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i5101.check b/tests/neg/i5101.check index 151b8cf2dd4e..4f4bac89aa44 100644 --- a/tests/neg/i5101.check +++ b/tests/neg/i5101.check @@ -2,5 +2,5 @@ 11 | case A0(_) => // error | ^^ | Not found: A0 - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i5311.check b/tests/neg/i5311.check index bd2940afc7a9..eb9122b94ed6 100644 --- a/tests/neg/i5311.check +++ b/tests/neg/i5311.check @@ -3,5 +3,5 @@ | ^^^^^^^^^^^^^^^^^^^ | Found: s.T[Int] => s.T[Int] | Required: m.Foo - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i6183.check b/tests/neg/i6183.check index acb2a58766ec..70c1afaae621 100644 --- a/tests/neg/i6183.check +++ b/tests/neg/i6183.check @@ -17,5 +17,5 @@ | [B](b: B)(using x$2: DummyImplicit): Char | [A](a: A): String | both match arguments ((42 : Int)) - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i6205.check b/tests/neg/i6205.check index caca487ee2db..9f35c21b5ef3 100644 --- a/tests/neg/i6205.check +++ b/tests/neg/i6205.check @@ -2,5 +2,5 @@ 4 | def foo = // error | ^ | Type argument Nothing does not conform to lower bound Null in inferred type Contra[Nothing] - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i6762b.check b/tests/neg/i6762b.check index 9c0d571dd77b..a844fcf280bf 100644 --- a/tests/neg/i6762b.check +++ b/tests/neg/i6762b.check @@ -3,5 +3,5 @@ | ^^^^^^^^^^^ | Found: Expr[String] | Required: Expr[G[String]] - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i6779.check b/tests/neg/i6779.check index d2953c80f2b4..d895203221ec 100644 --- a/tests/neg/i6779.check +++ b/tests/neg/i6779.check @@ -3,8 +3,8 @@ | ^^^^^^^^^^^^^^^^^^^^^^^^ | Found: F[T] | Required: F[G[T]] - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E008] Not Found Error: tests/neg/i6779.scala:12:31 ----------------------------------------------------------------- 12 | def g2[T](x: T): F[G[T]] = x.f // error | ^^^ @@ -20,5 +20,5 @@ longer explanation available when compiling with `-explain` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | Found: F[T] | Required: F[G[T]] - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i7195.check b/tests/neg/i7195.check index 0d393ca0e979..3c95a2073b58 100644 --- a/tests/neg/i7195.check +++ b/tests/neg/i7195.check @@ -6,5 +6,5 @@ | | where: T is a type in object B | T² is a type in object A - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i7359-g.check b/tests/neg/i7359-g.check index 43257ae2a596..e3f0c89715e4 100644 --- a/tests/neg/i7359-g.check +++ b/tests/neg/i7359-g.check @@ -3,5 +3,5 @@ | ^^^^^^^^^^^^^ | Found: () => String | Required: SAMTrait - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i8569.check b/tests/neg/i8569.check index c33cb68d750c..89173e1a8334 100644 --- a/tests/neg/i8569.check +++ b/tests/neg/i8569.check @@ -2,5 +2,5 @@ 13 | val x = outer.Inner(2) // error (at posttyper) | ^^^^^^^^^^^^^^ | Outer is not a valid class prefix, since it is not an immutable path - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i8569a.check b/tests/neg/i8569a.check index b6ba88cba3b6..966e80133d31 100644 --- a/tests/neg/i8569a.check +++ b/tests/neg/i8569a.check @@ -2,5 +2,5 @@ 13 | val x = new outer2.Inner(2) // error (at typer) | ^^^^^^ | (Test.outer2 : => Outer2) is not a valid type prefix, since it is not an immutable path - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i8623.check b/tests/neg/i8623.check index 9b9a20ce7bf5..b9d6e244e70e 100644 --- a/tests/neg/i8623.check +++ b/tests/neg/i8623.check @@ -7,5 +7,5 @@ | But the part corresponding to `` is not a reference that can be generated. | This might be because resolution yielded as given instance a function that is not | known to be total and side-effect free. - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i8736.check b/tests/neg/i8736.check index 80986464d035..e7a0d62cb4af 100644 --- a/tests/neg/i8736.check +++ b/tests/neg/i8736.check @@ -3,15 +3,15 @@ | ^^^^^^^^^^^^ | Found: Any | Required: String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/i8736.scala:30:29 ------------------------------------------------------------- 30 | def res2: Int = rec.get("v") // error: type mismatch | ^^^^^^^^^^^^ | Found: Any | Required: Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E051] Reference Error: tests/neg/i8736.scala:31:26 ----------------------------------------------------------------- 31 | def res3: Boolean = rec.get("z") // error: ambiguous | ^^^^^^^ @@ -22,5 +22,5 @@ longer explanation available when compiling with `-explain` | all match arguments (("z" : String)) | | Note: Overloaded definitions introduced by refinements cannot be resolved - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i8752.check b/tests/neg/i8752.check index cf2feb0cc7c6..3ccdee55e676 100644 --- a/tests/neg/i8752.check +++ b/tests/neg/i8752.check @@ -3,8 +3,8 @@ | ^^^^ | C does not take type parameters | (Note that F-bounds of type parameters may not be type lambdas) - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- Error: tests/neg/i8752.scala:3:39 ----------------------------------------------------------------------------------- 3 |trait Arround1[C <:[X]=>>IterableOps[X,C,C[X]] ] // error // error | ^ diff --git a/tests/neg/i8988.check b/tests/neg/i8988.check index 6952837128ed..d34e2cfd0047 100644 --- a/tests/neg/i8988.check +++ b/tests/neg/i8988.check @@ -3,5 +3,5 @@ | ^^ | Found: (ys : List[Int]) | Required: String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i9436.check b/tests/neg/i9436.check index 8938dbacb6cb..b5f9b5c470b1 100644 --- a/tests/neg/i9436.check +++ b/tests/neg/i9436.check @@ -2,8 +2,8 @@ 8 | println(x.f1) // error | ^^^^ | method f1 must be called with () argument - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- Error: tests/neg/i9436.scala:9:14 ----------------------------------------------------------------------------------- 9 | println(x.f2(1)) // error | ^^^^^^^ diff --git a/tests/neg/i9437.check b/tests/neg/i9437.check index d0b2226e5a0c..3bac99b07571 100644 --- a/tests/neg/i9437.check +++ b/tests/neg/i9437.check @@ -2,5 +2,5 @@ 7 | println(x.f1()) // error | ^^^^ | method selectDynamic in trait Selectable does not take parameters - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i9803.check b/tests/neg/i9803.check index 57e184487504..cc7d56d585b0 100644 --- a/tests/neg/i9803.check +++ b/tests/neg/i9803.check @@ -4,5 +4,5 @@ | Reference to f421 is ambiguous, | it is both imported by name by import bugs.shadowing.x.f421 | and imported by name subsequently by import bugs.shadowing.y.f421 - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/i9958.check b/tests/neg/i9958.check index 3657c466dc8b..4da24bb23c7e 100644 --- a/tests/neg/i9958.check +++ b/tests/neg/i9958.check @@ -7,5 +7,5 @@ | ^ | Found: G[[A <: Int] =>> List[A]] | Required: G[List] - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/if-error.check b/tests/neg/if-error.check index c2f1b02b2067..d8350da1872b 100644 --- a/tests/neg/if-error.check +++ b/tests/neg/if-error.check @@ -4,5 +4,5 @@ | Found: Unit | Required: Int | Maybe you are missing an else part for the conditional? - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/kinds2.check b/tests/neg/kinds2.check index 2921c7baf022..3a978c635836 100644 --- a/tests/neg/kinds2.check +++ b/tests/neg/kinds2.check @@ -2,5 +2,5 @@ 14 | f[C] // error: missing type parameter(s) | ^ | Missing type parameter for Test.C - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/leading-infix-miss.check b/tests/neg/leading-infix-miss.check index df9c4d8dd3e0..c6bfa458d1ad 100644 --- a/tests/neg/leading-infix-miss.check +++ b/tests/neg/leading-infix-miss.check @@ -11,5 +11,5 @@ | ^ | Found: Unit | Required: Boolean - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/matchtype-seq.check b/tests/neg/matchtype-seq.check index 07db895b9006..aba1e312da01 100644 --- a/tests/neg/matchtype-seq.check +++ b/tests/neg/matchtype-seq.check @@ -29,8 +29,8 @@ | Therefore, reduction cannot advance to the remaining case | | case (2 : Int) => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:12:20 ----------------------------------------------------- 12 | identity[T1[Int]](1) // error | ^ @@ -46,8 +46,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case (2 : Int) => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:21:20 ----------------------------------------------------- 21 | identity[T2[Int]]("") // error | ^^ @@ -63,15 +63,15 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case _ => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:22:18 ----------------------------------------------------- 22 | identity[T2[2]](1) // error | ^ | Found: (1 : Int) | Required: String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:23:20 ----------------------------------------------------- 23 | identity[T2[Int]](1) // error | ^ @@ -87,8 +87,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case _ => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:36:18 ----------------------------------------------------- 36 | identity[T3[A]](1) // error | ^ @@ -104,8 +104,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case Test.C => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:37:18 ----------------------------------------------------- 37 | identity[T3[A]]("") // error | ^^ @@ -121,8 +121,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case Test.C => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:55:18 ----------------------------------------------------- 55 | identity[T5[A]](1) // error | ^ @@ -138,8 +138,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case Test.A => Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:56:18 ----------------------------------------------------- 56 | identity[T5[A]]("") // error | ^^ @@ -155,8 +155,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case Test.A => Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:82:18 ----------------------------------------------------- 82 | identity[T7[D]]("") // error | ^^ @@ -172,8 +172,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case Test.D => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:83:18 ----------------------------------------------------- 83 | identity[T7[D]](1) // error | ^ @@ -189,8 +189,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case Test.D => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:94:19 ----------------------------------------------------- 94 | identity[T8[E2]](1) // error | ^ @@ -206,15 +206,15 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case Test.E2 => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:95:19 ----------------------------------------------------- 95 | identity[T8[E1]]("") // error | ^^ | Found: ("" : String) | Required: Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:96:19 ----------------------------------------------------- 96 | identity[T8[E2]]("") // error | ^^ @@ -230,8 +230,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case Test.E2 => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:105:40 ---------------------------------------------------- 105 | identity[T9[Tuple2[Nothing, String]]](1) // error | ^ @@ -243,8 +243,8 @@ longer explanation available when compiling with `-explain` | trying to reduce Test.T9[(Nothing, String)] | failed since selector (Nothing, String) | is uninhabited (there are no values of that type). - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:106:40 ---------------------------------------------------- 106 | identity[T9[Tuple2[String, Nothing]]]("1") // error | ^^^ @@ -256,8 +256,8 @@ longer explanation available when compiling with `-explain` | trying to reduce Test.T9[(String, Nothing)] | failed since selector (String, Nothing) | is uninhabited (there are no values of that type). - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:107:37 ---------------------------------------------------- 107 | identity[T9[Tuple2[Int, Nothing]]](1) // error | ^ @@ -269,8 +269,8 @@ longer explanation available when compiling with `-explain` | trying to reduce Test.T9[(Int, Nothing)] | failed since selector (Int, Nothing) | is uninhabited (there are no values of that type). - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:108:37 ---------------------------------------------------- 108 | identity[T9[Tuple2[Nothing, Int]]]("1") // error | ^^^ @@ -282,8 +282,8 @@ longer explanation available when compiling with `-explain` | trying to reduce Test.T9[(Nothing, Int)] | failed since selector (Nothing, Int) | is uninhabited (there are no values of that type). - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:109:29 ---------------------------------------------------- 109 | identity[T9[Tuple2[_, _]]]("") // error | ^^ @@ -299,8 +299,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case (String, Int) => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:110:29 ---------------------------------------------------- 110 | identity[T9[Tuple2[_, _]]](1) // error | ^ @@ -316,8 +316,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case (String, Int) => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:111:33 ---------------------------------------------------- 111 | identity[T9[Tuple2[Any, Any]]]("") // error | ^^ @@ -333,8 +333,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case (String, Int) => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:112:33 ---------------------------------------------------- 112 | identity[T9[Tuple2[Any, Any]]](1) // error | ^ @@ -350,8 +350,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case (String, Int) => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:122:39 ---------------------------------------------------- 122 | identity[TA[Box2[Int, Int, String]]](1) // error | ^ @@ -367,8 +367,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case Test.Box2[Int, Int, String] => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:123:39 ---------------------------------------------------- 123 | identity[TA[Box2[Int, Int, String]]]("") // error | ^^ @@ -384,8 +384,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case Test.Box2[Int, Int, String] => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:144:41 ---------------------------------------------------- 144 | identity[TD[Box2_C[Int, Int, String]]]("") // error | ^^ @@ -401,8 +401,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case Test.Box2_C[Int, Int, String] => String - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:153:25 ---------------------------------------------------- 153 | def a[A]: M[Some[A]] = 1 // error | ^ @@ -418,8 +418,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case Some[_] => Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:154:25 ---------------------------------------------------- 154 | def b[A]: M[Some[A]] = "" // error | ^^ @@ -435,8 +435,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case Some[_] => Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:168:23 ---------------------------------------------------- 168 | val a: M[Inv[A]] = 1 // error | ^ @@ -452,8 +452,8 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case _ => Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/matchtype-seq.scala:187:25 ---------------------------------------------------- 187 | val a: M[Inv[A]] = 1 // error | ^ @@ -469,5 +469,5 @@ longer explanation available when compiling with `-explain` | Therefore, reduction cannot advance to the remaining case | | case _ => Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/missing-implicit-2.check b/tests/neg/missing-implicit-2.check index 4ec525f4a34e..e1994c4bf02d 100644 --- a/tests/neg/missing-implicit-2.check +++ b/tests/neg/missing-implicit-2.check @@ -26,5 +26,5 @@ | | where: Byte is a class in package scala | Byte² is a class in package java.lang - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/missing-implicit-3.check b/tests/neg/missing-implicit-3.check index a41f2bba8a3e..45837ce11576 100644 --- a/tests/neg/missing-implicit-3.check +++ b/tests/neg/missing-implicit-3.check @@ -12,8 +12,8 @@ | | import concurrent.duration.pairIntToDuration | - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E008] Not Found Error: tests/neg/missing-implicit-3.scala:8:48 ----------------------------------------------------- 8 |val d2: scala.concurrent.duration.Duration = 10.days // error | ^^^^^^^ diff --git a/tests/neg/module-class-name.check b/tests/neg/module-class-name.check index 0888689553fb..448eebf240b4 100644 --- a/tests/neg/module-class-name.check +++ b/tests/neg/module-class-name.check @@ -3,29 +3,29 @@ | ^ | Found: Test.C.type | Required: Test.C - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/module-class-name.scala:9:15 -------------------------------------------------- 9 | val y: C = f(C) // error | ^ | Found: Test.C.type | Required: Test.C - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/module-class-name.scala:12:14 ------------------------------------------------- 12 | val z1: C = z // error | ^ | Found: Test.C.type | Required: Test.C - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/module-class-name.scala:13:16 ------------------------------------------------- 13 | val z2: Int = z // error | ^ | Found: Test.C.type | Required: Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E008] Not Found Error: tests/neg/module-class-name.scala:15:4 ------------------------------------------------------ 15 | C.foo // error: value foo is not a member of object Test.C | ^^^^^ diff --git a/tests/neg/multi-file-error.check b/tests/neg/multi-file-error.check index bf3547333361..716023fc9ce8 100644 --- a/tests/neg/multi-file-error.check +++ b/tests/neg/multi-file-error.check @@ -2,11 +2,11 @@ 2 | foo() // error | ^^^ | Not found: foo - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E006] Not Found Error: tests/neg/multi-file-error/B.scala:2:2 ------------------------------------------------------ 2 | bar() // error | ^^^ | Not found: bar - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/print-infix-type.check b/tests/neg/print-infix-type.check index bb96c0cbb5de..21ba753f2408 100644 --- a/tests/neg/print-infix-type.check +++ b/tests/neg/print-infix-type.check @@ -3,5 +3,5 @@ | ^ | Found: Int over String | Required: String over Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/singleton-ops-any.check b/tests/neg/singleton-ops-any.check index be234d405b4e..caab2b24e037 100644 --- a/tests/neg/singleton-ops-any.check +++ b/tests/neg/singleton-ops-any.check @@ -3,40 +3,40 @@ | ^^^^ | Found: (true : Boolean) | Required: (false : Boolean) - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/singleton-ops-any.scala:7:22 -------------------------------------------------- 7 | val t35: 10 == 10 = false // error | ^^^^^ | Found: (false : Boolean) | Required: (true : Boolean) - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/singleton-ops-any.scala:12:24 ------------------------------------------------- 12 | val t38: false != 5 = false // error | ^^^^^ | Found: (false : Boolean) | Required: (true : Boolean) - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/singleton-ops-any.scala:13:22 ------------------------------------------------- 13 | val t39: 10 != 10 = true // error | ^^^^ | Found: (true : Boolean) | Required: (false : Boolean) - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/singleton-ops-any.scala:18:27 ------------------------------------------------- 18 | val t04: ToString[Int] = "Int" // error | ^^^^^ | Found: ("Int" : String) | Required: compiletime.ops.any.ToString[Int] - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E007] Type Mismatch Error: tests/neg/singleton-ops-any.scala:32:26 ------------------------------------------------- 32 | val t48: IsConst[Any] = true // error | ^^^^ | Found: (true : Boolean) | Required: (false : Boolean) - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/spaces-vs-tabs.check b/tests/neg/spaces-vs-tabs.check index 862465a18dbe..f513dbdf31b7 100644 --- a/tests/neg/spaces-vs-tabs.check +++ b/tests/neg/spaces-vs-tabs.check @@ -32,5 +32,5 @@ 13 | 1 | ^ | A pure expression does nothing in statement position; you may be omitting necessary parentheses - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/splice-pat.check b/tests/neg/splice-pat.check index 68fda3e96e72..32af3ad6308e 100644 --- a/tests/neg/splice-pat.check +++ b/tests/neg/splice-pat.check @@ -2,8 +2,8 @@ 12 | case '{ foo(${ // error: pattern expected | ^ | pattern expected - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` -- [E040] Syntax Error: tests/neg/splice-pat.scala:15:5 ---------------------------------------------------------------- 15 | })} => ??? // error | ^ diff --git a/tests/neg/t6124.check b/tests/neg/t6124.check index 9c7498d60f88..871533bf80c8 100644 --- a/tests/neg/t6124.check +++ b/tests/neg/t6124.check @@ -62,5 +62,5 @@ 21 | val x1 = _52 // error | ^^^ | Not found: _52 - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain` diff --git a/tests/neg/t6663.check b/tests/neg/t6663.check index 806f3357a0f6..4adb6f365082 100644 --- a/tests/neg/t6663.check +++ b/tests/neg/t6663.check @@ -3,5 +3,5 @@ | ^^^^^^^^^^^^^^^^^^^^^^^^^ | Found: String | Required: Int - -longer explanation available when compiling with `-explain` + | + | longer explanation available when compiling with `-explain`