summaryrefslogblamecommitdiff
path: root/test/files/run/reify_typerefs_3b.scala
blob: a7ede00c9cab497f820f7e46c6a0e8f483973507 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                            
import scala.reflect.mirror._

object foo {
  object Expression {
    override def toString = "Expression"
  }
}

object Test extends App {
  val code = reify {
    List(foo.Expression, foo.Expression)
  };

  val toolbox = mkToolBox()
  val evaluated = toolbox.runExpr(code.tree)
  println("evaluated = " + evaluated)
}