Add test cases for obsolete issues

#KT-3407 Obsolete
 #KT-4753 Obsolete
This commit is contained in:
Alexander Udalov
2015-06-09 22:00:03 +03:00
parent 5eb4a47a1a
commit f81c364999
10 changed files with 71 additions and 7 deletions
@@ -0,0 +1,5 @@
public class ExtendsKCWithT extends KC {
public static String bar() {
return new ExtendsKCWithT().foo();
}
}
@@ -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()
@@ -0,0 +1,4 @@
public interface MyInt {
String test();
}
@@ -0,0 +1,11 @@
interface A : MyInt {
override public fun test(): String? {
return "OK"
}
}
class B: A
fun box() : String {
return B().test()!!
}