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

object Test extends dotty.runtime.LegacyApp {
  val code = reify {
    case class C(foo: Int, bar: Int)
    val c = C(2, 2)
    println(c.foo * c.bar)
  };

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