blob: 5a2d2b0b8f8d8e646769693a61e26667fdbd7fed [file] [log] [blame]
fun <T> eval(f: () -> T) = f()
class A {
private var foo = 1
fun `access$getFoo$p`(a: A): Int = 1
fun `access$setFoo$p`(a: A, d: Int) {}
private fun getFoo() = 1
private fun setFoo(i: Int) {}
fun `access$getFoo`(a: A): Int = 1
fun `access$setFoo`(a: A, d: Int) {}
fun test() {
eval {
foo = 2
foo
}
eval {
setFoo(2)
getFoo()
}
}
}