blob: 27fbd37b710a0dcec23899726c76c3e9382df1bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
object Test extends App {
{
type T = Int
val code = reify {
List[T](2)
}
println(code.eval)
}
}
|