Make Ref classes for shared vars Serializable

#KT-14566 Fixed
This commit is contained in:
Alexander Udalov
2017-02-09 20:34:04 +03:00
parent c10524586a
commit 8e3cb912c7
8 changed files with 91 additions and 27 deletions
@@ -4284,6 +4284,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
doTest(fileName);
}
@TestMetadata("refsAreSerializable.kt")
public void testRefsAreSerializable() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/closures/refsAreSerializable.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("simplestClosure.kt")
public void testSimplestClosure() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/closures/simplestClosure.kt");