KT-9839: intention introduced: convert secondary constructor to primary one #KT-9839 Fixed
(cherry picked from commit f3fa779)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
28b70faa99
commit
725df49c8c
+11
@@ -0,0 +1,11 @@
|
||||
class DefaultValueChain {
|
||||
val x1: Int
|
||||
val x3: Int
|
||||
val x5: Int
|
||||
|
||||
<caret>constructor(x1: Int, x2: Int = x1, x3: Int = x2, x4: Int = x3, x5: Int = x4) {
|
||||
this.x1 = x1
|
||||
this.x3 = x3
|
||||
this.x5 = x5
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user