KT-12254 Prevent JsEmptyExpression from getting into initializer JS when compiling code like val x = throw Exception()

This commit is contained in:
Alexey Andreev
2016-05-10 19:06:15 +03:00
parent 4387c31939
commit cb36b61f7f
4 changed files with 26 additions and 3 deletions
@@ -34,4 +34,8 @@ public class InitializerTest extends SingleFileTranslationTest {
public void testClassInitializer() throws Exception {
checkFooBoxIsOk();
}
public void testDeclarationInitializedWithThrow() throws Exception {
checkFooBoxIsOk();
}
}