Lost values should give a warning #17828
Closed
oliverlevay
started this conversation in
Feature Requests
Replies: 2 comments
-
It will try to warn about non-side-effecting expressions:
The issue seems to be that tuple construction is not detected as "pure (for purposes of error reporting)". Is that a bug or a feature request? |
Beta Was this translation helpful? Give feedback.
0 replies
-
In Scala 3, one-armed if is typed as In Scala 2, it warns under |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This code has lost values that are unreachable. It would be awesome if this fact was warned about to the developer.
Beta Was this translation helpful? Give feedback.
All reactions