Skip to content

Commit 748596a

Browse files
committed
Remove message last line
1 parent 1f06af1 commit 748596a

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
@@ -1042,8 +1042,7 @@ trait Applications extends Compatibility {
10421042
case Some(arg) if tree.args.exists(_.span == arg.span) =>
10431043
val noteText =
10441044
i"""The required type comes from a parameter of the automatically
1045-
|inserted `apply` method of `${qualifier.tpe}`,
1046-
|which is the type of `${qualifier.show}`.""".stripMargin
1045+
|inserted `apply` method of `${qualifier.tpe}`.""".stripMargin
10471046
Diagnostic.Error(msg.appendExplanation("\n\n" + noteText), dia.pos)
10481047
case _ => dia
10491048
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)