summaryrefslogtreecommitdiff
path: root/test/files/run/t5704.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t5704.scala')
-rw-r--r--test/files/run/t5704.scala9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/files/run/t5704.scala b/test/files/run/t5704.scala
index 8fd721d4e7..ddcbcc27b3 100644
--- a/test/files/run/t5704.scala
+++ b/test/files/run/t5704.scala
@@ -1,10 +1,13 @@
-import scala.reflect.mirror._
+import scala.reflect.runtime.universe._
+import scala.reflect.runtime.{universe => ru}
+import scala.reflect.runtime.{currentMirror => cm}
+import scala.tools.reflect.ToolBox
object Test extends App {
class MyQuerycollection{
def findUserByName( name:String ) = {
val tree = reify{ "test" == name }.tree
- val toolbox = mkToolBox()
+ val toolbox = cm.mkToolBox()
toolbox.typeCheck(tree) match{
case Apply(Select(lhs,op),rhs::Nil) =>
println(rhs.tpe)
@@ -13,4 +16,4 @@ object Test extends App {
}
val qc = new MyQuerycollection
qc.findUserByName("some value")
-}
+} \ No newline at end of file