blob: 49dbea6b688283b3b4d7ef4be1be2a5257153971 (
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 = new C
ret.asInstanceOf[Object]
};
val toolbox = mkToolBox()
println(toolbox.runExpr(code.tree))
}
|