Minor, add package to typeOfCapturedStar.kt test

This fixes this test on Android where packages are replaced.
This commit is contained in:
Alexander Udalov
2020-02-11 17:29:48 +01:00
parent eca562a006
commit 2bb6e4fd97
@@ -4,6 +4,8 @@
// IGNORE_BACKEND: JS, JS_IR // IGNORE_BACKEND: JS, JS_IR
// WITH_REFLECT // WITH_REFLECT
package test
import kotlin.reflect.typeOf import kotlin.reflect.typeOf
import kotlin.reflect.KClass import kotlin.reflect.KClass
import kotlin.reflect.KType import kotlin.reflect.KType
@@ -33,7 +35,7 @@ fun box(): String {
} }
val (w, f) = bar(q) // T should be inferred to KFunction<Captured(*)> and should be approximated to KFunction<Any>, not KFunction<*> val (w, f) = bar(q) // T should be inferred to KFunction<Captured(*)> and should be approximated to KFunction<Any>, not KFunction<*>
val expected = "KFunction<kotlin.Any>" val expected = "test.KFunction<kotlin.Any>"
if (w.toString() != expected) return "Fail 1: $w" if (w.toString() != expected) return "Fail 1: $w"
if (typeOfValue(f).toString() != expected) return "Fail 2: $f" if (typeOfValue(f).toString() != expected) return "Fail 2: $f"
return "OK" return "OK"