// RUN: %target-swift-frontend -typecheck %s -target %target-swift-5.9-abi-triple protocol P { associatedtype A } struct S: P { typealias A = (repeat each T) } func foo() -> some P<(repeat each T)> { S() }