stdlib: add first argument labels and some other changes to conform to API guidelines

This commit is contained in:
Dmitri Gribenko
2016-02-12 16:59:15 -08:00
parent a558d13a3b
commit efaa39ea79
132 changed files with 1653 additions and 1592 deletions

View File

@@ -38,9 +38,9 @@ struct ErrorProtocolAsNSErrorRaceTest : RaceTestWithPerTrialData {
let ns = raceData.error as NSError
// Use valueForKey to bypass bridging, so we can verify that the identity
// of the unbridged NSString object is stable.
let domainInt: Int = unsafeBitCast(ns.value(forKey: "domain"), Int.self)
let domainInt: Int = unsafeBitCast(ns.value(forKey: "domain"), to: Int.self)
let code: Int = ns.code
let userInfoInt: Int = unsafeBitCast(ns.value(forKey: "userInfo"), Int.self)
let userInfoInt: Int = unsafeBitCast(ns.value(forKey: "userInfo"), to: Int.self)
return Observation3Int(domainInt, code, userInfoInt)
}