aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/macro-reflective-ma-normal-mdmi/Test_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/macro-reflective-ma-normal-mdmi/Test_2.scala')
-rw-r--r--tests/disabled/macro/run/macro-reflective-ma-normal-mdmi/Test_2.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/macro-reflective-ma-normal-mdmi/Test_2.scala b/tests/disabled/macro/run/macro-reflective-ma-normal-mdmi/Test_2.scala
new file mode 100644
index 000000000..b8d969b83
--- /dev/null
+++ b/tests/disabled/macro/run/macro-reflective-ma-normal-mdmi/Test_2.scala
@@ -0,0 +1,7 @@
+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))))
+ println(cm.mkToolBox().eval(tree))
+}