Does anyone know why the code doesn't compile? Why can a nonisolated(nonsending) be sending but not escaping? If it's intentional, compiler doesn't produce a nice diagnostic (the output looks like unrecognized syntax error).
final class NS {
let fn: nonisolated(nonsending) () async -> Void
init(_ fn: @escaping nonisolated(nonsending) () async -> Void) {
self.fn = fn
}
}
I tested nightly build and 6.2 and 6.3 releases. All have the same error.