From afecfe90cd98a657ce83f3e833c940518563064e Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Mon, 17 Feb 2014 23:18:50 +0100 Subject: reverses SI-6484 Unfortunately I have to revert b017629 because of SI-8303. There are projects (e.g. slick) that use typeOf in annotations, which effectively means bye-bye. --- test/files/run/reify_typeof.check | 10 ---------- test/files/run/reify_typeof.scala | 14 -------------- test/files/run/typetags_typeof_x.check | 8 -------- test/files/run/typetags_typeof_x.scala | 14 -------------- 4 files changed, 46 deletions(-) delete mode 100644 test/files/run/reify_typeof.check delete mode 100644 test/files/run/reify_typeof.scala delete mode 100644 test/files/run/typetags_typeof_x.check delete mode 100644 test/files/run/typetags_typeof_x.scala (limited to 'test/files') diff --git a/test/files/run/reify_typeof.check b/test/files/run/reify_typeof.check deleted file mode 100644 index 670f76faa4..0000000000 --- a/test/files/run/reify_typeof.check +++ /dev/null @@ -1,10 +0,0 @@ -Expr[Unit]({ - val ru = `package`.universe; - val tpe1: ru.Type = ru.typeOf[`package`.List[Int]]; - Predef.println(tpe1); - val tpe2: ru.Type = ru.typeOf(List.apply(1, 2, 3)); - Predef.println(tpe2) -}) -scala.List[Int] -List[Int] -() diff --git a/test/files/run/reify_typeof.scala b/test/files/run/reify_typeof.scala deleted file mode 100644 index 985c57b9ab..0000000000 --- a/test/files/run/reify_typeof.scala +++ /dev/null @@ -1,14 +0,0 @@ -import scala.reflect.runtime.universe._ -import scala.tools.reflect.Eval - -object Test extends App { - val reified = reify { - val ru = scala.reflect.runtime.universe - val tpe1: ru.Type = ru.typeOf[List[Int]] - println(tpe1) - val tpe2: ru.Type = ru.typeOf(List(1, 2, 3)) - println(tpe2) - } - println(reified) - println(reified.eval) -} \ No newline at end of file diff --git a/test/files/run/typetags_typeof_x.check b/test/files/run/typetags_typeof_x.check deleted file mode 100644 index 832a8bc63c..0000000000 --- a/test/files/run/typetags_typeof_x.check +++ /dev/null @@ -1,8 +0,0 @@ -List[T] -C -Int -List[Any] -AnyRef{def x: Int} -Null -Nothing -Null diff --git a/test/files/run/typetags_typeof_x.scala b/test/files/run/typetags_typeof_x.scala deleted file mode 100644 index 08be6d4527..0000000000 --- a/test/files/run/typetags_typeof_x.scala +++ /dev/null @@ -1,14 +0,0 @@ -import scala.reflect.runtime.universe._ - -object Test extends App { - def foo[T](x: T) = weakTypeOf(List(x)) - println(foo(2)) - locally { class C; println(weakTypeOf(new C)) } - - println(typeOf(2)) - println(typeOf(List(1, "1"))) - println(typeOf(new { def x = 2 })) - println(typeOf[Null]) - println(typeOf[Nothing]) - println(typeOf(null)) -} \ No newline at end of file -- cgit v1.2.3