summaryrefslogtreecommitdiff
path: root/test/files/neg/warn-unused-imports/warn-unused-imports_2.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-9839 Avoid crash in macro import selector posSom Snytt2017-03-111-0/+4
| | | | | | Ignore bad name pos. Also delete unused val. Thanks, `-Ywarn-unused`!
* SI-8040 Warn unused flagsSom Snytt2017-03-111-1/+1
| | | | | | | | | | | | | | | | Introduce `-Ywarn-unused:x,y,z` and exploit `-Ywarn-unused:patvars`. Although the tree attachment for shielding patvars from warnings is not structural, sneaking the settings flag into the reflection internal TreeGen is awkward. Add test to ensure isolation of patvars warning from others. `-Ywarn-unused-import` is an alias for `-Ywarn-unused:imports`. `-Xlint:unused` is an alias for `-Ywarn-unused`, but not enabled yet. The help text advises to use `-Ywarn-unused`. The future can decide if `-Xlint:unused-imports` is warranted.
* SI-9383 Improved unused import warningSom Snytt2015-07-081-0/+155
Previously, implicit search would mark every import it touched as a lookup. Instead, let subsequent type check perform the lookup.