diff options
Diffstat (limited to 'tests/pending/run/macro-reify-splice-outside-reify')
-rw-r--r-- | tests/pending/run/macro-reify-splice-outside-reify/Impls_Macros_1.scala | 13 | ||||
-rw-r--r-- | tests/pending/run/macro-reify-splice-outside-reify/Test_2.scala | 8 |
2 files changed, 0 insertions, 21 deletions
diff --git a/tests/pending/run/macro-reify-splice-outside-reify/Impls_Macros_1.scala b/tests/pending/run/macro-reify-splice-outside-reify/Impls_Macros_1.scala deleted file mode 100644 index f038d8714..000000000 --- a/tests/pending/run/macro-reify-splice-outside-reify/Impls_Macros_1.scala +++ /dev/null @@ -1,13 +0,0 @@ -import scala.reflect.macros.blackbox.Context - -object Impls { - def foo(c: Context)(x: c.Expr[Int]) = { - import c.universe._ - val x1 = c.Expr[Int](c.untypecheck(x.tree)) - c.Expr[Int](Literal(Constant(c.eval(x1)))) - } -} - -object Macros { - def foo(x: Int) = macro Impls.foo -} diff --git a/tests/pending/run/macro-reify-splice-outside-reify/Test_2.scala b/tests/pending/run/macro-reify-splice-outside-reify/Test_2.scala deleted file mode 100644 index f99d40dad..000000000 --- a/tests/pending/run/macro-reify-splice-outside-reify/Test_2.scala +++ /dev/null @@ -1,8 +0,0 @@ -object Test extends dotty.runtime.LegacyApp { - import scala.reflect.runtime.universe._ - import scala.reflect.runtime.{currentMirror => cm} - import scala.tools.reflect.ToolBox - val tree = Apply(Select(Ident(TermName("Macros")), TermName("foo")), List(Literal(Constant(42)))) - try println(cm.mkToolBox().eval(tree)) - catch { case ex: Throwable => println(ex.getMessage) } -} |