f283f2db43
Also introduce few new diagnostics: - NONE_APPLICABLE more many inapplicable candidates - HIDDEN for visible candidates
18 lines
300 B
Kotlin
Vendored
18 lines
300 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
import kotlin.reflect.KProperty
|
|
|
|
class A {
|
|
val c: Int by <!NONE_APPLICABLE!>Delegate()<!>
|
|
}
|
|
|
|
class Delegate {
|
|
fun getValue(t: Int, p: KProperty<*>): Int {
|
|
return 1
|
|
}
|
|
|
|
fun getValue(t: String, p: KProperty<*>): Int {
|
|
return 1
|
|
}
|
|
}
|