Surround with null check for unsafe things: find first parent statement to surround (which is not used as expression) #KT-13958 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-10-25 13:10:39 +03:00
parent e56a10aa41
commit fd9e59ac7b
6 changed files with 52 additions and 25 deletions
@@ -0,0 +1,8 @@
// "Surround with null check" "true"
// WITH_RUNTIME
fun foz(arg: String?) {
if (arg<caret>.isNotEmpty()) {
}
}