aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/t5334_2.scala
blob: 1058194056d03fa4f8d2b8d2345e9a4dc31be138 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox

object Test extends dotty.runtime.LegacyApp {
  val code = reify {
    class C { override def toString() = "C" }
    val ret = List((new C, new C))
    ret.asInstanceOf[List[Any]]
  };

  val toolbox = cm.mkToolBox()
  println(toolbox.eval(code.tree))
}