KT-9839: intention introduced: convert primary constructor to secondary one
(cherry picked from commit 93aaa48)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
d4418d5686
commit
7f50e6e70e
+18
@@ -0,0 +1,18 @@
|
||||
class ParamAndProperties {
|
||||
val y: Int
|
||||
val w: Int
|
||||
|
||||
constructor(x: Int, y: Int, z: Int, w: Int) {
|
||||
this.y = y
|
||||
this.w = w
|
||||
this.r = x + z
|
||||
this.s = r + y
|
||||
this.t = s + w
|
||||
}
|
||||
|
||||
val r: Int
|
||||
|
||||
val s: Int
|
||||
|
||||
val t: Int
|
||||
}
|
||||
Reference in New Issue
Block a user