From 2e4cce358d89f3c85a357ab2241790fafcdbf10a Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Tue, 11 Feb 2014 15:37:37 +0100 Subject: Type.companionType => Type.companion I think that the "type" suffix here is redundant, so let's rename this API to reduce the annoyance potential. --- test/files/run/reflection-companiontype.scala | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test') diff --git a/test/files/run/reflection-companiontype.scala b/test/files/run/reflection-companiontype.scala index 7f2a37aaa9..0f63457670 100644 --- a/test/files/run/reflection-companiontype.scala +++ b/test/files/run/reflection-companiontype.scala @@ -8,15 +8,15 @@ object Test extends App { type T = C println("TypeRefs") - println(showRaw(typeOf[C].companionType, printKinds = true)) - println(showRaw(typeOf[C].companionType.companionType, printKinds = true)) - println(showRaw(typeOf[C.type].companionType, printKinds = true)) + println(showRaw(typeOf[C].companion, printKinds = true)) + println(showRaw(typeOf[C].companion.companion, printKinds = true)) + println(showRaw(typeOf[C.type].companion, printKinds = true)) println("ClassInfoTypes") - println(showRaw(typeOf[C].typeSymbol.info.companionType, printKinds = true)) - println(showRaw(typeOf[C].typeSymbol.info.companionType.typeSymbol.info.companionType, printKinds = true)) - println(showRaw(typeOf[C.type].typeSymbol.info.companionType, printKinds = true)) + println(showRaw(typeOf[C].typeSymbol.info.companion, printKinds = true)) + println(showRaw(typeOf[C].typeSymbol.info.companion.typeSymbol.info.companion, printKinds = true)) + println(showRaw(typeOf[C.type].typeSymbol.info.companion, printKinds = true)) println("Unrelated") - println(showRaw(typeOf[T].companionType, printKinds = true)) - println(showRaw(cm.staticPackage("scala").moduleClass.asType.toType.companionType, printKinds = true)) - println(showRaw(cm.staticPackage("scala").info.companionType, printKinds = true)) + println(showRaw(typeOf[T].companion, printKinds = true)) + println(showRaw(cm.staticPackage("scala").moduleClass.asType.toType.companion, printKinds = true)) + println(showRaw(cm.staticPackage("scala").info.companion, printKinds = true)) } \ No newline at end of file -- cgit v1.2.3