NoArg: Fix IllegalAccessError on instantiating sealed class child via Java reflection (KT-18245)

This commit is contained in:
Yan Zhulanow
2017-06-28 22:39:38 +03:00
parent 53e193d130
commit 9a5a003d0a
3 changed files with 39 additions and 2 deletions
@@ -48,6 +48,12 @@ public class BlackBoxCodegenTestForNoArgGenerated extends AbstractBlackBoxCodege
doTest(fileName);
}
@TestMetadata("kt18245.kt")
public void testKt18245() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/kt18245.kt");
doTest(fileName);
}
@TestMetadata("kt18667.kt")
public void testKt18667() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/kt18667.kt");