Open
Description
Previous ID | SR-15282 |
Radar | rdar://problem/83878042 |
Original Reporter | @mickeyl |
Type | Bug |
Environment
Swift 5.5, Linux.
Additional Detail from JIRA
Votes | 0 |
Component/s | Foundation |
Labels | Bug, Concurrency |
Assignee | None |
Priority | Medium |
md5: 75d39d970ff122b78002957b1976920f
Issue Description:
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?