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 {
7128
7128
)
7129
7129
}
7130
7130
}
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
268
268
Added: _$ss28SingleValueDecodingContainerP6decodeys6Int128VAEmKFTj
269
269
Added: _$ss28SingleValueDecodingContainerP6decodeys6Int128VAEmKFTq
270
270
Added: _$ss28SingleValueDecodingContainerPsE6decodeys6Int128VAEmKF
271
+ Added: _$ss28SingleValueDecodingContainerPss07UnkeyedcD0RzrlE6decodeys6Int128VAFmKF
271
272
Added: _$ss28SingleValueEncodingContainerP6encodeyys6Int128VKFTj
272
273
Added: _$ss28SingleValueEncodingContainerP6encodeyys6Int128VKFTq
273
274
Added: _$ss28SingleValueEncodingContainerPsE6encodeyys6Int128VKF
@@ -406,6 +407,7 @@ Added: _$ss24UnkeyedEncodingContainerPsE6encodeyys7UInt128VKF
406
407
Added: _$ss28SingleValueDecodingContainerP6decodeys7UInt128VAEmKFTj
407
408
Added: _$ss28SingleValueDecodingContainerP6decodeys7UInt128VAEmKFTq
408
409
Added: _$ss28SingleValueDecodingContainerPsE6decodeys7UInt128VAEmKF
410
+ Added: _$ss28SingleValueDecodingContainerPss07UnkeyedcD0RzrlE6decodeys7UInt128VAFmKF
409
411
Added: _$ss28SingleValueEncodingContainerP6encodeyys7UInt128VKFTj
410
412
Added: _$ss28SingleValueEncodingContainerP6encodeyys7UInt128VKFTq
411
413
Added: _$ss28SingleValueEncodingContainerPsE6encodeyys7UInt128VKF
Original file line number Diff line number Diff line change @@ -268,6 +268,7 @@ Added: _$ss24UnkeyedEncodingContainerPsE6encodeyys6Int128VKF
268
268
Added: _$ss28SingleValueDecodingContainerP6decodeys6Int128VAEmKFTj
269
269
Added: _$ss28SingleValueDecodingContainerP6decodeys6Int128VAEmKFTq
270
270
Added: _$ss28SingleValueDecodingContainerPsE6decodeys6Int128VAEmKF
271
+ Added: _$ss28SingleValueDecodingContainerPss07UnkeyedcD0RzrlE6decodeys6Int128VAFmKF
271
272
Added: _$ss28SingleValueEncodingContainerP6encodeyys6Int128VKFTj
272
273
Added: _$ss28SingleValueEncodingContainerP6encodeyys6Int128VKFTq
273
274
Added: _$ss28SingleValueEncodingContainerPsE6encodeyys6Int128VKF
@@ -406,6 +407,7 @@ Added: _$ss24UnkeyedEncodingContainerPsE6encodeyys7UInt128VKF
406
407
Added: _$ss28SingleValueDecodingContainerP6decodeys7UInt128VAEmKFTj
407
408
Added: _$ss28SingleValueDecodingContainerP6decodeys7UInt128VAEmKFTq
408
409
Added: _$ss28SingleValueDecodingContainerPsE6decodeys7UInt128VAEmKF
410
+ Added: _$ss28SingleValueDecodingContainerPss07UnkeyedcD0RzrlE6decodeys7UInt128VAFmKF
409
411
Added: _$ss28SingleValueEncodingContainerP6encodeyys7UInt128VKFTj
410
412
Added: _$ss28SingleValueEncodingContainerP6encodeyys7UInt128VKFTq
411
413
Added: _$ss28SingleValueEncodingContainerPsE6encodeyys7UInt128VKF
You can’t perform that action at this time.
0 commit comments