Skip to content

Commit 49a97d7

Browse files
mbovelWojciechMazur
authored andcommitted
Remove message last line
[Cherry-picked 748596a]
1 parent 8fa10ee commit 49a97d7

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,8 +1038,7 @@ trait Applications extends Compatibility {
10381038
case Some(arg) if tree.args.exists(_.span == arg.span) =>
10391039
val noteText =
10401040
i"""The required type comes from a parameter of the automatically
1041-
|inserted `apply` method of `${qualifier.tpe}`,
1042-
|which is the type of `${qualifier.show}`.""".stripMargin
1041+
|inserted `apply` method of `${qualifier.tpe}`.""".stripMargin
10431042
Diagnostic.Error(msg.appendExplanation("\n\n" + noteText), dia.pos)
10441043
case _ => dia
10451044
case msg => dia

tests/neg/19680.check

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@
1919
| The tests were made under the empty constraint
2020
|
2121
| The required type comes from a parameter of the automatically
22-
| inserted `apply` method of `scala.collection.StringOps`,
23-
| which is the type of `augmentString(renderWebsite("/tmp")(x$1))`.
22+
| inserted `apply` method of `scala.collection.StringOps`.
2423
---------------------------------------------------------------------------------------------------------------------

tests/neg/19680b.check

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@
2020
| The tests were made under the empty constraint
2121
|
2222
| The required type comes from a parameter of the automatically
23-
| inserted `apply` method of `List[Int]`,
24-
| which is the type of `List.apply[Int]([1,2 : Int]*)`.
23+
| inserted `apply` method of `List[Int]`.
2524
---------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)