Skip to content

Commit

Permalink
Merge pull request #1 from retronym/topic/annotatedRetyping-test
Browse files Browse the repository at this point in the history
Additional test case for Lukas' fix to annotated originals.
  • Loading branch information
lrytz committed Feb 18, 2013
2 parents 8206e26 + 3c22436 commit 9397620
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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 9397620

Please sign in to comment.