From debdd2f316934c417c7d9865ea0f2ea503e51b63 Mon Sep 17 00:00:00 2001 From: Den Shabalin Date: Thu, 26 Sep 2013 18:41:02 +0200 Subject: 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. --- test/files/scalacheck/quasiquotes/ErrorProps.scala | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test/files/scalacheck/quasiquotes/ErrorProps.scala') 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( -- cgit v1.2.3