Skip to content

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

Closed
@rjmccall

Description

@rjmccall
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    attributesFeature: Declaration and type attributesbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.clang importerArea → compiler: The clang importercompilerThe Swift compiler itselfconcurrencyFeature: umbrella label for concurrency language featuresgood first issueGood for newcomersobjective-c interopFeature: Interoperability with Objective-CtypesFeature: types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions