Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/nonDefaultAccessors.kt
T
2021-05-13 16:13:07 +03:00

14 lines
307 B
Kotlin
Vendored

// FIR_IDENTICAL
// KT-11809 Assertion error when delegated property has getter
class A {
val p1 by this
get
var p2 by this
<!ACCESSOR_FOR_DELEGATED_PROPERTY!>get() = ""<!>
operator fun getValue(a: Any?, p: Any?) = ""
operator fun setValue(a: Any?, p: Any?, v: Any?) {}
}