Pull Up: Java -> Kotlin interoperability
#KT-5803 Fixed
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
abstract class B extends T.U.A {
|
||||
}
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
B b = new B() {
|
||||
public int bar(String s) {
|
||||
return s.length();
|
||||
}
|
||||
};
|
||||
int t1 = b.getX();
|
||||
b.setX(t1 + 1);
|
||||
String t2 = b.X;
|
||||
String t3 = T.U.A.X;
|
||||
b.foo(1);
|
||||
b.foo2(2);
|
||||
T.U.A.foo2(3);
|
||||
b.new X();
|
||||
new B.Y();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user