We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift 4.2
Xcode Version 10.0 beta 3 (10L201y)
md5: 41562f2af56314045f02fb3b5fba1849
duplicates:
Issue Description:
The generated ObjC header for a static class property, declared as
@objc public class TestClass: NSObject { @objc public private(set) static var test = [Int]() }
fails to build, with errors
error: unknown type name 'NSArray' SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSNumber *> * _Nonnull test;) ^ error: expected member name or ';' after declaration specifiers SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSNumber *> * _Nonnull test;) ~~~~~~~^ note: expanded from macro 'SWIFT_CLASS_PROPERTY' # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ ^~~~~~~~~~~ error: property requires fields to be named SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSNumber *> * _Nonnull test;) ^ ~~~~~~~ note: expanded from macro 'SWIFT_CLASS_PROPERTY' # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ ^~~~~~~~~~~ : error: expected ';' at end of declaration list SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSNumber *> * _Nonnull test;) ^ error: expected '>' SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSNumber *> * _Nonnull test;) ^ warning: protocol has no object type specified; defaults to qualified 'id' SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSNumber *> * _Nonnull test;) ^ id note: expanded from macro 'SWIFT_CLASS_PROPERTY' # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ ^ error: expected identifier or '(' SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSNumber *> * _Nonnull test;) ^ expected a type + (NSArray<NSNumber *> * _Nonnull)test SWIFT_WARN_UNUSED_RESULT; ^ 1 warning and 7 errors generated.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Swift 4.2
Xcode Version 10.0 beta 3 (10L201y)
Additional Detail from JIRA
md5: 41562f2af56314045f02fb3b5fba1849
duplicates:
Issue Description:
The generated ObjC header for a static class property, declared as
fails to build, with errors
The text was updated successfully, but these errors were encountered: