Avatar
Avatar
Iceman
@swift-main @swift-5.8.1 @swift-5.7.3 protocol P<A> { associatedtype A } struct S: P<String> {} func f<T: P<String>>(_ a: T) {}
swiftNightly BOT 2/21/2023 8:05 AM
exit status: 1 with <stdin>:4:8: error: cannot inherit from protocol type with generic argument 'P<String>' struct S: P<String> {} ^ <stdin>:4:8: error: type 'S' does not conform to protocol 'P' struct S: P<String> {} ^ <stdin>:2:18: note: protocol requires nested type 'A'; do you want to add it? associatedtype A ^