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

Remove underscore assignments #55

Closed
angelolloqui opened this issue Dec 5, 2017 · 1 comment
Closed

Remove underscore assignments #55

angelolloqui opened this issue Dec 5, 2017 · 1 comment
Labels

Comments

@angelolloqui
Copy link
Owner

In Swift, when not using a method/function result, it is common to write:

        _ = service.refresh(cart: cart)

However, in Kotlin the resulting code:

_ = service.refresh(cart = cart)

Is not valid because underscore is reserved for lambdas.

It should just be removed like:

service.refresh(cart = cart)
angelolloqui added a commit that referenced this issue Dec 7, 2017
@angelolloqui
Copy link
Owner Author

Fixed with bf1a790

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant