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-8131] 4.2 Regression: Subclass of non-NSObject class with at-objc method not emitting ObjC class metadata #50663

Closed
zwaldowski opened this issue Jun 28, 2018 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@zwaldowski
Copy link

Previous ID SR-8131
Radar None
Original Reporter @zwaldowski
Type Bug
Status Resolved
Resolution Duplicate

Attachment: Download

Environment

Xcode Version 10.0 beta 2 (10L177m)
Apple Swift version 4.2 (swiftlang-1000.0.16.9 clang-1000.10.25.3)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: 8bc858c262c52ba8f6795bb5c6a6aeb3

duplicates:

  • SR-7882 Runtime crash "class does not implement methodSignatureForSelector:" in swift class

Issue Description:

A subclass of a non-NSObject Swift class with an at-objc method is not having its ObjC class emitted; calling the at-objc method from the superclass on the subclass through ObjC yields a does-not-respond crash.

See ViewController.swift in attached file. I reduced down the repro as far as I could.

@belkadan
Copy link
Contributor

@slavapestov, this is the "extension of class with a resilient field" issue that you just fixed. Can you dup this?

@zwaldowski
Copy link
Author

Brilliant, thanks everyone!

@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
Projects
None yet
Development

No branches or pull requests

2 participants