57c8dd86a0
Also, refactor property initializer checking so that those newly added property checkers as well as member property checker can share the same logic
14 lines
244 B
Kotlin
Vendored
14 lines
244 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
import kotlin.reflect.KProperty
|
|
|
|
interface T {
|
|
val a: Int by <!DELEGATED_PROPERTY_IN_INTERFACE!>Delegate()<!>
|
|
}
|
|
|
|
class Delegate {
|
|
operator fun getValue(t: Any?, p: KProperty<*>): Int {
|
|
return 1
|
|
}
|
|
}
|