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

23 lines
460 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() {}
fun propertyDelegated(a: Int) {
a.equals(a)
}
fun propertyDelegated(a: String) {
a.equals(a)
}
fun propertyDelegated(p: PropertyMetadata, a: Int) {
p.equals(a)
}
}