"Replace 'if' with elvis operator": Don't suggest on nullable type check #KT-25886 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-08-09 12:51:04 +09:00
committed by Mikhail Glukhikh
parent 1a31ce769c
commit c6db26ba91
3 changed files with 14 additions and 0 deletions
@@ -0,0 +1,8 @@
// IS_APPLICABLE: false
fun test(): String {
val foo = foo()
<caret>if (foo !is String?) return "0"
return "1"
}
fun foo(): Any? = null