Files
kotlin-fork/compiler/testData/ir/irText/firProblems/putIfAbsent.kt
T
Dmitriy Novozhilov bd66b96f8a [FIR] Set EnhancedNullability attribute for former flexible types
In some cases we transform flexible type into non-flexible during
  enhancement, but don't add `@EnhancedNullability` attribute to them,
  which breaks consistency with K1 on IR level

This commit fixes it

^KT-65302
2024-02-21 12:04:11 +00:00

11 lines
188 B
Kotlin
Vendored

// FIR_IDENTICAL
// TARGET_BACKEND: JVM
// WITH_STDLIB
// FULL_JDK
class Owner {
fun <T> foo(x: T, y: T) {
val map = mutableMapOf<T, T>()
map.putIfAbsent(x, y)
}
}