From 2bb6e4fd97f1e07f7e94b9c18239a8cec6f82690 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Tue, 11 Feb 2020 17:29:48 +0100 Subject: [PATCH] Minor, add package to typeOfCapturedStar.kt test This fixes this test on Android where packages are replaced. --- .../codegen/box/reflection/typeOf/typeOfCapturedStar.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/testData/codegen/box/reflection/typeOf/typeOfCapturedStar.kt b/compiler/testData/codegen/box/reflection/typeOf/typeOfCapturedStar.kt index 68e51da5002..02989fc1994 100644 --- a/compiler/testData/codegen/box/reflection/typeOf/typeOfCapturedStar.kt +++ b/compiler/testData/codegen/box/reflection/typeOf/typeOfCapturedStar.kt @@ -4,6 +4,8 @@ // IGNORE_BACKEND: JS, JS_IR // WITH_REFLECT +package test + import kotlin.reflect.typeOf import kotlin.reflect.KClass import kotlin.reflect.KType @@ -33,7 +35,7 @@ fun box(): String { } val (w, f) = bar(q) // T should be inferred to KFunction and should be approximated to KFunction, not KFunction<*> - val expected = "KFunction" + val expected = "test.KFunction" if (w.toString() != expected) return "Fail 1: $w" if (typeOfValue(f).toString() != expected) return "Fail 2: $f" return "OK"