mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-22 00:21:31 +00:00
24 lines
509 B
Java
Vendored
24 lines
509 B
Java
Vendored
public class JavaClass {
|
|
|
|
public static class C extends B {
|
|
public OutPair<String, Integer> foo() {
|
|
return super.foo();
|
|
}
|
|
|
|
public In<Object> bar() {
|
|
return super.bar();
|
|
}
|
|
}
|
|
|
|
public static String test() {
|
|
A a = new C();
|
|
|
|
if (!a.foo().getX().equals("OK")) return "fail 1";
|
|
if (!a.foo().getY().equals(123)) return "fail 2";
|
|
|
|
if (!a.bar().make("123").equals("123")) return "fail 3";
|
|
|
|
return "OK";
|
|
}
|
|
}
|