Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/inTrait.fir.kt
T
Jinseong Jeon 57c8dd86a0 FIR checker: introduce top-level property checkers
Also, refactor property initializer checking so that those
newly added property checkers as well as member property checker
can share the same logic
2021-01-27 19:46:06 +03:00

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
}
}