summaryrefslogtreecommitdiff
path: root/test/files/run/t5415.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t5415.scala')
-rw-r--r--test/files/run/t5415.scala8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/files/run/t5415.scala b/test/files/run/t5415.scala
index c6552f69b3..c12e209bb7 100644
--- a/test/files/run/t5415.scala
+++ b/test/files/run/t5415.scala
@@ -2,9 +2,11 @@ object Test extends App{
case class Queryable2[T]() { def filter(predicate: T => Boolean) = ??? }
trait CoffeesTable{ def sales : Int }
val q = Queryable2[CoffeesTable]()
- import scala.reflect.mirror._
+ import scala.reflect.runtime.universe._
+ import scala.reflect.runtime.{universe => ru}
val code = reify{q.filter(_.sales > 5)}
-
- val toolbox = mkToolBox()
+ import scala.reflect.runtime.{currentMirror => cm}
+ import scala.tools.reflect.ToolBox
+ val toolbox = cm.mkToolBox()
val ttree = toolbox.typeCheck(code.tree)
}