For me, it seems like a bug.
I am using docker image. But the version is
Swift version 6.0 (swift-6.0-RELEASE)
Target: aarch64-unknown-linux-gnu
final class Main {
func run() {
// Main actor-isolated value of type '@MainActor () async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language modeSourceKiterror-in-future-swift-version
Task.detached { @MainActor in
}
}
}