KT-14357 Run RedundantCoercionToUnitTransformer before DeadCodeEliminatingMethodTransformer.

Remove empty try-catch blocks in DeadCodeEliminatingMethodTransformer.
This commit is contained in:
Dmitry Petrov
2016-10-14 16:06:39 +03:00
parent 932e6753e5
commit ac675784c1
6 changed files with 40 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
fun test() {
if (false) {
try {
println("Hello Kotlin")
} catch (e: Exception) {
e.printStackTrace()
}
}
}
// 0 INVOKE