Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/properties/backingField/localVariablesWithBackingFields.kt
T
2021-09-11 22:05:43 +03:00

23 lines
435 B
Kotlin
Vendored

val that: Number
field = 239
fun test() {
val a: Number
<!UNRESOLVED_REFERENCE!>field<!> = 1
val b: Number by lazy { 2 }
<!UNRESOLVED_REFERENCE!>field<!> = 10
}
class A {
val c: Number by lazy { 2 }
<!BACKING_FIELD_FOR_DELEGATED_PROPERTY!>field<!> = 10
}
val A.cc: Number
<!EXPLICIT_BACKING_FIELD_IN_EXTENSION!>field<!> = 10
fun A.cc() {
val it = <!UNRESOLVED_REFERENCE!>a<!> + 2
}