Files
kotlin-fork/compiler/testData/ir/irText/firProblems/putIfAbsent.kt.txt
T
2020-11-26 00:14:25 +03:00

15 lines
235 B
Plaintext
Vendored

class Owner {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
fun <T : Any?> foo(x: T, y: T) {
val map: MutableMap<T, T> = mutableMapOf<T, T>()
map.putIfAbsent(p0 = x, p1 = y) /*~> Unit */
}
}