psi2ir: add test for reference to var with non-accessible setter

This commit is contained in:
Dmitry Petrov
2019-03-19 18:02:33 +03:00
parent 21dbe2e7e7
commit 7e4688da93
2 changed files with 85 additions and 0 deletions
@@ -4,6 +4,13 @@ object Delegate {
operator fun setValue(thisRef: Any?, kProp: Any, value: Int) {}
}
open class C {
var varWithPrivateSet: Int = 1
private set
var varWithProtectedSet: Int = 1
protected set
}
val valWithBackingField = 1
val test_valWithBackingField = ::valWithBackingField
@@ -44,6 +51,9 @@ val test_constVal = ::constVal
val test_J_CONST = J::CONST
val test_J_nonConst = J::nonConst
val test_varWithPrivateSet = C::varWithPrivateSet
val test_varWithProtectedSet = C::varWithProtectedSet
// FILE: J.java
public class J {
public static final int CONST = 1;