Java to Kotlin converter: constructor overloads to default parameter values conversion
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
//file
|
||||
package pack
|
||||
|
||||
class C {
|
||||
C(int a, int b, int c, int d, int e) {
|
||||
}
|
||||
|
||||
C() {
|
||||
this(1);
|
||||
}
|
||||
|
||||
C(int a, int b) {
|
||||
this(a, b, 3, 4, 5);
|
||||
}
|
||||
|
||||
C(int a) {
|
||||
this(a, 2, 3);
|
||||
}
|
||||
|
||||
C(int a, int b, int c) {
|
||||
this(a, b, c, 4, 5);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user