16 lines
293 B
Kotlin
Vendored
16 lines
293 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
import kotlin.reflect.KProperty
|
|
|
|
var a: Int by Delegate()
|
|
private set
|
|
|
|
class Delegate {
|
|
operator fun getValue(t: Any?, p: KProperty<*>): Int {
|
|
return 1
|
|
}
|
|
|
|
operator fun setValue(t: Any?, p: KProperty<*>, i: Int) {}
|
|
}
|