Files
swift-mirror/test/Constraints/sr9102.swift
Mark Lacey 5a498db041 [TypeChecker] Fix a problem with rethrows classification.
We failed to properly classify arguments that are of optional function
type, in this case leading to a verification failure due to the throws
attribute on the apply expression not being set to some value.

Fixes: SR-9102 / rdar://problem/45615204
2018-11-30 13:28:04 -08:00

6 lines
108 B
Swift

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