Add test cases for obsolete issues
#KT-3407 Obsolete #KT-4753 Obsolete
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
public class ExtendsKCWithT extends KC {
|
||||
public static String bar() {
|
||||
return new ExtendsKCWithT().foo();
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// KT-3407 Implementing (in Java) an abstract Kotlin class that implements a trait does not respect trait method definition
|
||||
|
||||
trait T {
|
||||
fun foo() = "OK"
|
||||
}
|
||||
|
||||
abstract class KC: T {}
|
||||
|
||||
fun box() = ExtendsKCWithT.bar()
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public interface MyInt {
|
||||
|
||||
String test();
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
interface A : MyInt {
|
||||
override public fun test(): String? {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
class B: A
|
||||
|
||||
fun box() : String {
|
||||
return B().test()!!
|
||||
}
|
||||
Reference in New Issue
Block a user