Lift assignment: suggest for assignment of null
#KT-30191 Fixed #KT-28595 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
4b4be07942
commit
05a132357b
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user