blob: 8e9e0fd0bd9768f8b7afb710aacac881d208699a [file]
// FILE: CallNotInSubclass.java
package test;
class Test {
void test() {
A<Integer> a = new B();
int ax = a.foo();
Integer ay = a.foo();
Object az = a.foo();
B b = new B();
int bx = b.foo();
Integer by = b.foo();
Object bz = b.foo();
}
}
// FILE: CallNotInSubclass.kt
package test
interface A<T> {
fun foo(): T
}
class B : A<Int> {
override fun foo(): Int = 42
}