Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/abstractDelegatedProperty.fir.kt
T
2020-12-04 16:58:30 +03:00

14 lines
256 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
import kotlin.reflect.KProperty
abstract class A {
abstract val a: Int by <!ABSTRACT_DELEGATED_PROPERTY!>Delegate()<!>
}
class Delegate {
operator fun getValue(t: Any?, p: KProperty<*>): Int {
return 1
}
}