mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
388 B
Swift
10 lines
388 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module %S/Inputs/keypath_protocol_extension_other.swift -emit-module-path %t/keypath_protocol_extension_other.swiftmodule
|
|
// RUN: %target-swift-frontend -target %target-swift-5.7-abi-triple -emit-ir %s -I %t
|
|
|
|
import keypath_protocol_extension_other
|
|
|
|
public func foo(array: [any P<String>]) {
|
|
_ = array.filter(\.value)
|
|
}
|