Skip to content

Commit 03ca229

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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))

0 commit comments

Comments
 (0)