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:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user