Skip to content

Conversation

@toco
Copy link
Contributor

@toco toco commented Oct 14, 2015

Fix a bug where when an array or dictionary was directly declared with element/value type JSONEncodable, the test if the element/value is a JSONEncodable did fail.

E.g.

let someArray:[JSONEncodable] = [1,2,3]
someArray.elementsAreJSONEncodable() // false

Since the array elements are explicitly conforming to the JSONEncodable protocol it should return yes.

matthewcheok added a commit that referenced this pull request Oct 15, 2015
fix JSONEncodable type test for Array and Dictionary
@matthewcheok matthewcheok merged commit 7000abd into matthewcheok:master Oct 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants