Pull Up: Java -> Kotlin interoperability

#KT-5803 Fixed
This commit is contained in:
Alexey Sedunov
2015-08-06 16:20:12 +03:00
parent 556285f2c7
commit 7125989c69
50 changed files with 1337 additions and 337 deletions
@@ -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();
}
}