mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[embedded] Implement non-allocating embedded Swift mode, under -no-allocations flag
This commit is contained in:
@@ -16,5 +16,4 @@ precedencegroup AssignmentPrecedence { assignment: true }
|
||||
|
||||
public func foo(_ x: AnyObject) {
|
||||
_ = 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