psi2ir: update testData for property references
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user