Minor, add package to typeOfCapturedStar.kt test
This fixes this test on Android where packages are replaced.
This commit is contained in:
@@ -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<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 (typeOfValue(f).toString() != expected) return "Fail 2: $f"
|
||||
return "OK"
|
||||
|
||||
Reference in New Issue
Block a user