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,45 @@
class Test {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
var resourceTable: ResourceTable?
field = null
get(): ResourceTable? {
when {
EQEQ(arg0 = <this>.#resourceTable, arg1 = null).not() -> { // BLOCK
return <this>.#resourceTable
}
}
val fileData: String? = <this>.getFileData()
when {
EQEQ(arg0 = fileData, arg1 = null).not() -> { // BLOCK
<this>.#resourceTable = ResourceTable()
}
}
return { // BLOCK
val tmp0_elvis_lhs: ResourceTable? = <this>.#resourceTable
when {
EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> ResourceTable()
else -> tmp0_elvis_lhs
}
}
}
set
fun getFileData(): String? {
return ""
}
}
class ResourceTable {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}