54e1cf0879
Resolve tests had a functionality that for primary constructor parameters class A(val x: Int, y: Int) `$x` was resolved to property descriptor while `x` was resolved to value parameter descriptor. But it worked incorrect (see tests changes) and was senseless because 'x' in code always resolves to property descriptor. So it was dropped.
25 lines
411 B
Plaintext
25 lines
411 B
Plaintext
|
|
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
|
|
|
|
{
|
|
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
|
|
} |