-
Notifications
You must be signed in to change notification settings - Fork 81
Closed
Labels
good first issueA good starting issue for contributors (issues with this label will appear in /contribute)A good starting issue for contributors (issues with this label will appear in /contribute)package:swift2objc
Description
Working on #1773, I found that async initializers and property getters can't be marked with @objc
:
pkgs/swift2objc/test/integration/async_output.swift:36:9: error: 'async' initializer cannot be represented in Objective-C
@objc init(y: Int) async {
^ ~~~~~
pkgs/swift2objc/test/integration/async_output.swift:26:20: error: property with 'throws' or 'async' is not representable in Objective-C
@objc public var x: MyClassWrapper {
^
Similarly to #1765, the fix is to transform these initializers and properties into a static method.
Metadata
Metadata
Assignees
Labels
good first issueA good starting issue for contributors (issues with this label will appear in /contribute)A good starting issue for contributors (issues with this label will appear in /contribute)package:swift2objc
Type
Projects
Status
Done