JS: fix translation of safe calls to suspend unit functions

See KT-21317
This commit is contained in:
Alexey Andreev
2017-11-20 16:26:03 +03:00
parent 91730e1a9e
commit a9548b1224
8 changed files with 136 additions and 40 deletions
@@ -6396,6 +6396,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendReturn.kt");
doTest(fileName);
}
@TestMetadata("unitSafeCall.kt")
public void testUnitSafeCall() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/unitTypeReturn/unitSafeCall.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/varSpilling")