regression test for KT-5395
This commit is contained in:
@@ -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()
|
||||||
|
}
|
||||||
+6
@@ -3104,6 +3104,12 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
|
|||||||
doTestWithStdlib(fileName);
|
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")
|
@TestMetadata("kt6434.kt")
|
||||||
public void testKt6434() throws Exception {
|
public void testKt6434() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/regressions/kt6434.kt");
|
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/regressions/kt6434.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user