mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
14 lines
373 B
Plaintext
Vendored
14 lines
373 B
Plaintext
Vendored
// "Create member function 'F.setValue'" "true"
|
|
import kotlin.reflect.KProperty
|
|
|
|
class F {
|
|
operator fun getValue(x: X, property: KProperty<*>): Int = 1
|
|
operator fun setValue(x: X, property: KProperty<*>, i: Int) {
|
|
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
|
}
|
|
}
|
|
|
|
class X {
|
|
var f: Int by F()
|
|
}
|