JS: fix unit materialization in case of null check and elvis operator

See KT-20287
This commit is contained in:
Alexey Andreev
2017-09-18 12:35:50 +03:00
parent b4c622d433
commit c5e5a43f68
4 changed files with 32 additions and 3 deletions
@@ -893,6 +893,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
doTest(fileName);
}
@TestMetadata("unitNullCheck.kt")
public void testUnitNullCheck() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/coercion/unitNullCheck.kt");
doTest(fileName);
}
@TestMetadata("unitSafeCall.kt")
public void testUnitSafeCall() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/coercion/unitSafeCall.kt");