diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-02-05 00:46:58 +0100 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@gmail.com> | 2013-02-08 17:51:43 +0100 |
commit | e0068b908517768e900a3945e483e9c379d728d8 (patch) | |
tree | 680ac5fb751dc183c70a2db6f73670a041dd1c95 /test/files/neg/t5675.scala | |
parent | 8d25d05e9bf848d763e7b657d9c7e96ea5cb8daf (diff) | |
download | scala-e0068b908517768e900a3945e483e9c379d728d8.tar.gz scala-e0068b908517768e900a3945e483e9c379d728d8.tar.bz2 scala-e0068b908517768e900a3945e483e9c379d728d8.zip |
SI-5675 Discard duplicate feature warnings at a position
When -feature has not been enabled, we were double counting
identical feature warnings that were emitted at the same position.
Normal error reporting only reports the first time a warning
appears at a position; feature warning counter incrementing
should behave the same way.
@hubertp: Fixed .check files that were broken in the original commit.
Diffstat (limited to 'test/files/neg/t5675.scala')
-rw-r--r-- | test/files/neg/t5675.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t5675.scala b/test/files/neg/t5675.scala new file mode 100644 index 0000000000..238ed0fcae --- /dev/null +++ b/test/files/neg/t5675.scala @@ -0,0 +1,7 @@ +class PostFix { + val list = List(1, 2, 3) + def main(args: Array[String]) { + val a = list filter (2 !=) + val b = list filter (2 != _) + } +} |