diff --git a/compiler/src/dotty/tools/dotc/typer/Typer.scala b/compiler/src/dotty/tools/dotc/typer/Typer.scala index 67ab835294e8..fdd19deb1e1e 100644 --- a/compiler/src/dotty/tools/dotc/typer/Typer.scala +++ b/compiler/src/dotty/tools/dotc/typer/Typer.scala @@ -2834,7 +2834,7 @@ class Typer extends Namer // type selections. See i8736.scala """| | - |Note: this happens because one or more alternatives have the same erasure, + |Note: this happens because two or more alternatives have the same erasure, | so they cannot be distinguished by overloading resolution""".stripMargin else "" errorTree(tree, AmbiguousOverload(tree, remainingDenots, pt, addendum)) diff --git a/tests/neg/i8736.check b/tests/neg/i8736.check index 0957f14749f4..c38b40682838 100644 --- a/tests/neg/i8736.check +++ b/tests/neg/i8736.check @@ -17,7 +17,7 @@ | (k: ("z" : String)): Boolean | all match arguments (("z" : String)) | - | Note: this happens because one or more alternatives have the same erasure, - | so they cannot be distinguised by overloading resolution + | Note: this happens because two or more alternatives have the same erasure, + | so they cannot be distinguished by overloading resolution longer explanation available when compiling with `-explain`