K2: fix reporting of NO_REFLECTION_IN_CLASS_PATH on implicit invoke

#KT-61054 Fixed
This commit is contained in:
Alexander Udalov
2023-08-08 12:50:25 +02:00
committed by Space Team
parent 87ab88957d
commit e87bccd5c7
3 changed files with 4 additions and 1 deletions
@@ -21,6 +21,7 @@ fun y01() = Foo::prop.<!NO_REFLECTION_IN_CLASS_PATH!>getter<!>
fun y02() = Foo::class.<!NO_REFLECTION_IN_CLASS_PATH!>members<!>
fun y03() = Foo::class.simpleName
fun y04() = Foo::class.<!UNRESOLVED_REFERENCE!>properties<!>
fun y05() = Foo::prop.<!NO_REFLECTION_IN_CLASS_PATH!>getter<!>(Foo(42))
fun <T : Any> kclass(k: KClass<*>, kt: KClass<T>) {
k.simpleName