[embedded] Update wording on existential diagnostics, take 2

This commit is contained in:
Kuba Mracek
2023-10-14 10:55:48 -07:00
parent bbe111cca6
commit 30046b1f8d
4 changed files with 5 additions and 5 deletions

View File

@@ -13,6 +13,6 @@ public typealias AnyObject = Builtin.AnyObject
precedencegroup AssignmentPrecedence { assignment: true }
public func foo(_ x: AnyObject) {
_ = type(of: x) // expected-error {{using values of protocol type 'AnyObject' is not allowed in embedded Swift}}
_ = type(of: x) // expected-error {{cannot use a value of protocol type 'AnyObject' in embedded Swift}}
// expected-note@-1 {{called from here}}
}