Files
kotlin-fork/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt.txt
T
2024-02-16 10:19:38 +00:00

34 lines
786 B
Kotlin
Vendored

class Flaf {
val javaName: String
field = javaName
get
private val INSTANCES: MutableMap<String, Flaf>
field = mutableMapOf<String, Flaf>()
private get
constructor(javaName: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
fun forJavaName(javaName: String): Flaf {
var result: Flaf? = <this>.<get-INSTANCES>().get(key = javaName)
when {
EQEQ(arg0 = result, arg1 = null) -> { // BLOCK
result = <this>.<get-INSTANCES>().get(key = javaName + "_alternative")
when {
EQEQ(arg0 = result, arg1 = null) -> { // BLOCK
result = Flaf(javaName = javaName)
}
}
<this>.<get-INSTANCES>().set<String, Flaf>(key = javaName, value = result)
}
}
return result
}
}