Avatar
Avatar
Iceman
@swift-6.0.3 @swift-5.10.1 enum E { protocol P where T: Collection { associatedtype T = Int } struct S<T>: P where T: Collection { } } (edited)
swift510 BOT 3/25/2025 5:30 AM
exit status: 1 with <stdin>:5:10: error: type 'E.S<T>' does not conform to protocol 'E.P' struct S<T>: P where T: Collection { ^ <stdin>:3:20: note: default type 'Int' for associated type 'T' (from protocol 'E.P') does not conform to 'Collection' associatedtype T = Int ^ (edited)