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

18 lines
307 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
import kotlin.reflect.KProperty
class A {
val c: Int by <!INAPPLICABLE_CANDIDATE!>Delegate()<!>
}
class Delegate {
fun getValue(t: Int, p: KProperty<*>): Int {
return 1
}
fun getValue(t: String, p: KProperty<*>): Int {
return 1
}
}