diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2016-06-28 11:55:58 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2016-08-11 12:01:53 -0700 |
commit | 636af2e98c9af707b944724e439d6e39bb3b074e (patch) | |
tree | 71d6f674994e06a414ef8315fd4c011499dca570 /test/files/neg/t6455.scala | |
parent | 961c8bea011559af65cfae9818d71ad35b6ecaf4 (diff) | |
download | scala-636af2e98c9af707b944724e439d6e39bb3b074e.tar.gz scala-636af2e98c9af707b944724e439d6e39bb3b074e.tar.bz2 scala-636af2e98c9af707b944724e439d6e39bb3b074e.zip |
SI-8339 drop deprecated fallback `withFilter` -> `filter`
You must implement the `withFilter` method to use
`if`-guards in a `for`-comprehension.
(Drop pos/t7239.scala because it relied on this rewrite.)
Diffstat (limited to 'test/files/neg/t6455.scala')
-rw-r--r-- | test/files/neg/t6455.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/t6455.scala b/test/files/neg/t6455.scala index ebbb37f1cd..22e4c30fdd 100644 --- a/test/files/neg/t6455.scala +++ b/test/files/neg/t6455.scala @@ -1,6 +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 + // should not compile because we no longer rewrite withFilter => filter O.withFilter(f => true) -}
\ No newline at end of file +} |