Commit 5a96a88
committed
Add compiler version check for Hashable conformance
Only provide Hashable conformance on non-Darwin platforms with Swift < 6.2.
- On Darwin: CoreGraphics provides Hashable conformance
- On Linux/Windows with Swift >= 6.2: swift-corelibs-foundation provides it
- On Linux/Windows with Swift < 6.2: We provide it as a workaround
This ensures no conflicts once Swift 6.2 includes the fix from
swiftlang/swift-corelibs-foundation#52751 parent 706d964 commit 5a96a88
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
0 commit comments