mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: add first argument labels and some other changes to conform to API guidelines
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user