diff options
author | Den Shabalin <den.shabalin@gmail.com> | 2013-09-30 17:25:44 +0200 |
---|---|---|
committer | Den Shabalin <den.shabalin@gmail.com> | 2013-10-18 17:24:51 +0200 |
commit | 9aa5a27042abae1e0ed585863678bc3a6fcf63a4 (patch) | |
tree | 709966bcb8d83696f13264831bace6477d0970b7 /test/files/scalacheck/quasiquotes | |
parent | d36989d1ec1de3b5b75de41415c852b087974bc7 (diff) | |
download | scala-9aa5a27042abae1e0ed585863678bc3a6fcf63a4.tar.gz scala-9aa5a27042abae1e0ed585863678bc3a6fcf63a4.tar.bz2 scala-9aa5a27042abae1e0ed585863678bc3a6fcf63a4.zip |
make q"f(..$xs)" deconstruction symmetrical to q"f[..$xs]"
Diffstat (limited to 'test/files/scalacheck/quasiquotes')
-rw-r--r-- | test/files/scalacheck/quasiquotes/TermDeconstructionProps.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/files/scalacheck/quasiquotes/TermDeconstructionProps.scala b/test/files/scalacheck/quasiquotes/TermDeconstructionProps.scala index ff105f7fba..f37e4d9975 100644 --- a/test/files/scalacheck/quasiquotes/TermDeconstructionProps.scala +++ b/test/files/scalacheck/quasiquotes/TermDeconstructionProps.scala @@ -8,9 +8,8 @@ import Flag._ object TermDeconstructionProps extends QuasiquoteProperties("term deconstruction") { property("f(..x) = f") = test { - assertThrows[MatchError] { - val q"f(..$argss)" = q"f" - } + val q"f(..$args)" = q"f" + assert(args ≈ Nil) } property("f(x)") = forAll { (x: Tree) => |