Files
swift-mirror/test/SILGen/Inputs/objc_bridging_sendable.h
Pavel Yaskevich 1e9e351a3f [SILGen] Fix any Sendable to Any bridging when result should be placed in a buffer
If the context indicates that the result of `id-to-Any` should be
placed in some pre-allocated buffer, let's not attempt marker existential
transformation because that would much the expected layout already.
2024-06-17 09:45:00 -07:00

8 lines
309 B
Objective-C

@import Foundation;
@interface NSBlah: NSObject
- (void) takeSendable: (id __attribute__((swift_attr("@Sendable")))) x;
@property(readonly) id __attribute__((swift_attr("@Sendable"))) x;
- (nullable __attribute__((swift_attr("@Sendable"))) id)test:(NSError *_Nullable __autoreleasing * _Nullable)error;
@end