Files
kotlin-fork/compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/reflective/reflective.kt
T
Mikhael Bogdanov 409d36c911 Basic -Xrelease option support
#KT-29974 Fixed
2021-12-23 07:25:57 +00:00

14 lines
348 B
Kotlin
Vendored

// CHECK_BYTECODE_TEXT
// 2 CHECKCAST java/lang/ReflectiveOperationException
// 1 LOCALVARIABLE reflective Ljava/lang/ReflectiveOperationException;
fun cond() = true
fun test(iae: IllegalAccessException?, cnfe: ClassNotFoundException?) {
val reflective = if (cond()) iae else cnfe
}
fun box(): String {
test(null, null)
return "OK"
}