Create secondary constructor: fill 'this()' arguments

#KT-11865 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-10-12 08:35:21 +02:00
committed by Vladimir Dolzhenko
parent e271015382
commit eff57001dc
6 changed files with 61 additions and 1 deletions
@@ -0,0 +1,9 @@
// "Create secondary constructor" "true"
class CtorPrimary(val f1: Int, val f2: Int?) {
constructor(f1: Int, f2: Int, i: Int) : this(f1, f2)
}
fun construct() {
val v6 = CtorPrimary(1, 2, 3)
}