Files
2020-12-16 19:52:30 +03:00

15 lines
174 B
Kotlin
Vendored

class C<T>(var x: T)
var <T> C<T>.y
get() = x
set(v) {
x = v
}
fun use(f: () -> String) {}
fun test1() {
use { C("abc").y }
use(C("abc")::y)
}