mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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)
|
|
}
|