Lift assignment: suggest for assignment of null

#KT-30191 Fixed
 #KT-28595 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-06-04 11:56:58 +09:00
committed by Dmitry Gridin
parent 4b4be07942
commit 05a132357b
12 changed files with 166 additions and 10 deletions
@@ -0,0 +1,13 @@
// PROBLEM: none
// DISABLE-ERRORS
fun bar(i: Int) {
var str: String = ""
<caret>if (i == 1) {
str = null
} else if (i == 2) {
str = "2"
} else {
str = "3"
}
}