From 2813840769345d383a8cd6274e83199544eb933e Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Sat, 16 Jan 2016 20:10:58 +0300 Subject: [PATCH] Fix testData: diagnostics changed. --- .../diagnostics/testsWithStdLib/cast/AsInsideIn.kt | 4 ++-- .../diagnostics/testsWithStdLib/commonCollections.kt | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) 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