summaryrefslogtreecommitdiff
path: root/test/files/scalacheck/quasiquotes/ErrorProps.scala
diff options
context:
space:
mode:
authorDen Shabalin <den.shabalin@gmail.com>2013-09-26 18:41:02 +0200
committerDen Shabalin <den.shabalin@gmail.com>2013-10-14 13:30:49 +0200
commitdebdd2f316934c417c7d9865ea0f2ea503e51b63 (patch)
tree2f3b2697034dd260035c13adda75b7482f4ddbdd /test/files/scalacheck/quasiquotes/ErrorProps.scala
parent60603f2524bf7c06c6f73eefb1cc30b6df7c392d (diff)
downloadscala-debdd2f316934c417c7d9865ea0f2ea503e51b63.tar.gz
scala-debdd2f316934c417c7d9865ea0f2ea503e51b63.tar.bz2
scala-debdd2f316934c417c7d9865ea0f2ea503e51b63.zip
use regular macro expansion logic for unapply quasiquotes
Previously due to limited support for expansion in apply position quasiquotes had to use a compiler hook for deconstruction. Now with recent changes in pattern matcher it's possible to remove that special case.
Diffstat (limited to 'test/files/scalacheck/quasiquotes/ErrorProps.scala')
-rw-r--r--test/files/scalacheck/quasiquotes/ErrorProps.scala5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/files/scalacheck/quasiquotes/ErrorProps.scala b/test/files/scalacheck/quasiquotes/ErrorProps.scala
index b9e69e0e88..b0a7641577 100644
--- a/test/files/scalacheck/quasiquotes/ErrorProps.scala
+++ b/test/files/scalacheck/quasiquotes/ErrorProps.scala
@@ -41,10 +41,7 @@ object ErrorProps extends QuasiquoteProperties("errors") {
property("@..$first @$rest def foo") = fails(
"Can't extract with .. here",
"""
- val a = annot("a")
- val b = annot("b")
- val c = annot("c")
- val q"@..$first @$rest def foo" = q"@$a @$b @$c def foo"
+ q"@a @b @c def foo" match { case q"@..$first @$rest def foo" => }
""")
property("only literal string arguments") = fails(