Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | No warn when discarding r.f(): r.type | Som Snytt | 2016-09-10 | 1 | -0/+6 |
| | | | | | | | | | | The paradigm is `def add(x: X): Unit = listBuffer += x`. The value that is discarded is not new information. Also cleans up the recent tweaks to help messaging. Adds newlines in case they ask for multiple helps. | ||||
* | SI-9020 Avoid spurious value discarding warning post-typer | Jason Zaugg | 2015-03-12 | 1 | -0/+10 |
Typechecking during the specialization phase was emitting a bogus warning about value discarding. Such warnings in the typer should be guarded by `!isPastTyper` to restrict the analysis to the code the user originally wrote, rather than the results of later typechecking. I've made this change to the value discarding warning. I've also changed a numeric widening warning in the vicinity, although I do not have a test case for that. |