diff options
author | Den Shabalin <den.shabalin@gmail.com> | 2013-09-26 18:41:02 +0200 |
---|---|---|
committer | Den Shabalin <den.shabalin@gmail.com> | 2013-10-14 13:30:49 +0200 |
commit | debdd2f316934c417c7d9865ea0f2ea503e51b63 (patch) | |
tree | 2f3b2697034dd260035c13adda75b7482f4ddbdd /test | |
parent | 60603f2524bf7c06c6f73eefb1cc30b6df7c392d (diff) | |
download | scala-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')
-rw-r--r-- | test/files/scalacheck/quasiquotes/ErrorProps.scala | 5 |
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( |