mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Make NS_ENUM &c. Sendable even when audited
An explicit swift_attr("@_nonSendable") will override it (except for ns_error_domain where the type is embedded in another type that's forced to be Sendable), but swift_attr("@_nonSendable(_assumed)") will not.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
// RUN: %FileCheck -input-file=%t.response %s
|
||||
|
||||
// CHECK: struct MyError : CustomNSError, Hashable, Error {
|
||||
// CHECK: enum Code : Int32, Equatable {
|
||||
// CHECK: enum Code : Int32, @unchecked Sendable, Equatable {
|
||||
// CHECK: case errFirst
|
||||
// CHECK: case errSecond
|
||||
// CHECK: }
|
||||
|
||||
Reference in New Issue
Block a user