JS: transfer all empty statement simplifications RedundantLabelRemoval to EmptyStatementElimination, so that empty statements can be eliminated everywhere, not in labeled blocks only.
This commit is contained in:
+3
-1
@@ -18,8 +18,10 @@ package org.jetbrains.kotlin.js.test.optimizer
|
||||
|
||||
import org.junit.Test
|
||||
|
||||
class RedundantLabelRemovalTest : BasicOptimizerTest("redundant-label-removal") {
|
||||
class EmptyStatementEliminationTest : BasicOptimizerTest("empty-statement-elimination") {
|
||||
@Test fun emptyIfConditionPreserved() = box()
|
||||
|
||||
@Test fun ifWithEmptyThenAndNoElse() = box()
|
||||
|
||||
@Test fun emptyBlockEliminated() = box()
|
||||
}
|
||||
Reference in New Issue
Block a user