25 lines
416 B
Plaintext
Vendored
25 lines
416 B
Plaintext
Vendored
|
|
class C(~x~x : Int, ~y~val y : Int) : Base(`x`x /*parameter*/), Base1 by Base1(`x`x) {
|
|
var zx = `x`x // parameter
|
|
get() = `!`x // inaccessible
|
|
|
|
var zy = `y`y // parameter
|
|
get() = `y`y // property
|
|
|
|
init {
|
|
val wx = `x`x
|
|
val wy = `y`y
|
|
}
|
|
|
|
val fx = `x`x
|
|
val fy = `y`y
|
|
|
|
fun test() {
|
|
val ux = `!`x // inaccessible
|
|
val uy = `y`y // property
|
|
}
|
|
}
|
|
|
|
class D(~a~a: Int) {
|
|
val a = `a`a
|
|
} |