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
@@ -0,0 +1,12 @@
package pack
fun C(a1: Int, b1: Int, c1: Int): C {
return C(a1, b1, c1, 0, 0)
}
fun C(b: Byte): C {
return C(b.toInt(), 0, 0, 0, 0)
}
class C(a: Int = 0, b: Int = 0, c: Int = 0, d: Int = 0, e: Int = 0)