FIR: Fix incorrect qualifier resolution in case of type parameters

^KT-51265 Fixed
This commit is contained in:
Denis.Zharkov
2022-02-14 14:20:37 +03:00
committed by teamcity
parent 52c8b6166c
commit 58408d8a78
6 changed files with 39 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
// TARGET_BACKEND: JVM
// WITH_REFLECT
import kotlin.reflect.KClass
class OK
class T
inline fun <reified F : Any> bar(k: KClass<out F>): String = k.simpleName!!
inline fun <reified T : Any> foo(): String = bar(T::class)
fun box(): String {
return foo<OK>()
}