mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use dictionary type sugar in the standard library.
Swift SVN r19264
This commit is contained in:
@@ -1772,8 +1772,8 @@ struct Dictionary<KeyType : Hashable, ValueType> : Collection,
|
||||
}
|
||||
|
||||
@public func == <KeyType : Equatable, ValueType : Equatable>(
|
||||
lhs: Dictionary<KeyType, ValueType>,
|
||||
rhs: Dictionary<KeyType, ValueType>
|
||||
lhs: [KeyType : ValueType],
|
||||
rhs: [KeyType : ValueType]
|
||||
) -> Bool {
|
||||
switch (lhs._variantStorage, rhs._variantStorage) {
|
||||
case (.Native(let lhsNativeOwner), .Native(let rhsNativeOwner)):
|
||||
@@ -1838,8 +1838,8 @@ struct Dictionary<KeyType : Hashable, ValueType> : Collection,
|
||||
}
|
||||
|
||||
@public func != <KeyType : Equatable, ValueType : Equatable>(
|
||||
lhs: Dictionary<KeyType, ValueType>,
|
||||
rhs: Dictionary<KeyType, ValueType>
|
||||
lhs: [KeyType : ValueType],
|
||||
rhs: [KeyType : ValueType]
|
||||
) -> Bool {
|
||||
return !(lhs == rhs)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user