mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
- If a @convention(block) function parameter was also marked @noescape, then during type-checking, we would accidentally propagate the convention directly onto a literal closure expr, instead of going through a function_conversion, which SILGen didn't handle. Fixes rdar://problem/23261912. - If an Objective-C API declared a block parameter with a _Nonnull return of a bridged type, such as NSString *_Nonnull, then native-to-bridged thunking would fail to recognize this case, since we still bridge to an Optional type in the lowered ObjC interface. Fixes rdar://problem/23285766.
2 lines
57 B
Swift
2 lines
57 B
Swift
typealias dispatch_block_t = @convention(block) () -> ()
|