Files
swift-mirror/test/Serialization/parameterized_protocol.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)
}