Avatar
@swift-6.0.3 -swift-version 6 func requireSendable(_: some Sendable) { print("is sendable") } func requireSendable(_: some Any) { print("is not sendable") } class C {} func f(_ v: AnyObject) { requireSendable(v) } f(C()) (edited)