mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
11 lines
200 B
Kotlin
Vendored
11 lines
200 B
Kotlin
Vendored
// "Create member function 'F.setValue'" "true"
|
|
import kotlin.reflect.KProperty
|
|
|
|
class F {
|
|
operator fun getValue(x: X, property: KProperty<*>): Int = 1
|
|
}
|
|
|
|
class X {
|
|
var f: Int by F()<caret>
|
|
}
|