I can't seem to figure out how to get default arguments to work with global actors. Marking either the class or the init method as MainActor doesn't seem to do anything.
@MainActor
class FakeFileDownloader: FileDownloader {
@MainActor
// Call to main actor-isolated initializer 'init()' in a synchronous nonisolated context
init(sessionManager: SessionManager = SessionManager()) {
Yeah, sorry, to be more clear: I meant here that the execution environment in which the default value is computed is not trivial, and thus whoever fixes that bug — which is definitely worth fixing — may have to make choices about tightening the semantics of default arguments in order to fix this.
To clarify, these version labels indicate the latest (dev or release) version known to contain the issue, not the version the issue is planned to be fixed in.