Create secondary constructor: fill 'this()' arguments
#KT-11865 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
e271015382
commit
eff57001dc
Vendored
+9
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user