Add test cases for obsolete issues
#KT-3407 Obsolete #KT-4753 Obsolete
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
interface Base<T> {
|
||||
void call(T t);
|
||||
}
|
||||
|
||||
interface Derived extends Base<String> {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun box(): String {
|
||||
Base<String>{}.call("")
|
||||
Derived{}.call("")
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class ParamBase<T> {}
|
||||
|
||||
interface F<T> extends FBase<ParamBase<? extends T>> {
|
||||
}
|
||||
|
||||
interface FBase<T> {
|
||||
void call(T t);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box(): String {
|
||||
F<ParamBase<Int>>({}).call(ParamBase())
|
||||
return "OK"
|
||||
}
|
||||
+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()
|
||||
Reference in New Issue
Block a user