Lift assignment: do not report in cases where argument are of different types #KT-21520 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
fcc6395b14
commit
0cd25353bc
+9
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
fun test(b: Boolean, x: Int, y: Int?) {
|
||||
val list = mutableListOf<Int?>()
|
||||
list += if (b) {
|
||||
x
|
||||
} else {
|
||||
y
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user