Closed
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
Type
Projects
Status
Done