Avatar
Avatar
omochimetaru
@swift-main func foo0(x: any Sequence<Int>) {} func foo1(x: any Sendable) {} func foo2(x: any Sequence & Sendable) {} func foo3(x: any Sequence<Int> & Sendable) {}
swiftNightly BOT 5/1/2025 11:59 AM
exit status: 1 with <stdin>:7:18: error: non-protocol, non-class type 'Sequence<Int>' cannot be used within a protocol-constrained type 5 | func foo2(x: any Sequence & Sendable) {} 6 | 7 | func foo3(x: any Sequence<Int> & Sendable) {} | `- error: non-protocol, non-class type 'Sequence<Int>' cannot be used within a protocol-constrained type 8 |