Files
kotlin-fork/idea/testData/inspectionsLocal/liftOut/ifToAssignment/nullableMutableList.kt.after
T

9 lines
154 B
Plaintext
Vendored

// WITH_RUNTIME
fun test(b: Boolean, x: Int, y: Int?) {
val list = mutableListOf<Int?>()
list += if (b) {
x
} else {
y
}
}