409d36c911
#KT-29974 Fixed
16 lines
325 B
Kotlin
Vendored
16 lines
325 B
Kotlin
Vendored
// CHECK_BYTECODE_TEXT
|
|
// 2 CHECKCAST java/lang/constant/Constable
|
|
// 1 LOCALVARIABLE constable Ljava/lang/constant/Constable;
|
|
|
|
import java.lang.invoke.*
|
|
|
|
fun cond() = true
|
|
|
|
fun test(mh: MethodHandle?, mt: MethodType?) {
|
|
val constable = if (cond()) mh else mt
|
|
}
|
|
|
|
fun box(): String {
|
|
test(null, null)
|
|
return "OK"
|
|
} |