diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-02-18 12:06:19 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-02-18 12:07:46 +0100 |
commit | 3c2243636ef6f2e565c392d072293935345efe7e (patch) | |
tree | a5fef05edaa195958c0b92c3612909976a6d50b8 /test/files/pos/annotated-original/M_1.scala | |
parent | 8206e26f7b04b028b6a81cf7008d9b49169341fd (diff) | |
download | scala-3c2243636ef6f2e565c392d072293935345efe7e.tar.gz scala-3c2243636ef6f2e565c392d072293935345efe7e.tar.bz2 scala-3c2243636ef6f2e565c392d072293935345efe7e.zip |
Additional test case for Lukas' fix to annotated originals.
This was inspired by the regression that Mark encountered
when upgrading SBT from 2.10.0 to 2.10.1-RC1.
Diffstat (limited to 'test/files/pos/annotated-original/M_1.scala')
-rw-r--r-- | test/files/pos/annotated-original/M_1.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/annotated-original/M_1.scala b/test/files/pos/annotated-original/M_1.scala new file mode 100644 index 0000000000..01654e02cf --- /dev/null +++ b/test/files/pos/annotated-original/M_1.scala @@ -0,0 +1,7 @@ +import language.experimental.macros +import reflect.macros.Context + +object M { + def impl(c: Context)(a: c.Expr[Any]) = c.Expr[Any](c.resetLocalAttrs(a.tree)) + def m(a: Any) = macro impl +} |