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 /src/reflect | |
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 'src/reflect')
-rw-r--r-- | src/reflect/scala/reflect/internal/ReificationSupport.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/reflect/scala/reflect/internal/ReificationSupport.scala b/src/reflect/scala/reflect/internal/ReificationSupport.scala index 30f2efd7e3..f9d9e196f4 100644 --- a/src/reflect/scala/reflect/internal/ReificationSupport.scala +++ b/src/reflect/scala/reflect/internal/ReificationSupport.scala @@ -725,6 +725,7 @@ trait ReificationSupport { self: SymbolTable => } // match call to either withFilter or filter + // TODO: now that we no longer rewrite `filter` to `withFilter`, maybe this extractor should only look for `withFilter`? protected object FilterCall { def unapply(tree: Tree): Option[(Tree,Tree)] = tree match { case Apply(Select(obj, nme.withFilter | nme.filter), arg :: Nil) => |