func nestedContainer()

in Sources/_CollectionsTestSupport/MinimalTypes/MinimalDecoder.swift [316:329]


  func nestedContainer<NestedKey: CodingKey>(
    keyedBy type: NestedKey.Type,
    forKey key: Key
  ) throws -> KeyedDecodingContainer<NestedKey> {
    let value = try _decode(key: key)
    guard case let .dictionary(v) = value else {
      throw DecodingError._typeMismatch(at: codingPath + [key],
                                        expectation: [String: Value].self,
                                        reality: value)
    }
    let nested = MinimalDecoder.KeyedContainer<NestedKey>(base: base, parent: self, input: v, key: key)
    pendingContainer = nested
    return .init(nested)
  }