aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/t6023.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/t6023.scala')
-rw-r--r--tests/disabled/macro/run/t6023.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/t6023.scala b/tests/disabled/macro/run/t6023.scala
new file mode 100644
index 000000000..9ec8724a4
--- /dev/null
+++ b/tests/disabled/macro/run/t6023.scala
@@ -0,0 +1,17 @@
+import scala.reflect.runtime.universe._
+import scala.reflect.runtime.{currentMirror => cm}
+import scala.tools.reflect.ToolBox
+
+object Test extends dotty.runtime.LegacyApp {
+ // test 1: reify
+ val tree = reify{ trait Foo { val a: Int } }.tree
+ println(tree.toString)
+
+ // test 2: import and typecheck
+ val toolbox = cm.mkToolBox()
+ val ttree = toolbox.typecheck(tree)
+ println(ttree.toString)
+
+ // test 3: import and compile
+ toolbox.eval(tree)
+}