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

Nuance pure expr warning #9847

Closed
scabug opened this issue Jul 6, 2016 · 2 comments
Closed

Nuance pure expr warning #9847

scabug opened this issue Jul 6, 2016 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Jul 6, 2016

The mysterious "you may be omitting necessary parentheses" clause to the indisputable "a pure expression does nothing in statement position" sounds like those ads that urge you to call a toll-free number about a problem you didn't know you had.

Possibly, the message is mostly a stand-in for -Ywarn-value-discard.

Also, please detect if there's even anything to parenthesize.

https://gitter.im/scala/scala?at=577d2aab5d23d99214e8694c

@scabug
Copy link
Author

scabug commented Jul 6, 2016

Imported From: https://issues.scala-lang.org/browse/SI-9847?orig=1
Reporter: @som-snytt
Affected Versions: 2.12.0-M5

@scabug
Copy link
Author

scabug commented Jul 6, 2016

@som-snytt said:
scala/scala#5266

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

No branches or pull requests

2 participants