Skip to content

Commit a3decf6

Browse files
committed
Fix wording in error message
1 parent c036bfb commit a3decf6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2834,7 +2834,7 @@ class Typer extends Namer
28342834
// type selections. See i8736.scala
28352835
"""|
28362836
|
2837-
|Note: this happens because one or more alternatives have the same erasure,
2837+
|Note: this happens because two or more alternatives have the same erasure,
28382838
| so they cannot be distinguished by overloading resolution""".stripMargin
28392839
else ""
28402840
errorTree(tree, AmbiguousOverload(tree, remainingDenots, pt, addendum))

tests/neg/i8736.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
| (k: ("z" : String)): Boolean
1818
| all match arguments (("z" : String))
1919
|
20-
| Note: this happens because one or more alternatives have the same erasure,
21-
| so they cannot be distinguised by overloading resolution
20+
| Note: this happens because two or more alternatives have the same erasure,
21+
| so they cannot be distinguished by overloading resolution
2222

2323
longer explanation available when compiling with `-explain`

0 commit comments

Comments
 (0)