Files
kotlin-fork/compiler/testData/resolve/PrimaryConstructors.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

21 lines
330 B
Plaintext

class A(~a~val a : Int) {
~b~val b = `a`a
~f~fun f() = `a`a
}
fun test() {
~va~val a = A()
`va`a.`a`a`:kotlin::Int`
a.`b`b`:kotlin::Int`
a.`f`f()`:kotlin::Int`
}
class Foo(~bar~var bar : Int, ~barr~barr : Int, ~barrr~val barrr : Int) {
{
`bar`bar = 1
`barr`barr = 1
`barrr`barrr = 1
}
}