summaryrefslogtreecommitdiff
path: root/test/files/run/existentials3-new.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-06-04 13:53:13 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-06-08 15:32:17 +0200
commit7b0f0a142bb526f4bd108a8c208ec9a8952398c9 (patch)
treeee13d036756be41521a9eb3f1e05898410ab744e /test/files/run/existentials3-new.scala
parentd9103e01b467634d61baa3b131aeb93fca9e20a5 (diff)
downloadscala-7b0f0a142bb526f4bd108a8c208ec9a8952398c9.tar.gz
scala-7b0f0a142bb526f4bd108a8c208ec9a8952398c9.tar.bz2
scala-7b0f0a142bb526f4bd108a8c208ec9a8952398c9.zip
repairs the tests after the refactoring spree
Diffstat (limited to 'test/files/run/existentials3-new.scala')
-rw-r--r--test/files/run/existentials3-new.scala14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/files/run/existentials3-new.scala b/test/files/run/existentials3-new.scala
index 32129a04c6..5e1490b778 100644
--- a/test/files/run/existentials3-new.scala
+++ b/test/files/run/existentials3-new.scala
@@ -1,3 +1,5 @@
+import scala.reflect.runtime.universe._
+
object Test {
trait ToS { final override def toString = getClass.getName }
@@ -31,12 +33,12 @@ object Test {
val g11 = { abstract class A extends Seq[Int] ; List[A]() }
val g12 = { abstract class A extends Seq[U forSome { type U <: Int }] ; List[A]() }
- def printTag(t: TypeTag[_]) = {
- val s = if (t.sym.isFreeType) t.sym.typeSignature.toString else t.sym.toString
- println("%s, t=%s, s=%s".format(t, t.tpe.kind, s))
+ def printTpe(t: Type) = {
+ val s = if (t.typeSymbol.isFreeType) t.typeSymbol.typeSignature.toString else t.typeSymbol.toString
+ println("%s, t=%s, s=%s".format(t, t.kind, s))
}
- def m[T: ConcreteTypeTag](x: T) = printTag(concreteTypeTag[T])
- def m2[T: TypeTag](x: T) = printTag(typeTag[T])
+ def m[T: ConcreteTypeTag](x: T) = printTpe(typeOf[T])
+ def m2[T: TypeTag](x: T) = printTpe(typeOf[T])
// tags do work for f10/g10
def main(args: Array[String]): Unit = {
@@ -75,4 +77,4 @@ object Misc {
}
def g1 = o1.f1 _
def g2 = o1.f2 _
-}
+} \ No newline at end of file