Java to Kotlin converter: more correct detection of primary constructor + constructor chains are supported (not completely correct code generated yet)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
//file
|
||||
class C {
|
||||
C(int arg1, int arg2, int arg3) {
|
||||
}
|
||||
|
||||
C(int arg1, int arg2) {
|
||||
this(arg1, arg2, 0);
|
||||
System.out.println();
|
||||
}
|
||||
|
||||
C(int arg) {
|
||||
System.out.println(arg);
|
||||
}
|
||||
}
|
||||
|
||||
public class User {
|
||||
public static void main() {
|
||||
C c1 = new C(1, 2, 3);
|
||||
C c2 = new C(5, 6);
|
||||
C c3 = new C(7);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user