Change Signature: Property support
#KT-6599 Fixed
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
package test
|
||||
|
||||
public inline fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
|
||||
|
||||
class A
|
||||
|
||||
open var <caret>p: Int
|
||||
get() = 1
|
||||
set(value: Int) {}
|
||||
|
||||
fun test() {
|
||||
with(A()) {
|
||||
val t = p
|
||||
p = 1
|
||||
}
|
||||
|
||||
val t1 = p
|
||||
p = 1
|
||||
}
|
||||
Reference in New Issue
Block a user