14 lines
282 B
Plaintext
Vendored
14 lines
282 B
Plaintext
Vendored
package inline
|
|
|
|
import kotlin.reflect.KProperty
|
|
|
|
class Inline {
|
|
inline operator fun getValue(receiver: Any?, prop: KProperty<*>): Int {
|
|
return 1
|
|
}
|
|
|
|
inline operator fun setValue(receiver: Any?, prop: KProperty<*>, value: Int) {
|
|
println(value * 2)
|
|
}
|
|
}
|