Avatar
Avatar
Yuta Saito
@swift-5.7.3 func takeAny(_ v: Any) { print(v is Sendable) } class Box {} takeAny(1) takeAny(Box())
exit status: 1 with stderr:<stdin>:2:11: warning: 'is' test is always true print(v is Sendable) ^ <stdin>:2:11: error: marker protocol 'Sendable' cannot be used in a conditional cast print(v is Sendable) ^