18 lines
340 B
Kotlin
Vendored
18 lines
340 B
Kotlin
Vendored
import kotlin.reflect.KProperty
|
|
|
|
class Del {
|
|
operator fun getValue(_this: Any?, p: KProperty<*>): Int = 0
|
|
}
|
|
|
|
fun df(del: Del): Del = del
|
|
|
|
|
|
fun test(del: Any?) {
|
|
if (del !is Del) return
|
|
|
|
class Local {
|
|
val delegatedVal by <!INAPPLICABLE_CANDIDATE!>df<!>(del)
|
|
val delegatedVal1: Int by <!INAPPLICABLE_CANDIDATE!>df<!>(del)
|
|
}
|
|
}
|