Minor, add test case on metadata of lambdas in constructors
KT-41465
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_REFLECT
|
||||
|
||||
import kotlin.reflect.jvm.reflect
|
||||
|
||||
class C {
|
||||
val o = { O: String -> }
|
||||
val k = { K: String -> }
|
||||
|
||||
constructor(y: Int)
|
||||
constructor(y: String)
|
||||
}
|
||||
|
||||
fun box(): String =
|
||||
(C(0).o.reflect()?.parameters?.singleOrNull()?.name ?: "null") +
|
||||
(C("").k.reflect()?.parameters?.singleOrNull()?.name ?: "null")
|
||||
Reference in New Issue
Block a user