Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/properties/noBackingFieldInProperty.kt
T
2020-09-29 10:17:42 +03:00

16 lines
272 B
Kotlin
Vendored

// ISSUE: KT-41977
class A {
val field: String = "" // (1)
val x
get() = field.length // should be ok, resolve to (1)
}
class B {
val field: String = ""
val x: Int
get() = field.<!UNRESOLVED_REFERENCE!>length<!> // should be an error
}