Browse files

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.
  • Loading branch information...
1 parent 8206e26 commit 3c2243636ef6f2e565c392d072293935345efe7e @retronym retronym committed Feb 18, 2013
Showing with 14 additions and 0 deletions.
  1. +7 −0 test/files/pos/annotated-original/C_2.scala
  2. +7 −0 test/files/pos/annotated-original/M_1.scala
View
7 test/files/pos/annotated-original/C_2.scala
@@ -0,0 +1,7 @@
+object Bug {
+ M.m {
+ def s = ""
+ M.m(s): @unchecked // error: macro has not been expanded.
+ ???
+ }
+}
View
7 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
+}

0 comments on commit 3c22436

Please sign in to comment.