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.
This commit is contained in:
Svetlana Isakova
2013-07-02 21:19:28 +04:00
parent 37e4402822
commit 54e1cf0879
3 changed files with 24 additions and 47 deletions
@@ -1,20 +1,20 @@
class A(~a~val a : Int) {
~b~val b = `$a`a
~f~fun f() = `$a`a
~b~val b = `a`a
~f~fun f() = `a`a
}
fun test() {
~va~val a = A()
`va`a.`$a`a`:kotlin::Int`
`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
`bar`bar = 1
`barr`barr = 1
`$barrr`barrr = 1
`barrr`barrr = 1
}
}