File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Tests/AtomicsTests/Basics Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift Atomics open source project
4
4
//
5
- // Copyright (c) 2020 - 2023 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2020 - 2025 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See https://swift.org/LICENSE.txt for license information
12
12
13
13
import Atomics
14
14
15
+ #if compiler(>=6.0)
16
+ extension Unmanaged : @retroactive Equatable { // FIXME: This is terrible
17
+ public static func == ( left: Self , right: Self ) -> Bool {
18
+ left. toOpaque ( ) == right. toOpaque ( )
19
+ }
20
+ }
21
+ #else
15
22
extension Unmanaged : Equatable { // FIXME: This is terrible
16
23
public static func == ( left: Self , right: Self ) -> Bool {
17
24
left. toOpaque ( ) == right. toOpaque ( )
18
25
}
19
26
}
27
+ #endif
20
28
21
29
struct Foo : Equatable , CustomStringConvertible {
22
30
var value : Int
You can’t perform that action at this time.
0 commit comments