blob: aecc61de469c1210a8d762afd667d03bb7459fb9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import scala.reflect.mirror._
import scala.annotation._
import scala.annotation.meta._
import scala.beans._
object Test extends App {
// test 1: reify
val tree = reify{
class C(@BeanProperty @(inline @beanGetter) val x: Int)
}.tree
println(tree.toString)
// test 2: import and typecheck
val toolbox = mkToolBox()
val ttree = toolbox.typeCheck(tree)
println(ttree.toString)
// test 3: import and compile
toolbox.runExpr(tree)
}
|