mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[embedded] Update wording on existential diagnostics, take 2
This commit is contained in:
@@ -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}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user