diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-02-25 13:50:19 +0100 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-02-25 13:50:19 +0100 |
commit | 1ea43ffb2286d63e133839c1ea0b09449b0ac168 (patch) | |
tree | 2d003de0ec0e2687eaef214d65e46922b9e86264 /test/files/neg | |
parent | 7c709e122f7471353749525cff15602783fb348c (diff) | |
parent | 12dc4a28da8d3631734603c896d2ee1ba21b31d6 (diff) | |
download | scala-1ea43ffb2286d63e133839c1ea0b09449b0ac168.tar.gz scala-1ea43ffb2286d63e133839c1ea0b09449b0ac168.tar.bz2 scala-1ea43ffb2286d63e133839c1ea0b09449b0ac168.zip |
Merge pull request #3566 from adriaanm/t6455
SI-6455 no longer rewrite .withFilter to .filter
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/t6455.check | 4 | ||||
-rw-r--r-- | test/files/neg/t6455.flags | 1 | ||||
-rw-r--r-- | test/files/neg/t6455.scala | 6 |
3 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t6455.check b/test/files/neg/t6455.check new file mode 100644 index 0000000000..8f2aad0b9e --- /dev/null +++ b/test/files/neg/t6455.check @@ -0,0 +1,4 @@ +t6455.scala:5: error: value withFilter is not a member of object O + O.withFilter(f => true) + ^ +one error found diff --git a/test/files/neg/t6455.flags b/test/files/neg/t6455.flags new file mode 100644 index 0000000000..112fc720a0 --- /dev/null +++ b/test/files/neg/t6455.flags @@ -0,0 +1 @@ +-Xfuture
\ No newline at end of file diff --git a/test/files/neg/t6455.scala b/test/files/neg/t6455.scala new file mode 100644 index 0000000000..ebbb37f1cd --- /dev/null +++ b/test/files/neg/t6455.scala @@ -0,0 +1,6 @@ +object O { def filter(p: Int => Boolean): O.type = this } + +class Test { + // should not compile because we no longer rewrite withFilter => filter under -Xfuture + O.withFilter(f => true) +}
\ No newline at end of file |