Skip to content

Commit

Permalink
Remove message last line
Browse files Browse the repository at this point in the history
  • Loading branch information
mbovel committed Apr 30, 2024
1 parent 1f06af1 commit 748596a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions compiler/src/dotty/tools/dotc/typer/Applications.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1042,8 +1042,7 @@ trait Applications extends Compatibility {
case Some(arg) if tree.args.exists(_.span == arg.span) =>
val noteText =
i"""The required type comes from a parameter of the automatically
|inserted `apply` method of `${qualifier.tpe}`,
|which is the type of `${qualifier.show}`.""".stripMargin
|inserted `apply` method of `${qualifier.tpe}`.""".stripMargin
Diagnostic.Error(msg.appendExplanation("\n\n" + noteText), dia.pos)
case _ => dia
case msg => dia
Expand Down
3 changes: 1 addition & 2 deletions tests/neg/19680.check
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@
| The tests were made under the empty constraint
|
| The required type comes from a parameter of the automatically
| inserted `apply` method of `scala.collection.StringOps`,
| which is the type of `augmentString(renderWebsite("/tmp")(x$1))`.
| inserted `apply` method of `scala.collection.StringOps`.
---------------------------------------------------------------------------------------------------------------------
3 changes: 1 addition & 2 deletions tests/neg/19680b.check
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@
| The tests were made under the empty constraint
|
| The required type comes from a parameter of the automatically
| inserted `apply` method of `List[Int]`,
| which is the type of `List.apply[Int]([1,2 : Int]*)`.
| inserted `apply` method of `List[Int]`.
---------------------------------------------------------------------------------------------------------------------

0 comments on commit 748596a

Please sign in to comment.