JS: fix translation of suspend lambda when it's not passed to another function

This commit is contained in:
Alexey Andreev
2017-01-23 15:05:08 +03:00
parent 1a5e0e4b06
commit 8040d781b4
5 changed files with 21 additions and 51 deletions
@@ -5864,13 +5864,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("localVal.kt")
public void testLocalVal() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/localVal.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
doTest(fileName);
}
@TestMetadata("manyParameters.kt")