I have a {{public actor StreamCommandQueue: NSObject }}, which implements StreamDelegate, hence I have to derive from NSObject.
On Apple platforms, that works fine. On Linux I get the error:
error: actor-isolated initializer 'init()' has different actor isolation from nonisolated overridden declarationpublic actor StreamCommandQueue: NSObject { Foundation.NSObject:2:12: note: overridden declaration is here public init()
Why the difference and how am I supposed to fix that?
The text was updated successfully, but these errors were encountered:
Environment
Swift 5.5, Linux.
Additional Detail from JIRA
md5: 75d39d970ff122b78002957b1976920f
Issue Description:
I have a {{public actor StreamCommandQueue: NSObject }}, which implements
StreamDelegate
, hence I have to derive fromNSObject
.On Apple platforms, that works fine. On Linux I get the error:
error: actor-isolated initializer 'init()' has different actor isolation from nonisolated overridden declarationpublic actor StreamCommandQueue: NSObject { Foundation.NSObject:2:12: note: overridden declaration is here public init()
Why the difference and how am I supposed to fix that?
The text was updated successfully, but these errors were encountered: