Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/propertyDelegatedIncomplete.kt
T
2014-09-24 15:34:12 +04:00

13 lines
295 B
Kotlin

val a: Int by <!DELEGATE_PD_METHOD_NONE_APPLICABLE!>Delegate()<!>
class Delegate {
fun get(t: Any?, p: PropertyMetadata): Int {
t.equals(p) // to avoid UNUSED_PARAMETER warning
return 1
}
fun propertyDelegated<T>(p: PropertyMetadata) {
p.equals(p)
}
}