Anviking / Decodable

[Probably deprecated] Swift 2/3 JSON unmarshalling done (more) right
MIT License
1.04k stars 73 forks source link

Use of unresolved operator #156

Closed mrtungdev closed 7 years ago

mrtungdev commented 7 years ago

I'm using Xcode 9 and Swift 4. But when I add an example, I got error Use of unresolved operator '=>' screen shot 2017-09-24 at 8 07 53

shahbazkhanABMU commented 7 years ago

I am also getting same error... give us the solution

Ambiguous use of operator '=>?'

Anviking commented 7 years ago

Is this related to the complexity of the expression?

For instance, does the following compile?

let id: Int = try json => "id"
dash-1234 commented 7 years ago

Same here :( Use of unresolved operator '=>' How to fix this. Structure is similar to above screenshot of 'WeAreUnique' user.

Anviking commented 7 years ago

I have not been able to reproduce this. If someone could post a smallest failing example (self-contained and as text) that would be really helpful :)

dash-1234 commented 7 years ago

@Anviking I will ASAP.

dash-1234 commented 7 years ago

@Anviking Please have a look on testApp . Also have a look on screenshot.

screen shot 2017-10-02 at 1 39 01 pm

TestApp.zip

Anviking commented 7 years ago

@dash-1234 Thanks! Will take a look.

Anviking commented 7 years ago

It was simpler than I expected: we need to import Decodable ofc 😅 I will make sure this is clear in the readme. Please let me know if it indeed resolves the issue.

dash-1234 commented 7 years ago

@Anviking Thank you Man, Error gone :). Thanks a lot.