Files
kotlin-fork/compiler/testData/resolve/PrimaryConstructorParameters.resolve
T
Svetlana Isakova 54e1cf0879 removed incorrect code from resolve tests
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.
2013-07-05 18:03:51 +04:00

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
}