// DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KProperty interface Delegate { operator fun getValue(thisRef: Any?, property: KProperty<*>): V = null!! operator fun setValue(thisRef: Any?, property: KProperty<*>, value: V) {} } fun delegate(): Delegate = null!! fun consume(x: Any?) {} class A { init { consume(x) x = 10 } val x: Int by delegate() init { x = 10 consume(x) } } class B { init { consume(x) x = 10 } var x: Int by delegate() init { x = 10 consume(x) } }