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