Files
swift-mirror/test/Constraints/issue-51599.swift

8 lines
156 B
Swift

// RUN: %target-typecheck-verify-swift
// https://github.com/apple/swift/issues/51599
func test(_ a: [Int], _ f: ((Int) -> Bool)?) {
_ = a.filter(f!)
}