summaryrefslogtreecommitdiff
path: root/test/files/run/reify_typerefs_2a.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/reify_typerefs_2a.scala')
-rw-r--r--test/files/run/reify_typerefs_2a.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/run/reify_typerefs_2a.scala b/test/files/run/reify_typerefs_2a.scala
new file mode 100644
index 0000000000..d03efea222
--- /dev/null
+++ b/test/files/run/reify_typerefs_2a.scala
@@ -0,0 +1,17 @@
+import scala.reflect.mirror._
+
+package foo {
+ class Expression {
+ override def toString = "Expression"
+ }
+}
+
+object Test extends App {
+ val code = reify {
+ List(new foo.Expression, new foo.Expression)
+ };
+
+ val toolbox = mkToolBox()
+ val evaluated = toolbox.runExpr(code.tree)
+ println("evaluated = " + evaluated)
+}