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

NSArrays and NSDictionaries cannot handle primitive data types like NSInteger #63

Closed
schun93 opened this issue Jul 14, 2017 · 4 comments

Comments

@schun93
Copy link

schun93 commented Jul 14, 2017

NSArray<NSNumber *> * renders in the .h file as expected but the .m file complains about trying to assign a primitive to an id.

@bkase
Copy link
Contributor

bkase commented Jul 15, 2017

The issue is here:

return ["\(propertyToAssign) = [\(rawObjectName) integerValue];"]

We need to avoid making a tmp variable id on the prior line in the generated code for these primitive cases

@rahul-malik
Copy link
Collaborator

@bkase want to put together a patch? Should be a straightforward fix

@rmls
Copy link
Contributor

rmls commented Nov 6, 2017

@rahul-malik
Copy link
Collaborator

@schun93 - This should be resolved in the latest version of Plank

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

4 participants