summaryrefslogtreecommitdiff
path: root/test/files/pos/t9020.scala
Commit message (Collapse)AuthorAgeFilesLines
* No warn when discarding r.f(): r.typeSom Snytt2016-09-101-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-typerJason Zaugg2015-03-121-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.