"Incorrect actor executor assumption" run-time error in Swift 6 mode

I ran into the same crash. In may case, I used to have a compiler warning that you can see here. However now, the compiler doesn't complain anymore and crashes.

Following @grynspan's advice, I tried @crontab's snippet by marking the property as async and it did not crash anymore.

protocol P {
    var key: String { get async } // <-- this
}

@globalActor
actor GA {
    static var shared = GA()
}

@GA
class A: P {
    var key: String {
        get async {
            "SomeKey"
        }
    }
}

Task {
    let p: P = await A()
    let key = await p.key
    print(key)
}

Context

Xcode: Version 16.2 (16C5032a)

swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0