regression test for obsolete issue KT-4142

This commit is contained in:
Dmitry Jemerov
2015-03-24 19:14:18 +01:00
parent 5370073c05
commit 4f0cf2f918
2 changed files with 22 additions and 0 deletions
@@ -0,0 +1,16 @@
open class B {
val name: String
get() = "OK"
}
trait A {
val name: String
}
class C : B(), A {
}
fun box(): String {
return C().name
}
@@ -3062,6 +3062,12 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
doTestWithStdlib(fileName);
}
@TestMetadata("kt4142.kt")
public void testKt4142() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/regressions/kt4142.kt");
doTestWithStdlib(fileName);
}
@TestMetadata("kt4262.kt")
public void testKt4262() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/regressions/kt4262.kt");