Skip to content

Commit aad55cf

Browse files
authored
Merge pull request #36941 from DougGregor/anyhashable-conformance-condfail
[AnyHashable] Work around older compiler limitation.
2 parents 5887791 + 1945364 commit aad55cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/core/AnyHashable.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ extension AnyHashable: CustomReflectable {
262262

263263
@available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *)
264264
extension AnyHashable: _HasCustomAnyHashableRepresentation {
265+
}
266+
267+
extension AnyHashable {
268+
@_alwaysEmitIntoClient
265269
public __consuming func _toCustomAnyHashable() -> AnyHashable? {
266270
return self
267271
}

0 commit comments

Comments
 (0)