Java to Kotlin converter: constructor overloads to default parameter values conversion

This commit is contained in:
Valentin Kipyatkov
2014-06-27 16:48:22 +04:00
parent e86d74600d
commit 13f40e5b0d
20 changed files with 316 additions and 71 deletions
@@ -7,10 +7,15 @@ class A {
v = 1;
} // end of primary constructor body
// this is a secondary constructor
// this is a secondary constructor 1
A() {
this(1);
} // end of secondary constructor body
} // end of secondary constructor 1 body
// this is a secondary constructor 2
A(String s) {
this(s.length());
} // end of secondary constructor 2 body
}
class B {