diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-12-20 14:35:43 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2017-03-11 23:48:32 -0800 |
commit | 785f4fe224302bbddbbd6a198f1722b4c0ae17f7 (patch) | |
tree | 6b040f5c2b5318bff7c0077c0d9719165e388d9f /test/files/neg/abstract-inaccessible.scala | |
parent | 6d7b81a1e47960fbbc469108a34414f76a706342 (diff) | |
download | scala-785f4fe224302bbddbbd6a198f1722b4c0ae17f7.tar.gz scala-785f4fe224302bbddbbd6a198f1722b4c0ae17f7.tar.bz2 scala-785f4fe224302bbddbbd6a198f1722b4c0ae17f7.zip |
SI-8040 Xlint enables unused warnings
`-Ywarn-unused-import` is deprecated in favor of `-Ywarn-unused:imports`.
`-Xlint` does not yet enable `-Ywarn-unused:patvars`.
But the default for `-Ywarn-unused` is everything, including `patvars`.
So `-Xlint:unused` is the populist option, `-Ywarn-unused` more exclusive.
Tests are fixed by narrowing scope of `-Xlint` when specified.
Diffstat (limited to 'test/files/neg/abstract-inaccessible.scala')
-rw-r--r-- | test/files/neg/abstract-inaccessible.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/neg/abstract-inaccessible.scala b/test/files/neg/abstract-inaccessible.scala index 3c80f30522..02b458016f 100644 --- a/test/files/neg/abstract-inaccessible.scala +++ b/test/files/neg/abstract-inaccessible.scala @@ -4,6 +4,6 @@ package foo { trait YourTrait { def implementMe(f: Int => (String, Bippy)): Unit def overrideMe[T <: Bippy](x: T): T = x - def overrideMeAlso(x: Map[Int, Set[Bippy]]) = 5 + def overrideMeAlso(x: Map[Int, Set[Bippy]]) = x.keys.head } } |