We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55b7230 commit fb79ad2Copy full SHA for fb79ad2
stdlib/public/core/ClosedRange.swift
@@ -167,8 +167,8 @@ extension ClosedRange.Index : Comparable {
167
}
168
169
170
-/* FIXME: compiler crash
171
-extension ClosedRange.Index: Hashable where Bound: Hashable {
+extension ClosedRange.Index: Hashable
+where Bound: Strideable, Bound.Stride: SignedInteger, Bound: Hashable {
172
public var hashValue: Int {
173
switch self {
174
case .inRange(let value):
@@ -178,7 +178,6 @@ extension ClosedRange.Index: Hashable where Bound: Hashable {
178
179
180
181
-*/
182
183
// FIXME: this should only be conformance to RandomAccessCollection but
184
// the compiler balks without all 3
0 commit comments