Lift assignment: do not report in cases where argument are of different types #KT-21520 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-09-13 16:38:28 +09:00
committed by Mikhail Glukhikh
parent fcc6395b14
commit 0cd25353bc
9 changed files with 122 additions and 4 deletions
@@ -0,0 +1,9 @@
// WITH_RUNTIME
fun test(b: Boolean, x: Int, y: Int?) {
val list = mutableListOf<Int?>()
list += if (b) {
x
} else {
y
}
}