mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use the modern spelling for the nullability attributes in the test mock headers. Currently, this was relying on the predefined macros from clang to work. However, those are only available on Darwin targets. This is needed to make the mock environments more portable.
7 lines
168 B
C
7 lines
168 B
C
@import Foundation;
|
|
|
|
static inline NSArray *_Nullable getNullable() { return nil; }
|
|
static inline NSArray *_Nonnull getNonnull() {
|
|
return (NSArray * _Nonnull) nil;
|
|
}
|