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-412] Linux: Cannot define C function pointer that returns metaclass #43029

Closed
lhoward opened this issue Dec 30, 2015 · 2 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@lhoward
Copy link
Contributor

lhoward commented Dec 30, 2015

Previous ID SR-412
Radar None
Original Reporter @lhoward
Type Bug
Status Closed
Resolution Won't Do
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: e6505c12db1f510c284c20322bba8d8f

blocks:

  • SR-377 Implement NSKeyed[Un]Archiver

relates to:

  • SR-381 API to lookup a Type given a top-level class name

Issue Description:

typealias TypeMetadataAccessor = @convention(c) () -> AnyClass?

assert fails in ExistentialMetatypeType::ExistentialMetatypeType() at:

   assert(getASTContext().LangOpts.EnableObjCInterop ||
          *repr != MetatypeRepresentation::ObjC);

Commenting this out works but a correct fix is desired. This is only an issue on Linux.

@lhoward
Copy link
Contributor Author

lhoward commented Dec 31, 2015

If [SR-381] is resolved this bug can be closed

@lhoward
Copy link
Contributor Author

lhoward commented Jan 2, 2016

I'm going to close this as I agree with @jckarter that it's not valid behaviour for the non-ObjC build.

@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

1 participant