File tree 3 files changed +30
-0
lines changed
3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -7102,3 +7102,29 @@ extension SingleValueDecodingContainer {
7102
7102
)
7103
7103
}
7104
7104
}
7105
+
7106
+ // Default implementations for types with stricter availability than SVEC & UEC
7107
+ // We need these to break ambiguity when an encoding container conforms to both.
7108
+ extension SingleValueEncodingContainer where Self: UnkeyedEncodingContainer {
7109
+ @available ( SwiftStdlib 6 . 0 , * )
7110
+ public mutating func encode( _ value: Int128 ) throws {
7111
+ throw EncodingError . invalidValue (
7112
+ value,
7113
+ EncodingError . Context (
7114
+ codingPath: codingPath,
7115
+ debugDescription: " Encoder has not implemented support for Int128 "
7116
+ )
7117
+ )
7118
+ }
7119
+
7120
+ @available ( SwiftStdlib 6 . 0 , * )
7121
+ public mutating func encode( _ value: UInt128 ) throws {
7122
+ throw EncodingError . invalidValue (
7123
+ value,
7124
+ EncodingError . Context (
7125
+ codingPath: codingPath,
7126
+ debugDescription: " Encoder has not implemented support for UInt128 "
7127
+ )
7128
+ )
7129
+ }
7130
+ }
Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ Added: _$ss28SingleValueDecodingContainerPsE6decodeys6Int128VAEmKF
271
271
Added: _$ss28SingleValueEncodingContainerP6encodeyys6Int128VKFTj
272
272
Added: _$ss28SingleValueEncodingContainerP6encodeyys6Int128VKFTq
273
273
Added: _$ss28SingleValueEncodingContainerPsE6encodeyys6Int128VKF
274
+ Added: _$ss28SingleValueEncodingContainerPss07UnkeyedcD0RzrlE6encodeyys6Int128VKF
274
275
Added: _$ss30KeyedDecodingContainerProtocolP15decodeIfPresent_6forKeys6Int128VSgAFm_0I0QztKFTj
275
276
Added: _$ss30KeyedDecodingContainerProtocolP15decodeIfPresent_6forKeys6Int128VSgAFm_0I0QztKFTq
276
277
Added: _$ss30KeyedDecodingContainerProtocolP6decode_6forKeys6Int128VAFm_0G0QztKFTj
@@ -408,6 +409,7 @@ Added: _$ss28SingleValueDecodingContainerPsE6decodeys7UInt128VAEmKF
408
409
Added: _$ss28SingleValueEncodingContainerP6encodeyys7UInt128VKFTj
409
410
Added: _$ss28SingleValueEncodingContainerP6encodeyys7UInt128VKFTq
410
411
Added: _$ss28SingleValueEncodingContainerPsE6encodeyys7UInt128VKF
412
+ Added: _$ss28SingleValueEncodingContainerPss07UnkeyedcD0RzrlE6encodeyys7UInt128VKF
411
413
Added: _$ss30KeyedDecodingContainerProtocolP15decodeIfPresent_6forKeys7UInt128VSgAFm_0I0QztKFTj
412
414
Added: _$ss30KeyedDecodingContainerProtocolP15decodeIfPresent_6forKeys7UInt128VSgAFm_0I0QztKFTq
413
415
Added: _$ss30KeyedDecodingContainerProtocolP6decode_6forKeys7UInt128VAFm_0G0QztKFTj
Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ Added: _$ss28SingleValueDecodingContainerPsE6decodeys6Int128VAEmKF
271
271
Added: _$ss28SingleValueEncodingContainerP6encodeyys6Int128VKFTj
272
272
Added: _$ss28SingleValueEncodingContainerP6encodeyys6Int128VKFTq
273
273
Added: _$ss28SingleValueEncodingContainerPsE6encodeyys6Int128VKF
274
+ Added: _$ss28SingleValueEncodingContainerPss07UnkeyedcD0RzrlE6encodeyys6Int128VKF
274
275
Added: _$ss30KeyedDecodingContainerProtocolP15decodeIfPresent_6forKeys6Int128VSgAFm_0I0QztKFTj
275
276
Added: _$ss30KeyedDecodingContainerProtocolP15decodeIfPresent_6forKeys6Int128VSgAFm_0I0QztKFTq
276
277
Added: _$ss30KeyedDecodingContainerProtocolP6decode_6forKeys6Int128VAFm_0G0QztKFTj
@@ -408,6 +409,7 @@ Added: _$ss28SingleValueDecodingContainerPsE6decodeys7UInt128VAEmKF
408
409
Added: _$ss28SingleValueEncodingContainerP6encodeyys7UInt128VKFTj
409
410
Added: _$ss28SingleValueEncodingContainerP6encodeyys7UInt128VKFTq
410
411
Added: _$ss28SingleValueEncodingContainerPsE6encodeyys7UInt128VKF
412
+ Added: _$ss28SingleValueEncodingContainerPss07UnkeyedcD0RzrlE6encodeyys7UInt128VKF
411
413
Added: _$ss30KeyedDecodingContainerProtocolP15decodeIfPresent_6forKeys7UInt128VSgAFm_0I0QztKFTj
412
414
Added: _$ss30KeyedDecodingContainerProtocolP15decodeIfPresent_6forKeys7UInt128VSgAFm_0I0QztKFTq
413
415
Added: _$ss30KeyedDecodingContainerProtocolP6decode_6forKeys7UInt128VAFm_0G0QztKFTj
You can’t perform that action at this time.
0 commit comments