Skip to content

Commit 9397620

Browse files
committed
Merge pull request #1 from retronym/topic/annotatedRetyping-test
Additional test case for Lukas' fix to annotated originals.
2 parents 8206e26 + 3c22436 commit 9397620

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
object Bug {
2+
M.m {
3+
def s = ""
4+
M.m(s): @unchecked // error: macro has not been expanded.
5+
???
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import language.experimental.macros
2+
import reflect.macros.Context
3+
4+
object M {
5+
def impl(c: Context)(a: c.Expr[Any]) = c.Expr[Any](c.resetLocalAttrs(a.tree))
6+
def m(a: Any) = macro impl
7+
}

0 commit comments

Comments
 (0)