43 lines
460 B
Plaintext
Vendored
43 lines
460 B
Plaintext
Vendored
class TestInitValFromParameter {
|
|
constructor(x: Int) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
val x: Int
|
|
field = x
|
|
get
|
|
|
|
}
|
|
|
|
class TestInitValInClass {
|
|
constructor() /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
val x: Int
|
|
field = 0
|
|
get
|
|
|
|
}
|
|
|
|
class TestInitValInInitBlock {
|
|
constructor() /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
val x: Int
|
|
get
|
|
|
|
init {
|
|
<this>.#x = 0
|
|
}
|
|
|
|
}
|
|
|