Skip to content
Merged
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
2 changes: 1 addition & 1 deletion Sources/SWBUtil/Serialization.swift
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ extension PendingSerializableCodable {
/// Elements of these types will be wrapped in a `PolymorphicSerializableWrapper` struct to be serialized. They should never be serialized directly (which is why this protocol does not adopt `Serializable`).
///
/// `PolymorphicSerializable` does not support serializing multiple types of a given protocol, because deserialization cannot infer the type to instantiate if all it has to work with is the protocol. A class hierarchy should be used instead.
public protocol PolymorphicSerializable
public protocol PolymorphicSerializable: SendableMetatype
{
/// Serialize the receiver.
func serialize<T: Serializer>(to serializer: T)
Expand Down
Loading