diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-08-26 23:27:55 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-08-26 23:27:55 +0200 |
commit | 2f9bcaa6af0615fc2d5d2b3ce077790b274dd279 (patch) | |
tree | b10671b93c8b3c876244ccdccb6c00c17349afbb /test/files/run/existentials3-new.scala | |
parent | a23edefac652e3be1474fceb3ee15d7eaecf1359 (diff) | |
download | scala-2f9bcaa6af0615fc2d5d2b3ce077790b274dd279.tar.gz scala-2f9bcaa6af0615fc2d5d2b3ce077790b274dd279.tar.bz2 scala-2f9bcaa6af0615fc2d5d2b3ce077790b274dd279.zip |
removes Symbol.kind and Type.kind
use Universe.showRaw instead:
scala> import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{universe=>ru}
scala> ru.showRaw(typeOf[Int])
res0: String = TypeRef(ThisType(scala), scala.Int, List())
scala> ru.showRaw(typeOf[Int].typeSymbol, printKinds = true)
res1: String = scala.Int#CLS
Diffstat (limited to 'test/files/run/existentials3-new.scala')
-rw-r--r-- | test/files/run/existentials3-new.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/existentials3-new.scala b/test/files/run/existentials3-new.scala index 649fac8327..16735eab4f 100644 --- a/test/files/run/existentials3-new.scala +++ b/test/files/run/existentials3-new.scala @@ -35,7 +35,7 @@ object Test { 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)) + println("%s, t=%s, s=%s".format(t, t.asInstanceOf[Product].productPrefix, s)) } def m[T: TypeTag](x: T) = printTpe(typeOf[T]) def m2[T: AbsTypeTag](x: T) = printTpe(implicitly[AbsTypeTag[T]].tpe) |