summaryrefslogblamecommitdiff
path: root/test/files/run/t5334_1.scala
blob: 49dbea6b688283b3b4d7ef4be1be2a5257153971 (plain) (tree)
1
2
3
4
5
6
7
8
9
                             

                         
                    
                                           

                            

    
                           
                                     
 
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))
}