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
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
fun test(b: Boolean, x: Int, y: Int?) {
|
||||
val list = mutableListOf<Int?>()
|
||||
<caret>if (b) {
|
||||
list += x
|
||||
} else {
|
||||
list += y
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user