blob: 94a60480563a2b9f9cb299275dbef4e9bba96666 (
plain) (
tree)
|
|
import scala.tools.nsc.interactive.tests.InteractiveTest
object Test extends InteractiveTest {
override protected def loadSources() { /* don't parse or typecheck sources */ }
import compiler._
override def runDefaultTests() {
val res = new Response[Tree]
val pos = compiler.rangePos(sourceFiles.head, 102,102,102)
compiler.askTypeAt(pos, res)
res.get match {
case Left(tree) => compiler.ask(() => reporter.println(tree.tpe))
case Right(ex) => reporter.println(ex)
}
}
}
|