Create secondary constructor: fill 'this()' arguments
#KT-11865 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
e271015382
commit
eff57001dc
+7
@@ -0,0 +1,7 @@
|
||||
// "Create secondary constructor" "true"
|
||||
|
||||
class CtorPrimary(val f1: Int, val f2: Int?)
|
||||
|
||||
fun construct() {
|
||||
val v6 = CtorPrimary(1, 2, 3<caret>)
|
||||
}
|
||||
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)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Create secondary constructor" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
class CtorPrimary(val f1: Int, val f2: String)
|
||||
|
||||
fun construct() {
|
||||
val v6 = CtorPrimary(1, 2, 3<caret>)
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create secondary constructor" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
class CtorPrimary(val f1: Int, val f2: String) {
|
||||
constructor(f1: Int, f2: Int, i: Int) : this()
|
||||
}
|
||||
|
||||
fun construct() {
|
||||
val v6 = CtorPrimary(1, 2, 3)
|
||||
}
|
||||
Reference in New Issue
Block a user