summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/RefChecks.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/compiler/scala/tools/nsc/typechecker/RefChecks.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/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index d1764ea482..5e38be3a9e 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -1552,7 +1552,7 @@ abstract class RefChecks extends InfoTransform with scala.reflect.internal.trans
private def transformApply(tree: Apply): Tree = tree match {
case Apply(
- Select(qual, nme.filter | nme.withFilter),
+ Select(qual, nme.withFilter),
List(Function(
List(ValDef(_, pname, tpt, _)),
Match(_, CaseDef(pat1, _, _) :: _))))