blob: dfdabdd6ccd3fe4017d5862ac6bb6a6a569d5faf (
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.Eval
object Test extends App {
reify {
trait Z {
val z = 2
}
class X extends Z {
def println() = Predef.println(z)
}
new X().println()
}.eval
}
|