Files
kotlin-fork/compiler/testData/resolve/PrimaryConstructorParameters.resolve
T
2015-04-29 14:07:05 +02:00

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
}