aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/reify_typerefs_3a.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/reify_typerefs_3a.scala')
-rw-r--r--tests/disabled/macro/run/reify_typerefs_3a.scala20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/reify_typerefs_3a.scala b/tests/disabled/macro/run/reify_typerefs_3a.scala
new file mode 100644
index 000000000..8d81721f1
--- /dev/null
+++ b/tests/disabled/macro/run/reify_typerefs_3a.scala
@@ -0,0 +1,20 @@
+import scala.reflect.runtime.universe._
+import scala.reflect.runtime.{universe => ru}
+import scala.reflect.runtime.{currentMirror => cm}
+import scala.tools.reflect.ToolBox
+
+object foo {
+ class Expression {
+ override def toString = "Expression"
+ }
+}
+
+object Test extends dotty.runtime.LegacyApp {
+ val code = reify {
+ List(new foo.Expression, new foo.Expression)
+ };
+
+ val toolbox = cm.mkToolBox()
+ val evaluated = toolbox.eval(code.tree)
+ println("evaluated = " + evaluated)
+}