psi2ir: update testData for property references

This commit is contained in:
Dmitry Petrov
2019-03-13 16:03:22 +03:00
parent 5b5f3a7468
commit c86ef5da53
9 changed files with 287 additions and 22 deletions
@@ -0,0 +1,51 @@
// FILE: propertyReferences.kt
object Delegate {
operator fun getValue(thisRef: Any?, kProp: Any) = 1
operator fun setValue(thisRef: Any?, kProp: Any, value: Int) {}
}
val valWithBackingField = 1
val test_valWithBackingField = ::valWithBackingField
var varWithBackingField = 1
val test_varWithBackingField = ::varWithBackingField
var varWithBackingFieldAndAccessors = 1
get() = field
set(value) { field = value }
val test_varWithBackingFieldAndAccessors = ::varWithBackingFieldAndAccessors
val valWithAccessors
get() = 1
val test_valWithAccessors = ::valWithAccessors
var varWithAccessors
get() = 1
set(value) {}
val test_varWithAccessors = ::varWithAccessors
val delegatedVal by Delegate
val test_delegatedVal = ::delegatedVal
var delegatedVar by Delegate
val test_delegatedVar = ::delegatedVar
val constVal = 1
val test_constVal = ::constVal
val test_J_CONST = J::CONST
val test_J_nonConst = J::nonConst
// FILE: J.java
public class J {
public static final int CONST = 1;
public static int nonConst = 2;
}