[IR] Support reflection for MFVC
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com> #KT-1179
This commit is contained in:
committed by
Space Team
parent
1ff4906880
commit
88f293d4a9
+14
@@ -0,0 +1,14 @@
|
||||
// LAMBDAS: CLASS
|
||||
// !OPT_IN: kotlin.reflect.jvm.ExperimentalReflectionOnLambdas
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WITH_REFLECT
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
import kotlin.reflect.jvm.reflect
|
||||
|
||||
@JvmInline
|
||||
value class C(val x1: UInt, val x2: Int)
|
||||
|
||||
fun C.f(x: (String) -> Unit = { OK: String -> }) = x.reflect()?.parameters?.singleOrNull()?.name
|
||||
|
||||
fun box(): String = C(0U, 1).f() ?: "null"
|
||||
Reference in New Issue
Block a user