Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/noneApplicable.kt.after
T
Alexey Sedunov 3ba776fffa Code Insight: Format generated declarations
#KT-11176 Fixed
(cherry picked from commit 3641ad6)
2016-07-20 15:39:05 +03:00

12 lines
262 B
Plaintext
Vendored

// "Create secondary constructor" "true"
// ERROR: Primary constructor call expected
class CtorSecondary() {
constructor(p: Int) : this()
constructor<caret>(i: Int, i1: Int)
}
fun construct() {
// todo: add this()
val vA = CtorSecondary(2, 3)
}