K2: reproduce KT-61974
This commit is contained in:
committed by
Space Team
parent
0d98995a8e
commit
8e577e101e
@@ -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>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user