JS: support non-local return from secondary constructor

See KT-14549
This commit is contained in:
Alexey Andreev
2017-09-27 17:14:33 +03:00
parent e323da3c5e
commit c15847a957
5 changed files with 21 additions and 10 deletions
@@ -21884,13 +21884,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("withNonLocalReturn.kt")
public void testWithNonLocalReturn() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/secondaryConstructors/withNonLocalReturn.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("withReturn.kt")