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

15 lines
222 B
Kotlin

// !DIAGNOSTICS: -UNUSED_PARAMETER
class B {
val a: Int by Delegate()
fun foo() = <!NO_BACKING_FIELD_CUSTOM_ACCESSORS!>$a<!>
}
class Delegate {
fun get(t: Any?, p: PropertyMetadata): Int {
return 1
}
}