mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
KT-14357 Run RedundantCoercionToUnitTransformer before DeadCodeEliminatingMethodTransformer.
Remove empty try-catch blocks in DeadCodeEliminatingMethodTransformer.
This commit is contained in:
11
compiler/testData/codegen/bytecodeText/deadCodeElimination/kt14357.kt
vendored
Normal file
11
compiler/testData/codegen/bytecodeText/deadCodeElimination/kt14357.kt
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
fun test() {
|
||||
if (false) {
|
||||
try {
|
||||
println("Hello Kotlin")
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 0 INVOKE
|
||||
Reference in New Issue
Block a user