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-15885] NS_SWIFT_UI_ACTOR isn't recognized on block typedefs #58150

Open
rjmccall opened this issue Feb 19, 2022 · 2 comments
Open

[SR-15885] NS_SWIFT_UI_ACTOR isn't recognized on block typedefs #58150

rjmccall opened this issue Feb 19, 2022 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. good first issue Good for newcomers

Comments

@rjmccall
Copy link
Member

Previous ID SR-15885
Radar None
Original Reporter @rjmccall
Type Bug
Additional Detail from JIRA
Votes 1
Component/s
Labels Bug, StarterBug
Assignee None
Priority Medium

md5: c804c21c1b5258c110b8fb340a9361b7

Issue Description:

As reported by Aaron Sky on the forums:

https://forums.swift.org/t/annotate-objective-c-block-type-with-ns-swift-ui-actor/55437

This method ought to be imported as taking and return a @MainActor function type, but doesn't seem to be:

@import Foundation;

typedef void (^FooAction)(void) NS_SWIFT_UI_ACTOR;

@protocol Foo
@property (nonatomic, nullable) FooAction didDoFoo;
- (void)doFoo;
@end
@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@a-alhayek
Copy link

@rjmccall Hi, I would love to take on this issue as my first contribute to swift repo. Where to start on this?

@a-alhayek
Copy link

Some of the test cases are failing
Screen Shot 2022-07-07 at 9 27 48 AM

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. good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants