mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #711 from glessard/nsstringapi-curry-fix
Return a closure instead of using curried syntax
This commit is contained in:
@@ -1395,8 +1395,8 @@ NSStringAPIs.test("stringByFoldingWithOptions(_:locale:)") {
|
||||
|
||||
func fwo(
|
||||
s: String, _ options: NSStringCompareOptions
|
||||
)(loc: NSLocale?) -> String {
|
||||
return s.stringByFoldingWithOptions(options, locale: loc)
|
||||
) -> (NSLocale?) -> String {
|
||||
return { loc in s.stringByFoldingWithOptions(options, locale: loc) }
|
||||
}
|
||||
|
||||
expectLocalizedEquality("abcd", fwo("abCD", .CaseInsensitiveSearch), "en")
|
||||
|
||||
Reference in New Issue
Block a user