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

17 lines
267 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
import kotlin.reflect.KProperty
class B {
val a: Int by Delegate()
fun foo() =<!SYNTAX!><!> <!SYNTAX!>$a<!>
}
class Delegate {
operator fun getValue(t: Any?, p: KProperty<*>): Int {
return 1
}
}