[Diagnostics] Simplify diagnoseAmbiguityWithFixes by removing AmbiguityKind.

This commit is contained in:
Holly Borla
2020-02-06 16:50:30 -08:00
committed by Pavel Yaskevich
parent 607c298493
commit 54706ba79b
3 changed files with 65 additions and 135 deletions

View File

@@ -385,9 +385,9 @@ func testSubscript1(_ s1 : SubscriptTest1) {
_ = s1.subscript(SuperClass())
// expected-error@-1 {{no exact matches in call to subscript}}
_ = s1.subscript("hello")
// expected-error@-1 {{value of type 'SubscriptTest1' has no property or method named 'subscript'; did you mean to use the subscript operator?}}
// expected-error@-1 {{no exact matches in call to subscript}}
_ = s1.subscript("hello"
// expected-error@-1 {{value of type 'SubscriptTest1' has no property or method named 'subscript'; did you mean to use the subscript operator?}}
// expected-error@-1 {{no exact matches in call to subscript}}
// expected-note@-2 {{to match this opening '('}}
let _ = s1["hello"]