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

9 lines
211 B
Kotlin

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