Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/propertyDelegatedIncomplete.kt
T

14 lines
289 B
Kotlin
Vendored

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