K2: reproduce KT-61974

This commit is contained in:
Mikhail Glukhikh
2023-09-28 11:27:58 +02:00
committed by Space Team
parent 0d98995a8e
commit 8e577e101e
9 changed files with 369 additions and 0 deletions
@@ -0,0 +1,20 @@
// ISSUE: KT-61974
// TARGET_BACKEND: JVM
class Test {
var resourceTable: ResourceTable? = null
get() {
if (field != null) {
return field
}
val fileData = getFileData()
if (fileData != null) {
field = ResourceTable()
}
return field ?: ResourceTable()
}
fun getFileData(): String? = ""
}
class ResourceTable