Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error : Ambiguous reference to member 'value(for:inContext:)' #117

Open
v2Nitesh opened this issue Jul 7, 2017 · 1 comment
Open

Comments

@v2Nitesh
Copy link

v2Nitesh commented Jul 7, 2017

Hi,

I have just started exploring the Marshal and tried to build some Demo, using carthage.

But getting error : Ambiguous reference to member 'value(for:inContext:)'

Line of code in my project :

let obj = personsJSON()
let context = DeserializationContext()
let people: [Person] = try! obj.value(for: "people", inContext: context) // Getting error on this line

Can you please check and let me know whats the issue.

Thank you
Nitesh

@milczi
Copy link

milczi commented Jul 11, 2017

I had the same issue. Please insert this code in do {} catch {} (remove ! after try) statement and check whats going on. Maybe it will show another error. Also check if your person class implements these two protocols UnmarshalingWithContext, UnmarshalUpdatingWithContext
Milczi

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

No branches or pull requests

2 participants