summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/internal/ReificationSupport.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2016-06-28 11:55:58 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2016-08-11 12:01:53 -0700
commit636af2e98c9af707b944724e439d6e39bb3b074e (patch)
tree71d6f674994e06a414ef8315fd4c011499dca570 /src/reflect/scala/reflect/internal/ReificationSupport.scala
parent961c8bea011559af65cfae9818d71ad35b6ecaf4 (diff)
downloadscala-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/scala/reflect/internal/ReificationSupport.scala')
-rw-r--r--src/reflect/scala/reflect/internal/ReificationSupport.scala1
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) =>