9a2eff6487
https://youtrack.jetbrains.com/issue/KT-60264/K2-while-loop-body-block-sometimes-replaced-with-single-expression Merge-request: KT-MR-12035 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
11 lines
137 B
Kotlin
Vendored
11 lines
137 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
fun test1() {
|
|
throw Throwable()
|
|
}
|
|
|
|
fun testImplicitCast(a: Any) {
|
|
if (a is Throwable) {
|
|
throw a
|
|
}
|
|
}
|