regression test for KT-5395

This commit is contained in:
Dmitry Jemerov
2015-03-24 20:59:56 +01:00
parent 9d229ad271
commit f6093274ab
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,13 @@
class D {
companion object {
protected val F: String = "OK"
}
inner class E {
fun foo() = F
}
}
fun box(): String {
return D().E().foo()
}
@@ -3104,6 +3104,12 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
doTestWithStdlib(fileName);
}
@TestMetadata("kt5395.kt")
public void testKt5395() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/regressions/kt5395.kt");
doTestWithStdlib(fileName);
}
@TestMetadata("kt6434.kt")
public void testKt6434() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/regressions/kt6434.kt");