mirror of
https://github.com/apple/swift.git
synced 2026-09-30 10:17:34 +02:00
See https://forums.swift.org/t/accepted-se-0353-constrained-existential-types/57560
11 lines
440 B
Swift
11 lines
440 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module %S/Inputs/parameterized_protocol_other.swift -emit-module-path %t/parameterized_protocol_other.swiftmodule
|
|
// RUN: %target-typecheck-verify-swift -I%t
|
|
|
|
import parameterized_protocol_other
|
|
|
|
func testParameterizedProtocol(_: some MySequence<Int>) {}
|
|
func testParameterizedProtocol(x : any MySequence<Int>) -> MySequenceHolder<Int> {
|
|
return MySequenceHolder(seq: x)
|
|
}
|