mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 15:53:49 +00:00
20 lines
213 B
Plaintext
20 lines
213 B
Plaintext
class A {
|
|
int x;
|
|
|
|
A(int x) {
|
|
this.x = x;
|
|
}
|
|
}
|
|
|
|
class J {
|
|
int foo(int c, A a1) {
|
|
return a1.x * c
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
void test() {
|
|
new J().foo(3, new A(1 + 2));
|
|
}
|
|
}
|