Skip to content

Commit

Permalink
Additional test case for Lukas' fix to annotated originals.
Browse files Browse the repository at this point in the history
This was inspired by the regression that Mark encountered
when upgrading SBT from 2.10.0 to 2.10.1-RC1.
  • Loading branch information
retronym committed Feb 21, 2013
1 parent dafebd0 commit 26be206
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 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.
???
}
}
7 changes: 7 additions & 0 deletions 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 26be206

Please sign in to comment.