diff --git a/compiler/testData/diagnostics/testsWithStdLib/cast/AsInsideIn.kt b/compiler/testData/diagnostics/testsWithStdLib/cast/AsInsideIn.kt
index 83f41e31eec..adbb29c98d8 100644
--- a/compiler/testData/diagnostics/testsWithStdLib/cast/AsInsideIn.kt
+++ b/compiler/testData/diagnostics/testsWithStdLib/cast/AsInsideIn.kt
@@ -2,8 +2,8 @@
interface A
class B : A
fun foo1(list: List, arg: B?): Boolean {
- // contains(T): Boolean is deprecated
- return arg in list
+ // Type mismatch
+ return arg in list
}
fun foo2(list: List, arg: B?): Boolean {
// FAKE: no cast needed
diff --git a/compiler/testData/diagnostics/testsWithStdLib/commonCollections.kt b/compiler/testData/diagnostics/testsWithStdLib/commonCollections.kt
index f84dd259f20..4ab7cce5490 100644
--- a/compiler/testData/diagnostics/testsWithStdLib/commonCollections.kt
+++ b/compiler/testData/diagnostics/testsWithStdLib/commonCollections.kt
@@ -2,7 +2,7 @@ import java.util.*
fun foo() {
val al = ArrayList()
al.size
- al.contains(1)
+ al.contains(1)
al.contains("")
al.remove("")
@@ -10,7 +10,7 @@ fun foo() {
val hs = HashSet()
hs.size
- hs.contains(1)
+ hs.contains(1)
hs.contains("")
hs.remove("")
@@ -18,11 +18,11 @@ fun foo() {
val hm = HashMap()
hm.size
- hm.containsKey(1)
+ hm.containsKey(1)
hm.containsKey("")
- hm[1]
+ hm[1]
hm[""]
hm.remove("")
-}
+}
\ No newline at end of file