mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Diagnostics] Simplify diagnoseAmbiguityWithFixes by removing AmbiguityKind.
This commit is contained in:
committed by
Pavel Yaskevich
parent
607c298493
commit
54706ba79b
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user