diff --git a/compiler/testData/diagnostics/tests/cast/AsErasedError.kt b/compiler/testData/diagnostics/tests/cast/AsErasedError.kt index 5df45d2862f..8c22aade491 100644 --- a/compiler/testData/diagnostics/tests/cast/AsErasedError.kt +++ b/compiler/testData/diagnostics/tests/cast/AsErasedError.kt @@ -1,2 +1,2 @@ -fun ff(c: Collection) = c as List +fun ff(c: MutableCollection) = c as MutableList diff --git a/compiler/testData/diagnostics/tests/cast/AsErasedFine.kt b/compiler/testData/diagnostics/tests/cast/AsErasedFine.kt index eae2d06ecfc..ef761f25328 100644 --- a/compiler/testData/diagnostics/tests/cast/AsErasedFine.kt +++ b/compiler/testData/diagnostics/tests/cast/AsErasedFine.kt @@ -1,2 +1,2 @@ -fun ff(c: Collection) = c as List +fun ff(c: MutableCollection) = c as MutableList diff --git a/compiler/testData/diagnostics/tests/cast/AsErasedStar.kt b/compiler/testData/diagnostics/tests/cast/AsErasedStar.kt index 95738530389..2ec2a30cb89 100644 --- a/compiler/testData/diagnostics/tests/cast/AsErasedStar.kt +++ b/compiler/testData/diagnostics/tests/cast/AsErasedStar.kt @@ -1,3 +1,3 @@ -fun ff(l: Any) = l as List<*> +fun ff(l: Any) = l as MutableList<*> diff --git a/compiler/testData/diagnostics/tests/cast/AsErasedWarning.kt b/compiler/testData/diagnostics/tests/cast/AsErasedWarning.kt index e1783da3078..c513e0e7a30 100644 --- a/compiler/testData/diagnostics/tests/cast/AsErasedWarning.kt +++ b/compiler/testData/diagnostics/tests/cast/AsErasedWarning.kt @@ -1,2 +1,2 @@ -fun ff(a: Any) = a as List +fun ff(a: Any) = a as MutableList diff --git a/compiler/testData/diagnostics/tests/cast/IsErasedAllowParameterSubtype.kt b/compiler/testData/diagnostics/tests/cast/IsErasedAllowParameterSubtype.kt index 913e4a10a90..995258b9f83 100644 --- a/compiler/testData/diagnostics/tests/cast/IsErasedAllowParameterSubtype.kt +++ b/compiler/testData/diagnostics/tests/cast/IsErasedAllowParameterSubtype.kt @@ -3,5 +3,5 @@ open class A class B : A() -fun ff(l: Collection) = l is List +fun ff(l: MutableCollection) = l is MutableList diff --git a/compiler/testData/diagnostics/tests/cast/IsErasedAllowSameClassParameter.kt b/compiler/testData/diagnostics/tests/cast/IsErasedAllowSameClassParameter.kt index 66f5125f9d3..d8986f1938f 100644 --- a/compiler/testData/diagnostics/tests/cast/IsErasedAllowSameClassParameter.kt +++ b/compiler/testData/diagnostics/tests/cast/IsErasedAllowSameClassParameter.kt @@ -1,3 +1,3 @@ -fun ff(l: Collection) = l is List +fun ff(l: MutableCollection) = l is MutableList diff --git a/compiler/testData/diagnostics/tests/cast/IsErasedAllowSameParameterParameter.kt b/compiler/testData/diagnostics/tests/cast/IsErasedAllowSameParameterParameter.kt index 84ebcbc217d..3d4a4878b4b 100644 --- a/compiler/testData/diagnostics/tests/cast/IsErasedAllowSameParameterParameter.kt +++ b/compiler/testData/diagnostics/tests/cast/IsErasedAllowSameParameterParameter.kt @@ -1,3 +1,3 @@ -fun ff(l: Collection) = l is List +fun ff(l: MutableCollection) = l is MutableList diff --git a/compiler/testData/diagnostics/tests/cast/IsErasedDisallowFromAny.kt b/compiler/testData/diagnostics/tests/cast/IsErasedDisallowFromAny.kt index e60b7338913..1e01248664e 100644 --- a/compiler/testData/diagnostics/tests/cast/IsErasedDisallowFromAny.kt +++ b/compiler/testData/diagnostics/tests/cast/IsErasedDisallowFromAny.kt @@ -1,2 +1,2 @@ -fun ff(l: Any) = l is List +fun ff(l: Any) = l is MutableList diff --git a/compiler/testData/diagnostics/tests/cast/IsErasedDisallowFromOut.kt b/compiler/testData/diagnostics/tests/cast/IsErasedDisallowFromOut.kt index 23f269c0eb4..cf4ea9e6946 100644 --- a/compiler/testData/diagnostics/tests/cast/IsErasedDisallowFromOut.kt +++ b/compiler/testData/diagnostics/tests/cast/IsErasedDisallowFromOut.kt @@ -1,2 +1,2 @@ -fun f(a : List) = a is List +fun f(a : MutableList) = a is MutableList diff --git a/compiler/testData/diagnostics/tests/cast/IsErasedStar.kt b/compiler/testData/diagnostics/tests/cast/IsErasedStar.kt index a315b2c6b9a..0143c3643ff 100644 --- a/compiler/testData/diagnostics/tests/cast/IsErasedStar.kt +++ b/compiler/testData/diagnostics/tests/cast/IsErasedStar.kt @@ -1,2 +1,2 @@ -fun ff(l: Any) = l is List<*> +fun ff(l: Any) = l is MutableList<*> diff --git a/compiler/testData/diagnostics/tests/cast/WhenErasedDisallowFromAny.kt b/compiler/testData/diagnostics/tests/cast/WhenErasedDisallowFromAny.kt index ccc6101725c..32a378d94a3 100644 --- a/compiler/testData/diagnostics/tests/cast/WhenErasedDisallowFromAny.kt +++ b/compiler/testData/diagnostics/tests/cast/WhenErasedDisallowFromAny.kt @@ -1,5 +1,5 @@ fun ff(l: Any) = when(l) { - is List -> 1 + is MutableList -> 1 else 2 }