Introduce Parameter: Java -> Kotlin Interoperability

This commit is contained in:
Alexey Sedunov
2015-04-14 20:09:15 +03:00
parent 93861e16c8
commit f13eb038e1
15 changed files with 376 additions and 11 deletions

View File

@@ -0,0 +1,19 @@
class A {
int x;
A(int x) {
this.x = x;
}
}
class J {
int foo(int a, int b, int c) {
return <selection>new A(a + b)</selection>.x * c
}
}
class Test {
void test() {
new J().foo(1, 2, 3);
}
}