blob: c6a77158ddaeab806ffe98fdba4f2ae3eeba6564 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import scala.reflect.mirror._
object Test extends App {
val code = reify {
class C { override def toString() = "C" }
val ret = List((new C, new C))
ret.asInstanceOf[List[Any]]
};
val toolbox = mkToolBox()
println(toolbox.runExpr(code.tree))
}
|