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

Increment not handled properly #71

Closed
erikkaplun opened this issue Nov 20, 2013 · 2 comments
Closed

Increment not handled properly #71

erikkaplun opened this issue Nov 20, 2013 · 2 comments
Labels

Comments

@erikkaplun
Copy link

buf[pos++] in Java gets converted to buf(pos += 1) in Scala, which is obviously incorrect because Scala assignments are expressions of type Unit (not the value that is being assigned).

@timowest
Copy link
Owner

Do you have a replacement pattern in mind?

@erikkaplun
Copy link
Author

I think the only realistic one would be buf(pos) followed by pos += 1 (and vice versa for buf(++pos))...?

timowest added a commit that referenced this issue Jan 26, 2014
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

2 participants