summaryrefslogtreecommitdiff
path: root/test/files/run/resetattrs-this.scala
blob: ff45d61dfee05c317126f697e7605c6237e5f40a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox

object Test extends App {
  val tb = cm.mkToolBox()
  val tree = Select(This(cm.staticPackage("scala").moduleClass), TermName("Predef"))
  val ttree = tb.typecheck(tree)
  val rttree = tb.untypecheck(ttree)
  println(tb.eval(rttree) == Predef)
}