Avatar
@swift-main -swift-version 6 protocol P {} struct S: @MainActor P {} struct S2: P {} func useSendable(_ v: some Sendable) { print(v, "is sendable.") } func useP(_ v: any P.Type) { useSendable(v) useAny(v) } func useAny(_ v: Any.Type) { useSendable(v) } useP(S.self) useP(S2.self)