Closed
Description
Description
It looks like using @preconcurrency
only applies to the immediate protocol, but not any others it inherits from.
Reproduction
protocol Parent {
func a()
}
protocol Child: Parent {
func b()
}
@MainActor
class Conformance: @preconcurrency Child {
func a() {
}
func b() {
}
}
Expected behavior
I would expect no errors.
Environment
Apple Swift version 6.0-dev (LLVM bf8bbb910874156, Swift a0bb875)
Target: arm64-apple-macosx14.0
Additional information
No response