summaryrefslogtreecommitdiff
path: root/test/files/scalacheck/quasiquotes
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-02-19 21:58:45 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-02-24 22:49:51 -0800
commit62560b16765bdfe74212446e8ccb50dbeb06d457 (patch)
tree0e07878e253f70ef78a189b80e1f404950fe0bd2 /test/files/scalacheck/quasiquotes
parent2ead4d6aa3de402f269252190aaa9075a990e098 (diff)
downloadscala-62560b16765bdfe74212446e8ccb50dbeb06d457.tar.gz
scala-62560b16765bdfe74212446e8ccb50dbeb06d457.tar.bz2
scala-62560b16765bdfe74212446e8ccb50dbeb06d457.zip
SI-6455 under -Xfuture, don't rewrite .withFilter to .filter
This has been deprecated for two major releases now, but `filter`'s still preferred over `withFilter` in the wild.
Diffstat (limited to 'test/files/scalacheck/quasiquotes')
-rw-r--r--test/files/scalacheck/quasiquotes/TypecheckedProps.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/scalacheck/quasiquotes/TypecheckedProps.scala b/test/files/scalacheck/quasiquotes/TypecheckedProps.scala
index 8b1cb6cc49..0aca41ac66 100644
--- a/test/files/scalacheck/quasiquotes/TypecheckedProps.scala
+++ b/test/files/scalacheck/quasiquotes/TypecheckedProps.scala
@@ -44,7 +44,7 @@ object TypecheckedProps extends QuasiquoteProperties("typechecked") {
val enums = fq"foo <- new Foo" :: fq"if foo != null" :: Nil
val body = q"foo"
val q"$_; for(..$enums1) yield $body1" = typecheck(q"""
- class Foo { def map(f: Any => Any) = this; def filter(cond: Any => Boolean) = this }
+ class Foo { def map(f: Any => Any) = this; def withFilter(cond: Any => Boolean) = this }
for(..$enums) yield $body
""")
assert(enums1 ≈ enums)