package test class A open var A.p: Int get() = 1 set(value: Int) {} fun test() { with(A()) { val t = p p = 1 } val t1 = A().p A().p = 1 }