File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -7128,3 +7128,29 @@ extension SingleValueEncodingContainer where Self: UnkeyedEncodingContainer {
71287128 )
71297129 }
71307130}
7131+
7132+ // Default implementations for types with stricter availability than SVDC & UDC
7133+ // We need these to break ambiguity when an encoding container conforms to both.
7134+ extension SingleValueDecodingContainer where Self: UnkeyedDecodingContainer {
7135+ @available ( SwiftStdlib 6 . 0 , * )
7136+ public func decode( _ type: Int128 . Type ) throws -> Int128 {
7137+ throw DecodingError . typeMismatch (
7138+ Int128 . self,
7139+ DecodingError . Context (
7140+ codingPath: codingPath,
7141+ debugDescription: " Decoder has not implemented support for Int128 "
7142+ )
7143+ )
7144+ }
7145+
7146+ @available ( SwiftStdlib 6 . 0 , * )
7147+ public func decode( _ type: UInt128 . Type ) throws -> UInt128 {
7148+ throw DecodingError . typeMismatch (
7149+ UInt128 . self,
7150+ DecodingError . Context (
7151+ codingPath: codingPath,
7152+ debugDescription: " Decoder has not implemented support for UInt128 "
7153+ )
7154+ )
7155+ }
7156+ }
Original file line number Diff line number Diff line change @@ -268,6 +268,7 @@ Added: _$ss24UnkeyedEncodingContainerPsE6encodeyys6Int128VKF
268268Added: _$ss28SingleValueDecodingContainerP6decodeys6Int128VAEmKFTj
269269Added: _$ss28SingleValueDecodingContainerP6decodeys6Int128VAEmKFTq
270270Added: _$ss28SingleValueDecodingContainerPsE6decodeys6Int128VAEmKF
271+ Added: _$ss28SingleValueDecodingContainerPss07UnkeyedcD0RzrlE6decodeys6Int128VAFmKF
271272Added: _$ss28SingleValueEncodingContainerP6encodeyys6Int128VKFTj
272273Added: _$ss28SingleValueEncodingContainerP6encodeyys6Int128VKFTq
273274Added: _$ss28SingleValueEncodingContainerPsE6encodeyys6Int128VKF
@@ -406,6 +407,7 @@ Added: _$ss24UnkeyedEncodingContainerPsE6encodeyys7UInt128VKF
406407Added: _$ss28SingleValueDecodingContainerP6decodeys7UInt128VAEmKFTj
407408Added: _$ss28SingleValueDecodingContainerP6decodeys7UInt128VAEmKFTq
408409Added: _$ss28SingleValueDecodingContainerPsE6decodeys7UInt128VAEmKF
410+ Added: _$ss28SingleValueDecodingContainerPss07UnkeyedcD0RzrlE6decodeys7UInt128VAFmKF
409411Added: _$ss28SingleValueEncodingContainerP6encodeyys7UInt128VKFTj
410412Added: _$ss28SingleValueEncodingContainerP6encodeyys7UInt128VKFTq
411413Added: _$ss28SingleValueEncodingContainerPsE6encodeyys7UInt128VKF
Original file line number Diff line number Diff line change @@ -268,6 +268,7 @@ Added: _$ss24UnkeyedEncodingContainerPsE6encodeyys6Int128VKF
268268Added: _$ss28SingleValueDecodingContainerP6decodeys6Int128VAEmKFTj
269269Added: _$ss28SingleValueDecodingContainerP6decodeys6Int128VAEmKFTq
270270Added: _$ss28SingleValueDecodingContainerPsE6decodeys6Int128VAEmKF
271+ Added: _$ss28SingleValueDecodingContainerPss07UnkeyedcD0RzrlE6decodeys6Int128VAFmKF
271272Added: _$ss28SingleValueEncodingContainerP6encodeyys6Int128VKFTj
272273Added: _$ss28SingleValueEncodingContainerP6encodeyys6Int128VKFTq
273274Added: _$ss28SingleValueEncodingContainerPsE6encodeyys6Int128VKF
@@ -406,6 +407,7 @@ Added: _$ss24UnkeyedEncodingContainerPsE6encodeyys7UInt128VKF
406407Added: _$ss28SingleValueDecodingContainerP6decodeys7UInt128VAEmKFTj
407408Added: _$ss28SingleValueDecodingContainerP6decodeys7UInt128VAEmKFTq
408409Added: _$ss28SingleValueDecodingContainerPsE6decodeys7UInt128VAEmKF
410+ Added: _$ss28SingleValueDecodingContainerPss07UnkeyedcD0RzrlE6decodeys7UInt128VAFmKF
409411Added: _$ss28SingleValueEncodingContainerP6encodeyys7UInt128VKFTj
410412Added: _$ss28SingleValueEncodingContainerP6encodeyys7UInt128VKFTq
411413Added: _$ss28SingleValueEncodingContainerPsE6encodeyys7UInt128VKF
You can’t perform that action at this time.
0 commit comments