mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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.
4 lines
42 B
C
4 lines
42 B
C
|
|
typedef void (^dispatch_block_t)(void);
|
|
|