diff options
Diffstat (limited to 'tests/pending/run/macro-reify-tagless-a/Test_2.scala')
-rw-r--r-- | tests/pending/run/macro-reify-tagless-a/Test_2.scala | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/pending/run/macro-reify-tagless-a/Test_2.scala b/tests/pending/run/macro-reify-tagless-a/Test_2.scala deleted file mode 100644 index af882664d..000000000 --- a/tests/pending/run/macro-reify-tagless-a/Test_2.scala +++ /dev/null @@ -1,14 +0,0 @@ -object Test extends dotty.runtime.LegacyApp { - //val list: List[String] = Macros.foo("hello world") - //println(list) - - import scala.reflect.runtime.universe._ - import scala.reflect.runtime.{currentMirror => cm} - import scala.tools.reflect.ToolBox - val tpt = AppliedTypeTree(Ident(definitions.ListClass), List(Ident(definitions.StringClass))) - val rhs = Apply(Select(Ident(TermName("Macros")), TermName("foo")), List(Literal(Constant("hello world")))) - val list = ValDef(NoMods, TermName("list"), tpt, rhs) - val tree = Block(List(list), Apply(Select(Ident(definitions.PredefModule), TermName("println")), List(Ident(list.name)))) - try cm.mkToolBox().eval(tree) - catch { case ex: Throwable => println(ex.getMessage) } -} |