Surround with null check: fix incorrect check for 'in' expression

#KT-31749 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-12-13 12:16:25 +09:00
committed by Ilya Kirillov
parent 1188f4617a
commit 11044a3ab5
4 changed files with 17 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
// "Surround with null check" "true"
fun test(a: String, b: List<String>?) {
a <caret>in b
}
@@ -0,0 +1,6 @@
// "Surround with null check" "true"
fun test(a: String, b: List<String>?) {
if (b != null) {
a in b
}
}