Skip to content

Commit

Permalink
Merge pull request #315 from lorentey/fix-test-warning
Browse files Browse the repository at this point in the history
[1.0][test] Fix typename shadowing warning in Swift 5.9
  • Loading branch information
lorentey authored Oct 3, 2023
2 parents 4cab1c1 + bf74261 commit d30ebed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ extension MinimalDecoder.KeyedContainer: KeyedDecodingContainerProtocol {
return input[key.stringValue] != nil
}

func _decode<Key: CodingKey>(key: Key) throws -> Value {
func _decode<CKey: CodingKey>(key: CKey) throws -> Value {
expectTrue(isValid, "Container isn't valid", trapping: true)
commitPendingContainer()
guard let value = input[key.stringValue] else {
Expand Down

0 comments on commit d30ebed

Please sign in to comment.