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