Add test for obsolete issue
#KT-1936 Obsolete
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
var result = "Fail"
|
||||||
|
|
||||||
|
trait MyTrait
|
||||||
|
{
|
||||||
|
var property : String
|
||||||
|
fun foo() {
|
||||||
|
result = property
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
open class B(param : String) : MyTrait
|
||||||
|
{
|
||||||
|
override var property : String = param
|
||||||
|
override fun foo() {
|
||||||
|
super.foo()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
val b = B("OK")
|
||||||
|
b.foo()
|
||||||
|
return result
|
||||||
|
}
|
||||||
@@ -5020,6 +5020,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
doTest("compiler/testData/codegen/box/traits/inheritedVar.kt");
|
doTest("compiler/testData/codegen/box/traits/inheritedVar.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt1936.kt")
|
||||||
|
public void testKt1936() throws Exception {
|
||||||
|
doTest("compiler/testData/codegen/box/traits/kt1936.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt1936_1.kt")
|
@TestMetadata("kt1936_1.kt")
|
||||||
public void testKt1936_1() throws Exception {
|
public void testKt1936_1() throws Exception {
|
||||||
doTest("compiler/testData/codegen/box/traits/kt1936_1.kt");
|
doTest("compiler/testData/codegen/box/traits/kt1936_1.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user