mirror of
https://github.com/apple/swift.git
synced 2025-12-25 12:15:36 +01:00
This protocol lets us identify swift_newtype'd types. More importantly, use protocol extensions to make it easy to transfer specific conformances from the underlying type to the wrapper type. So, for example, if the underlying type is Hashable, make the wrapper type Hashable as well. Do the same for Equatable, Comparable, and _ObjectiveCBridgeable. Fixes rdar://problem/26010804.
220 KiB
220 KiB