Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Sources/BSONDecoding/Decoding/BSON.KeyspaceError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ extension BSON
{
public
let key:Key

#if compiler(>=6.1)
// Needed to work around compiler bug https://github.com/swiftlang/swift/issues/78802
public
let space:any RawRepresentable<String>.Type

@inlinable public
init(mapping key:Key, to space:any RawRepresentable<String>.Type)
{
self.key = key
self.space = space
}

#else
public
let space:any (RawRepresentable<String> & Sendable).Type

Expand All @@ -20,6 +34,7 @@ extension BSON
self.key = key
self.space = space
}
#endif
}
}
extension BSON.KeyspaceError:Equatable
Expand Down