diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2013-02-18 03:49:59 -0800 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2013-02-18 03:49:59 -0800 |
commit | 93976204ba533e7413b61fd103384c76d0629ce0 (patch) | |
tree | a5fef05edaa195958c0b92c3612909976a6d50b8 /test/files/pos | |
parent | 8206e26f7b04b028b6a81cf7008d9b49169341fd (diff) | |
parent | 3c2243636ef6f2e565c392d072293935345efe7e (diff) | |
download | scala-93976204ba533e7413b61fd103384c76d0629ce0.tar.gz scala-93976204ba533e7413b61fd103384c76d0629ce0.tar.bz2 scala-93976204ba533e7413b61fd103384c76d0629ce0.zip |
Merge pull request #1 from retronym/topic/annotatedRetyping-test
Additional test case for Lukas' fix to annotated originals.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/annotated-original/C_2.scala | 7 | ||||
-rw-r--r-- | test/files/pos/annotated-original/M_1.scala | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/files/pos/annotated-original/C_2.scala b/test/files/pos/annotated-original/C_2.scala new file mode 100644 index 0000000000..36a09ffe0c --- /dev/null +++ b/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. + ??? + } +} 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 +} |