Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/propertyDelegatedWrongArguments.kt
T
2015-02-10 06:55:46 +01:00

18 lines
364 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
val a: Int by <!DELEGATE_PD_METHOD_NONE_APPLICABLE!>Delegate()<!>
class Delegate {
fun get(t: Any?, p: PropertyMetadata): Int {
return 1
}
fun propertyDelegated() {}
fun propertyDelegated(a: Int) {}
fun propertyDelegated(a: String) {}
fun propertyDelegated(p: PropertyMetadata, a: Int) {}
}