Skip to content

Commit

Permalink
Fix wording in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Apr 28, 2020
1 parent c036bfb commit a3decf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Typer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions tests/neg/i8736.check
Original file line number Diff line number Diff line change
Expand Up @@ -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`

0 comments on commit a3decf6

Please sign in to comment.