From 3071b58219075b0892db5be743a9bfe04a6385b4 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Wed, 9 Oct 2013 11:47:58 +0400 Subject: [PATCH] Use a built-in class to mitigate a naming problem in Android tests --- .../box/reflection/functionLiteralGenericSignature.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler/testData/codegen/box/reflection/functionLiteralGenericSignature.kt b/compiler/testData/codegen/box/reflection/functionLiteralGenericSignature.kt index f99bfe15067..2f2ccf64913 100644 --- a/compiler/testData/codegen/box/reflection/functionLiteralGenericSignature.kt +++ b/compiler/testData/codegen/box/reflection/functionLiteralGenericSignature.kt @@ -13,9 +13,7 @@ val intFun = { 42 } val stringParamFun = { (x: String) : Unit -> } val listFun = { (l: List) : List -> l } val mutableListFun = { (l: MutableList) : MutableList -> null!! } - -trait In -val funWithIn = { (x: In) : Unit -> } +val funWithIn = { (x: Comparable) : Unit -> } val extensionFun = { Any.() : Unit -> } val extensionWithArgFun = { Long.(x: Any) : Date -> Date() } @@ -26,7 +24,7 @@ fun box(): String { assertGenericSuper("jet.FunctionImpl1", stringParamFun) assertGenericSuper("jet.FunctionImpl1, java.util.List>", listFun) assertGenericSuper("jet.FunctionImpl1, java.util.List>", mutableListFun) - assertGenericSuper("jet.FunctionImpl1, jet.Unit>", funWithIn) + assertGenericSuper("jet.FunctionImpl1, jet.Unit>", funWithIn) assertGenericSuper("jet.ExtensionFunctionImpl0", extensionFun) assertGenericSuper("jet.ExtensionFunctionImpl1", extensionWithArgFun)