Files
kotlin-fork/compiler/testData/ir/irText/firProblems/elvisOnBackingFieldInGetter.kt.txt
T
Vladimir Sukharev bae8b283c7 [IR] Normalize temp var names in Kotlin-like dump
^KT-61983 Fixed
2023-10-11 07:49:35 +00:00

46 lines
879 B
Kotlin
Vendored

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 tmp_0: ResourceTable? = <this>.#resourceTable
when {
EQEQ(arg0 = tmp_0, arg1 = null) -> ResourceTable()
else -> tmp_0
}
}
}
set
fun getFileData(): String? {
return ""
}
}
class ResourceTable {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}