14 lines
244 B
Kotlin
Vendored
14 lines
244 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
import kotlin.reflect.KProperty
|
|
|
|
interface T {
|
|
val a: Int <!DELEGATED_PROPERTY_IN_INTERFACE!>by Delegate()<!>
|
|
}
|
|
|
|
class Delegate {
|
|
operator fun getValue(t: Any?, p: KProperty<*>): Int {
|
|
return 1
|
|
}
|
|
}
|