Skip to content
New issue

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

[SR-1442] Unknown property attribute 'class' #44051

Closed
norio-nomura opened this issue May 8, 2016 · 3 comments
Closed

[SR-1442] Unknown property attribute 'class' #44051

norio-nomura opened this issue May 8, 2016 · 3 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself PrintAsObjC

Comments

@norio-nomura
Copy link
Contributor

Previous ID SR-1442
Radar None
Original Reporter @norio-nomura
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a
Swift-DEVELOPMENT-SNAPSHOT-2016-04-25-a
Swift-DEVELOPMENT-SNAPSHOT-2016-05-03-a

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, PrintAsObjC
Assignee @norio-nomura
Priority Medium

md5: bc365eb2f0cca9b57f4bfdf8e5220898

Issue Description:

Since Swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a, swift generates Objective-C generated header as

@interface Awesome : NSObject
@property (nonatomic, class, readonly, copy) NSString * _Nonnull property;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

from following swift code

public class Awesome: NSObject {
    public class var property: String {
        return "Awesome.property"
    }
}

and generate error `Unknown property attribute 'class'`.

See UnknownPropertyAttributeClass.zip that reproduces this issue.

@belkadan
Copy link
Contributor

belkadan commented May 9, 2016

Huh, right. Development snapshots still need to work with Xcode 7. I'll take a look.

@belkadan
Copy link
Contributor

belkadan commented May 9, 2016

Should be fixed in 135e9b9

@norio-nomura
Copy link
Contributor Author

Thanks!

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself PrintAsObjC
Projects
None yet
Development

No branches or pull requests

2 participants