Skip to content

Commit 0582667

Browse files
committed
[stdlib] ClosedRange: Describe availability of Hashable conformance
1 parent 1f39896 commit 0582667

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/core/ClosedRange.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ extension ClosedRange: Equatable {
378378
}
379379
}
380380

381+
@available(swift, introduced: 4.1) // FIXME(conformance-availability)
381382
extension ClosedRange : Hashable where Bound : Hashable {
382383
/// The hash value for the range.
383384
///
@@ -386,6 +387,7 @@ extension ClosedRange : Hashable where Bound : Hashable {
386387
/// Hash values are not guaranteed to be equal across different executions of
387388
/// your program. Do not save hash values to use during a future execution.
388389
@_inlineable // FIXME(sil-serialize-all)
390+
@available(swift, introduced: 4.1)
389391
public var hashValue: Int {
390392
return _combineHashValues(lowerBound.hashValue, upperBound.hashValue)
391393
}

0 commit comments

Comments
 (0)