File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -502,7 +502,9 @@ public struct KeyedEncodingContainer<K: CodingKey> :
502
502
/// Creates a new instance with the given container.
503
503
///
504
504
/// - parameter container: The container to hold.
505
- public init ( _ container: some KeyedEncodingContainerProtocol < Key > ) {
505
+ public init < Container: KeyedEncodingContainerProtocol > (
506
+ _ container: Container
507
+ ) where Container. Key == Key {
506
508
_box = container
507
509
}
508
510
@@ -1465,7 +1467,9 @@ public struct KeyedDecodingContainer<K: CodingKey> :
1465
1467
/// Creates a new instance with the given container.
1466
1468
///
1467
1469
/// - parameter container: The container to hold.
1468
- public init ( _ container: some KeyedDecodingContainerProtocol < Key > ) {
1470
+ public init < Container: KeyedDecodingContainerProtocol > (
1471
+ _ container: Container
1472
+ ) where Container. Key == Key {
1469
1473
_box = container
1470
1474
}
1471
1475
You can’t perform that action at this time.
0 commit comments