Skip to content

Commit 6848840

Browse files
author
Kyle Macomber
committed
Minor edit based on pitch thread feedback
1 parent 76c12cc commit 6848840

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/public/core/Policy.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ extension Never: Equatable, Comparable, Hashable {}
3636

3737
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
3838
extension Never: Identifiable {
39-
public var id: Never { fatalError() }
39+
public var id: Never {
40+
switch self {}
41+
}
4042
}
4143

4244
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)