diff options
author | Den Shabalin <den.shabalin@gmail.com> | 2013-09-11 19:22:48 +0200 |
---|---|---|
committer | Den Shabalin <den.shabalin@gmail.com> | 2013-09-18 20:36:17 +0200 |
commit | c8a9329ff9b2a6ea99eef7234c9f84c0bfe0166b (patch) | |
tree | ddb01dd1c77344bc1b7768ad7460dd021274faa4 /test/files/neg/macro-quasiquotes.check | |
parent | a8543ef28f8fc0152208f4eef763344657bf9e5a (diff) | |
download | scala-c8a9329ff9b2a6ea99eef7234c9f84c0bfe0166b.tar.gz scala-c8a9329ff9b2a6ea99eef7234c9f84c0bfe0166b.tar.bz2 scala-c8a9329ff9b2a6ea99eef7234c9f84c0bfe0166b.zip |
add syntactic extractor for assignment-like trees
There are three kinds of assign-like trees:
1. Assign(lhs, rhs) // $lhs = $rhs
3. AssignOrNamedArg(lhs, rhs) // $lhs = $rhs
2. Apply(Select(f, nme.update), args :+ rhs) // $f(..$args) = $rhs
New syntactic combinator unifies all of them and lets users not to think
about these implementations details.
Diffstat (limited to 'test/files/neg/macro-quasiquotes.check')
-rw-r--r-- | test/files/neg/macro-quasiquotes.check | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/neg/macro-quasiquotes.check b/test/files/neg/macro-quasiquotes.check index a2d48723b5..96ef75dd32 100644 --- a/test/files/neg/macro-quasiquotes.check +++ b/test/files/neg/macro-quasiquotes.check @@ -1,6 +1,6 @@ Macros_1.scala:14: error: macro implementation has wrong shape: required: (x: Impls.this.c.Expr[Int]): Impls.this.c.Expr[Any] - found : (x: Impls.this.c.universe.Block): Impls.this.c.universe.Apply + found : (x: Impls.this.c.universe.Block): Impls.this.c.universe.Tree type mismatch for parameter x: Impls.this.c.Expr[Int] does not conform to Impls.this.c.universe.Block def m3(x: Int) = macro Impls.impl3 ^ |