From accd48de8c6d4bc2c52113088ac75d05d7e2ee82 Mon Sep 17 00:00:00 2001 From: "Denis.Zharkov" Date: Fri, 14 May 2021 14:39:24 +0300 Subject: [PATCH 1/4] FIR: Properly deserialize upper bounds of classes type parameters ^KT-46661 Fixed --- .../testData/builtIns/kotlin-ranges.txt | 2 +- .../testData/builtIns/kotlin.txt | 8 +++---- .../resolve/inference/kt40131.fir.txt | 2 +- .../testData/resolve/inference/kt40131.kt | 2 +- .../deserialization/FirTypeDeserializer.kt | 2 +- .../tests/classLiteral/smartCast.fir.kt | 23 ------------------- .../tests/classLiteral/smartCast.kt | 1 + .../duplicateJvmSignature/missingNames.fir.kt | 8 +++---- .../tests/enum/enumInheritance.fir.kt | 3 ++- .../diagnostics/tests/enum/enumInheritance.kt | 1 + .../tests/enum/enumWithEmptyName.kt | 3 ++- .../inference/capturedTypesInSelfType.fir.kt | 8 ------- .../inference/capturedTypesInSelfType.kt | 1 + .../tests/recovery/namelessMembers.kt | 3 ++- .../namelessToplevelDeclarations.fir.kt | 2 +- .../checker/recovery/namelessMembers.fir.kt | 2 +- .../namelessToplevelDeclarations.fir.kt | 2 +- 17 files changed, 24 insertions(+), 49 deletions(-) delete mode 100644 compiler/testData/diagnostics/tests/classLiteral/smartCast.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.fir.kt diff --git a/compiler/fir/analysis-tests/testData/builtIns/kotlin-ranges.txt b/compiler/fir/analysis-tests/testData/builtIns/kotlin-ranges.txt index f318e3424d7..d2f82ba2d5f 100644 --- a/compiler/fir/analysis-tests/testData/builtIns/kotlin-ranges.txt +++ b/compiler/fir/analysis-tests/testData/builtIns/kotlin-ranges.txt @@ -81,7 +81,7 @@ public final class CharRange : R|kotlin/ranges/CharProgression|, R|kotlin/ranges } -public abstract interface ClosedRange : R|kotlin/Any| { +public abstract interface ClosedRange|> : R|kotlin/Any| { public open operator fun contains(value: R|T|): R|kotlin/Boolean| public open fun isEmpty(): R|kotlin/Boolean| diff --git a/compiler/fir/analysis-tests/testData/builtIns/kotlin.txt b/compiler/fir/analysis-tests/testData/builtIns/kotlin.txt index acb744e020f..96197f98cc8 100644 --- a/compiler/fir/analysis-tests/testData/builtIns/kotlin.txt +++ b/compiler/fir/analysis-tests/testData/builtIns/kotlin.txt @@ -12,9 +12,9 @@ public final fun doubleArrayOf(vararg elements: R|kotlin/DoubleArray|): R|kotlin public final inline fun emptyArray(): R|kotlin/Array| -@R|kotlin/SinceKotlin|(version = String(1.1)) public final inline fun enumValueOf(name: R|kotlin/String|): R|T| +@R|kotlin/SinceKotlin|(version = String(1.1)) public final inline fun |> enumValueOf(name: R|kotlin/String|): R|T| -@R|kotlin/SinceKotlin|(version = String(1.1)) public final inline fun enumValues(): R|kotlin/Array| +@R|kotlin/SinceKotlin|(version = String(1.1)) public final inline fun |> enumValues(): R|kotlin/Array| public final fun floatArrayOf(vararg elements: R|kotlin/FloatArray|): R|kotlin/FloatArray| @@ -529,7 +529,7 @@ public final class DoubleArray : R|kotlin/Any|, R|kotlin/Cloneable|, R|java/io/S } -public abstract class Enum : R|kotlin/Comparable|, R|java/io/Serializable| { +public abstract class Enum|> : R|kotlin/Comparable|, R|java/io/Serializable| { public final companion object Companion : R|kotlin/Any| { private constructor(): R|kotlin/Enum.Companion| @@ -551,7 +551,7 @@ public abstract class Enum : R|kotlin/Comparable|, R|java/io/Serializable| public final val ordinal: R|kotlin/Int| public get(): R|kotlin/Int| - public constructor(name: R|kotlin/String| = STUB, ordinal: R|kotlin/Int| = STUB): R|kotlin/Enum| + public constructor|>(name: R|kotlin/String| = STUB, ordinal: R|kotlin/Int| = STUB): R|kotlin/Enum| } diff --git a/compiler/fir/analysis-tests/testData/resolve/inference/kt40131.fir.txt b/compiler/fir/analysis-tests/testData/resolve/inference/kt40131.fir.txt index 416747f45b3..2b8a279d102 100644 --- a/compiler/fir/analysis-tests/testData/resolve/inference/kt40131.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/inference/kt40131.fir.txt @@ -5,7 +5,7 @@ FILE: kt40131.kt } public final val |> R|T|.myJava1: R|java/lang/Class<*>| public get(): R|java/lang/Class<*>| { - ^ this@R|/myJava1|.R|/javaImpl| + ^ this@R|/myJava1|.R|/javaImpl| } public final val |> R|T|.myJava2: R|java/lang/Class| public get(): R|java/lang/Class| { diff --git a/compiler/fir/analysis-tests/testData/resolve/inference/kt40131.kt b/compiler/fir/analysis-tests/testData/resolve/inference/kt40131.kt index 5f0d88a4ab5..daba2e84409 100644 --- a/compiler/fir/analysis-tests/testData/resolve/inference/kt40131.kt +++ b/compiler/fir/analysis-tests/testData/resolve/inference/kt40131.kt @@ -6,7 +6,7 @@ val KClass.javaImpl: Class get() = null!! val > T.myJava1: Class<*> - get() = ")!>javaImpl + get() = ")!>javaImpl val > T.myJava2: Class get() = ")!>javaImpl diff --git a/compiler/fir/fir-deserialization/src/org/jetbrains/kotlin/fir/deserialization/FirTypeDeserializer.kt b/compiler/fir/fir-deserialization/src/org/jetbrains/kotlin/fir/deserialization/FirTypeDeserializer.kt index f125aee59ad..be0642e09c2 100644 --- a/compiler/fir/fir-deserialization/src/org/jetbrains/kotlin/fir/deserialization/FirTypeDeserializer.kt +++ b/compiler/fir/fir-deserialization/src/org/jetbrains/kotlin/fir/deserialization/FirTypeDeserializer.kt @@ -80,7 +80,7 @@ class FirTypeDeserializer( for ((index, proto) in typeParameterProtos.withIndex()) { val builder = builders[index] builder.apply { - proto.upperBoundList.mapTo(bounds) { + proto.upperBounds(typeTable).mapTo(bounds) { buildResolvedTypeRef { type = type(it) } } addDefaultBoundIfNecessary() diff --git a/compiler/testData/diagnostics/tests/classLiteral/smartCast.fir.kt b/compiler/testData/diagnostics/tests/classLiteral/smartCast.fir.kt deleted file mode 100644 index 7ab9924cefa..00000000000 --- a/compiler/testData/diagnostics/tests/classLiteral/smartCast.fir.kt +++ /dev/null @@ -1,23 +0,0 @@ -// KT-16291 Smart cast doesn't work when getting class of instance - -import kotlin.reflect.KClass - -class Foo { - override fun equals(other: Any?): Boolean { - if (this === other) return true - if (other === null || other::class != this::class) return false - - return true - } -} - -fun test(f: Foo?): KClass? = if (f != null) f::class else null - -fun test2(): KClass? { - var f: Foo? = null - if (f != null) { - run { f = null } - return f::class - } - return null -} diff --git a/compiler/testData/diagnostics/tests/classLiteral/smartCast.kt b/compiler/testData/diagnostics/tests/classLiteral/smartCast.kt index 0bae9c28f6d..dd50fd47ea5 100644 --- a/compiler/testData/diagnostics/tests/classLiteral/smartCast.kt +++ b/compiler/testData/diagnostics/tests/classLiteral/smartCast.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // KT-16291 Smart cast doesn't work when getting class of instance import kotlin.reflect.KClass diff --git a/compiler/testData/diagnostics/tests/duplicateJvmSignature/missingNames.fir.kt b/compiler/testData/diagnostics/tests/duplicateJvmSignature/missingNames.fir.kt index 9f5dda53c4d..8cfced5f4b5 100644 --- a/compiler/testData/diagnostics/tests/duplicateJvmSignature/missingNames.fir.kt +++ b/compiler/testData/diagnostics/tests/duplicateJvmSignature/missingNames.fir.kt @@ -21,9 +21,9 @@ interface { } -enum class { +enum class { -} +} annotation class { @@ -48,9 +48,9 @@ class Outer { } - enum class { + enum class { - } + } annotation class { diff --git a/compiler/testData/diagnostics/tests/enum/enumInheritance.fir.kt b/compiler/testData/diagnostics/tests/enum/enumInheritance.fir.kt index 734bc3314d7..6fb7a3df010 100644 --- a/compiler/testData/diagnostics/tests/enum/enumInheritance.fir.kt +++ b/compiler/testData/diagnostics/tests/enum/enumInheritance.fir.kt @@ -1,7 +1,8 @@ +// COMPARE_WITH_LIGHT_TREE // FILE: test.kt enum class MyEnum(): MyClass() {} enum class MyEnum2(): MyTrait {} -enum class MyEnum3(): MyEnumBase() {} +enum class MyEnum3(): MyEnumBase() {} open class MyClass() {} diff --git a/compiler/testData/diagnostics/tests/enum/enumInheritance.kt b/compiler/testData/diagnostics/tests/enum/enumInheritance.kt index 60e7887cefc..9d81a0eb1e2 100644 --- a/compiler/testData/diagnostics/tests/enum/enumInheritance.kt +++ b/compiler/testData/diagnostics/tests/enum/enumInheritance.kt @@ -1,3 +1,4 @@ +// COMPARE_WITH_LIGHT_TREE // FILE: test.kt enum class MyEnum(): MyClass() {} enum class MyEnum2(): MyTrait {} diff --git a/compiler/testData/diagnostics/tests/enum/enumWithEmptyName.kt b/compiler/testData/diagnostics/tests/enum/enumWithEmptyName.kt index e3faf0c980c..f9b3d26b726 100644 --- a/compiler/testData/diagnostics/tests/enum/enumWithEmptyName.kt +++ b/compiler/testData/diagnostics/tests/enum/enumWithEmptyName.kt @@ -1,3 +1,4 @@ // FIR_IDENTICAL +// FIR_IDE_IGNORE enum class { -} \ No newline at end of file +} diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.fir.kt b/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.fir.kt deleted file mode 100644 index df80c1c4113..00000000000 --- a/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.fir.kt +++ /dev/null @@ -1,8 +0,0 @@ -// WITH_RUNTIME -// !DIAGNOSTICS: -UNUSED_VARIABLE - -class Foo>(val values: Array) - -fun foo(x: Array>) { - val y = Foo(x) -} diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.kt b/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.kt index 429a229c0c3..9f98d9373b1 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // WITH_RUNTIME // !DIAGNOSTICS: -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/recovery/namelessMembers.kt b/compiler/testData/diagnostics/tests/recovery/namelessMembers.kt index ca24786d62f..75fdd6de850 100644 --- a/compiler/testData/diagnostics/tests/recovery/namelessMembers.kt +++ b/compiler/testData/diagnostics/tests/recovery/namelessMembers.kt @@ -1,4 +1,5 @@ // FIR_IDENTICAL +// FIR_IDE_IGNORE // !DIAGNOSTICS: -REDECLARATION -DUPLICATE_CLASS_NAMES class C { @@ -15,4 +16,4 @@ class C { class C1<in> {} -class C2(val) {} \ No newline at end of file +class C2(val) {} diff --git a/compiler/testData/diagnostics/tests/recovery/namelessToplevelDeclarations.fir.kt b/compiler/testData/diagnostics/tests/recovery/namelessToplevelDeclarations.fir.kt index 54973f749d1..cd991c43268 100644 --- a/compiler/testData/diagnostics/tests/recovery/namelessToplevelDeclarations.fir.kt +++ b/compiler/testData/diagnostics/tests/recovery/namelessToplevelDeclarations.fir.kt @@ -21,6 +21,6 @@ object { } -enum class {} +enum class {} annotation class {} diff --git a/idea/testData/checker/recovery/namelessMembers.fir.kt b/idea/testData/checker/recovery/namelessMembers.fir.kt index 4575656dc66..94558750fe7 100644 --- a/idea/testData/checker/recovery/namelessMembers.fir.kt +++ b/idea/testData/checker/recovery/namelessMembers.fir.kt @@ -7,7 +7,7 @@ class C { class {} - enum class {} + enum class {} } class C1<in> {} diff --git a/idea/testData/checker/recovery/namelessToplevelDeclarations.fir.kt b/idea/testData/checker/recovery/namelessToplevelDeclarations.fir.kt index 0ef27de8c1f..ea27e8ab56c 100644 --- a/idea/testData/checker/recovery/namelessToplevelDeclarations.fir.kt +++ b/idea/testData/checker/recovery/namelessToplevelDeclarations.fir.kt @@ -19,6 +19,6 @@ object { } -enum class {} +enum class {} annotation class {} From fe1d540c95bb395fe5e8bcac7c162c6c19b8e8ea Mon Sep 17 00:00:00 2001 From: "Denis.Zharkov" Date: Mon, 24 May 2021 12:18:44 +0300 Subject: [PATCH 2/4] Remove WITH_NEW_INFERENCE directive from all tests This directive anyway does not make test run twice with OI, and with NI It only once run the test with specific settings (// LANGUAGE) and ignores irrelevant (OI or NI tags) --- .../testData/resolve/inference/lambdasReturns.kt | 1 - .../foreignAnnotationsTests/java8Tests/jsr305/typeArguments.kt | 1 - compiler/testData/diagnostics/nonStableParameterNames/test.kt | 1 - compiler/testData/diagnostics/tests/AutoCreatedIt.fir.kt | 1 - compiler/testData/diagnostics/tests/AutoCreatedIt.kt | 1 - compiler/testData/diagnostics/tests/Basic.fir.kt | 1 - compiler/testData/diagnostics/tests/Basic.kt | 1 - .../diagnostics/tests/BinaryCallsOnNullableValues.fir.kt | 1 - .../testData/diagnostics/tests/BinaryCallsOnNullableValues.kt | 1 - compiler/testData/diagnostics/tests/Bounds.fir.kt | 1 - compiler/testData/diagnostics/tests/Bounds.kt | 1 - .../testData/diagnostics/tests/CompareToWithErrorType.fir.kt | 1 - compiler/testData/diagnostics/tests/CompareToWithErrorType.kt | 1 - .../diagnostics/tests/DefaultValuesTypechecking.fir.kt | 1 - .../testData/diagnostics/tests/DefaultValuesTypechecking.kt | 1 - .../tests/DeprecatedUnaryOperatorConventions.fir.kt | 1 - .../diagnostics/tests/DeprecatedUnaryOperatorConventions.kt | 1 - compiler/testData/diagnostics/tests/EnumEntryAsType.fir.kt | 1 - compiler/testData/diagnostics/tests/EnumEntryAsType.kt | 1 - .../diagnostics/tests/FunctionCalleeExpressions.fir.kt | 1 - .../testData/diagnostics/tests/FunctionCalleeExpressions.kt | 1 - compiler/testData/diagnostics/tests/FunctionReturnTypes.fir.kt | 1 - compiler/testData/diagnostics/tests/FunctionReturnTypes.kt | 1 - .../diagnostics/tests/InvokeAndRecursiveResolve.fir.kt | 1 - .../testData/diagnostics/tests/InvokeAndRecursiveResolve.kt | 1 - compiler/testData/diagnostics/tests/Nullability.fir.kt | 1 - compiler/testData/diagnostics/tests/Nullability.kt | 1 - compiler/testData/diagnostics/tests/PackageQualified.fir.kt | 1 - compiler/testData/diagnostics/tests/PackageQualified.kt | 1 - .../testData/diagnostics/tests/QualifiedExpressions.fir.kt | 1 - compiler/testData/diagnostics/tests/QualifiedExpressions.kt | 1 - .../testData/diagnostics/tests/RecursiveTypeInference.fir.kt | 1 - compiler/testData/diagnostics/tests/RecursiveTypeInference.kt | 1 - compiler/testData/diagnostics/tests/ReserveYield.fir.kt | 1 - compiler/testData/diagnostics/tests/ReserveYield.kt | 1 - .../testData/diagnostics/tests/ResolveOfJavaGenerics.fir.kt | 1 - compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt | 1 - compiler/testData/diagnostics/tests/ResolveToJava.fir.kt | 1 - compiler/testData/diagnostics/tests/ResolveToJava.kt | 1 - .../diagnostics/tests/SafeCallNonNullReceiverReturnNull.fir.kt | 1 - .../diagnostics/tests/SafeCallNonNullReceiverReturnNull.kt | 1 - compiler/testData/diagnostics/tests/SafeCallUnknownType.fir.kt | 1 - compiler/testData/diagnostics/tests/SafeCallUnknownType.kt | 1 - .../testData/diagnostics/tests/StarsInFunctionCalls.fir.kt | 1 - compiler/testData/diagnostics/tests/StarsInFunctionCalls.kt | 1 - compiler/testData/diagnostics/tests/TypeInference.fir.kt | 1 - compiler/testData/diagnostics/tests/TypeInference.kt | 1 - compiler/testData/diagnostics/tests/Variance.fir.kt | 1 - compiler/testData/diagnostics/tests/Variance.kt | 1 - .../tests/annotations/AmbigiousAnnotationConstructor.fir.kt | 1 - .../tests/annotations/AmbigiousAnnotationConstructor.kt | 1 - .../tests/annotations/annotationRenderingInTypes.fir.kt | 1 - .../tests/annotations/annotationRenderingInTypes.kt | 1 - .../diagnostics/tests/annotations/kt1860-negative.fir.kt | 1 - .../testData/diagnostics/tests/annotations/kt1860-negative.kt | 1 - .../diagnostics/tests/annotations/kt1860-positive.fir.kt | 1 - .../testData/diagnostics/tests/annotations/kt1860-positive.kt | 1 - .../diagnostics/tests/annotations/options/functions.fir.kt | 1 - .../diagnostics/tests/annotations/options/functions.kt | 1 - .../diagnostics/tests/annotations/options/targets/field.fir.kt | 1 - .../diagnostics/tests/annotations/options/targets/field.kt | 1 - .../tests/annotations/rendering/memberProjectedOut.fir.kt | 1 - .../tests/annotations/rendering/memberProjectedOut.kt | 1 - .../rendering/typeMismatchDueToTypeProjections.fir.kt | 1 - .../annotations/rendering/typeMismatchDueToTypeProjections.kt | 1 - .../callableReference/bound/reservedExpressionSyntax3.fir.kt | 1 - .../tests/callableReference/bound/reservedExpressionSyntax3.kt | 1 - .../constraintFromLHSWithCorrectDirection.fir.kt | 1 - .../callableReference/constraintFromLHSWithCorrectDirection.kt | 1 - .../expectedTypeAsSubtypeOfFunctionType.fir.kt | 1 - .../callableReference/expectedTypeAsSubtypeOfFunctionType.kt | 1 - .../tests/callableReference/function/extensionToSupertype.kt | 1 - .../tests/callableReference/function/lhsNotAClass.fir.kt | 1 - .../tests/callableReference/function/lhsNotAClass.kt | 1 - .../tests/callableReference/function/unresolved.fir.kt | 1 - .../diagnostics/tests/callableReference/function/unresolved.kt | 1 - ...functionReferenceWithDefaultValueAsOtherFunctionType.fir.kt | 1 - .../functionReferenceWithDefaultValueAsOtherFunctionType.kt | 1 - .../generic/argumentAndReturnExpectedType.fir.kt | 1 - .../callableReference/generic/argumentAndReturnExpectedType.kt | 1 - .../callableReference/generic/explicitTypeArguments.fir.kt | 1 - .../tests/callableReference/generic/explicitTypeArguments.kt | 1 - .../callableReference/generic/genericExtensionFunction.fir.kt | 1 - .../callableReference/generic/genericExtensionFunction.kt | 1 - .../generic/genericFunctionsWithNullableTypes.fir.kt | 1 - .../generic/genericFunctionsWithNullableTypes.kt | 1 - .../callableReference/generic/nestedCallWithOverload.fir.kt | 1 - .../tests/callableReference/generic/nestedCallWithOverload.kt | 1 - .../generic/resolutionGenericCallableWithNullableTypes.fir.kt | 1 - .../generic/resolutionGenericCallableWithNullableTypes.kt | 1 - .../generic/resolutionWithGenericCallable.fir.kt | 1 - .../callableReference/generic/resolutionWithGenericCallable.kt | 1 - .../testData/diagnostics/tests/callableReference/kt25433.kt | 1 - .../diagnostics/tests/callableReference/kt34314.fir.kt | 1 - .../testData/diagnostics/tests/callableReference/kt34314.kt | 1 - .../diagnostics/tests/callableReference/kt34314_lambda.fir.kt | 1 - .../diagnostics/tests/callableReference/kt34314_lambda.kt | 1 - .../diagnostics/tests/callableReference/kt37530.fir.kt | 1 - .../testData/diagnostics/tests/callableReference/kt37530.kt | 1 - .../callableReference/property/kt7945_unrelatedClass.fir.kt | 1 - .../tests/callableReference/property/kt7945_unrelatedClass.kt | 1 - .../tests/callableReference/resolve/byGenericArgType.fir.kt | 1 - .../tests/callableReference/resolve/byGenericArgType.kt | 1 - .../resolve/intersectionTypeOverloadWithWrongParameter.fir.kt | 1 - .../resolve/intersectionTypeOverloadWithWrongParameter.kt | 1 - .../tests/callableReference/resolve/withGenericFun.fir.kt | 1 - .../tests/callableReference/resolve/withGenericFun.kt | 1 - .../callableReference/resolve/withPlaceholderTypes.fir.kt | 1 - .../tests/callableReference/resolve/withPlaceholderTypes.kt | 1 - .../tests/callableReference/suspendCallableReference.kt | 1 - .../diagnostics/tests/callableReference/typealiases.kt | 1 - .../testData/diagnostics/tests/cast/AsInBinaryUnary.fir.kt | 1 - compiler/testData/diagnostics/tests/cast/AsInBinaryUnary.kt | 1 - .../diagnostics/tests/cast/AsInBlockWithReturnType.fir.kt | 1 - .../testData/diagnostics/tests/cast/AsInBlockWithReturnType.kt | 1 - .../testData/diagnostics/tests/cast/UselessSafeCast.fir.kt | 1 - compiler/testData/diagnostics/tests/cast/UselessSafeCast.kt | 1 - compiler/testData/diagnostics/tests/cast/kt15161.fir.kt | 1 - compiler/testData/diagnostics/tests/cast/kt15161.kt | 1 - .../diagnostics/tests/checkArguments/SpreadVarargs.fir.kt | 1 - .../testData/diagnostics/tests/checkArguments/SpreadVarargs.kt | 1 - .../tests/checkArguments/arrayAccessSetTooManyArgs.fir.kt | 1 - .../tests/checkArguments/arrayAccessSetTooManyArgs.kt | 1 - .../diagnostics/tests/checkArguments/booleanExpressions.fir.kt | 1 - .../diagnostics/tests/checkArguments/booleanExpressions.kt | 1 - .../tests/checkArguments/kt1897_diagnostic_part.fir.kt | 1 - .../diagnostics/tests/checkArguments/kt1897_diagnostic_part.kt | 1 - .../diagnostics/tests/checkArguments/overloadedFunction.fir.kt | 1 - .../diagnostics/tests/checkArguments/overloadedFunction.kt | 1 - .../diagnostics/tests/checkArguments/twoLambdasFunction.fir.kt | 1 - .../diagnostics/tests/checkArguments/twoLambdasFunction.kt | 1 - compiler/testData/diagnostics/tests/checkType.fir.kt | 1 - compiler/testData/diagnostics/tests/checkType.kt | 1 - .../tests/collectionLiterals/argumentsOfAnnotation.fir.kt | 1 - .../tests/collectionLiterals/argumentsOfAnnotation.kt | 1 - .../collectionLiterals/argumentsOfAnnotationWithKClass.fir.kt | 1 - .../collectionLiterals/argumentsOfAnnotationWithKClass.kt | 1 - .../tests/collectionLiterals/basicCollectionLiterals.fir.kt | 1 - .../tests/collectionLiterals/basicCollectionLiterals.kt | 1 - .../collectionLiteralsOutsideOfAnnotations.fir.kt | 1 - .../collectionLiteralsOutsideOfAnnotations.kt | 1 - .../collectionLiterals/collectionLiteralsWithVarargs.fir.kt | 1 - .../tests/collectionLiterals/collectionLiteralsWithVarargs.kt | 1 - .../tests/collectionLiterals/defaultValuesInAnnotation.fir.kt | 1 - .../tests/collectionLiterals/defaultValuesInAnnotation.kt | 1 - .../tests/collectionLiterals/noCollectionLiterals.fir.kt | 1 - .../tests/collectionLiterals/noCollectionLiterals.kt | 1 - .../UninitializedOrReassignedVariables.fir.kt | 1 - .../controlFlowAnalysis/UninitializedOrReassignedVariables.kt | 1 - .../tests/controlFlowAnalysis/elvisNotProcessed.fir.kt | 1 - .../diagnostics/tests/controlFlowAnalysis/elvisNotProcessed.kt | 1 - .../tests/controlFlowAnalysis/fieldAsClassDelegate.fir.kt | 1 - .../tests/controlFlowAnalysis/fieldAsClassDelegate.kt | 1 - .../diagnostics/tests/controlFlowAnalysis/kt10805.fir.kt | 1 - .../testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt | 1 - .../tests/controlFlowAnalysis/nonLocalReturnUnreachable.kt | 1 - .../ForLoopWithExtensionIteratorOnNullable.kt | 1 - .../tests/controlStructures/ifElseIntersection.fir.kt | 1 - .../diagnostics/tests/controlStructures/ifElseIntersection.kt | 1 - .../tests/controlStructures/ifInResultOfLambda.fir.kt | 1 - .../diagnostics/tests/controlStructures/ifInResultOfLambda.kt | 1 - .../tests/controlStructures/ifToAnyDiscriminatingUsages.fir.kt | 1 - .../tests/controlStructures/ifToAnyDiscriminatingUsages.kt | 1 - .../tests/controlStructures/ifWhenWithoutElse.fir.kt | 1 - .../diagnostics/tests/controlStructures/ifWhenWithoutElse.kt | 1 - .../tests/controlStructures/improperElseInExpression.fir.kt | 1 - .../tests/controlStructures/improperElseInExpression.kt | 1 - .../testData/diagnostics/tests/controlStructures/kt1075.fir.kt | 1 - .../testData/diagnostics/tests/controlStructures/kt1075.kt | 1 - .../testData/diagnostics/tests/controlStructures/kt4310.fir.kt | 1 - .../testData/diagnostics/tests/controlStructures/kt4310.kt | 1 - .../kt770.fir.kt351.fir.kt735_StatementType.fir.kt | 1 - .../controlStructures/kt770.kt351.kt735_StatementType.fir.kt | 1 - .../tests/controlStructures/kt770.kt351.kt735_StatementType.kt | 1 - .../tests/controlStructures/lambdasInExclExclAndElvis.fir.kt | 1 - .../tests/controlStructures/lambdasInExclExclAndElvis.kt | 1 - .../controlStructures/specialConstructsAndPlatformTypes.fir.kt | 1 - .../controlStructures/specialConstructsAndPlatformTypes.kt | 1 - .../diagnostics/tests/controlStructures/tryReturnType.fir.kt | 1 - .../diagnostics/tests/controlStructures/tryReturnType.kt | 1 - .../tests/controlStructures/typeInferenceForExclExcl.fir.kt | 1 - .../tests/controlStructures/typeInferenceForExclExcl.kt | 1 - .../tests/controlStructures/whenInResultOfLambda.fir.kt | 1 - .../tests/controlStructures/whenInResultOfLambda.kt | 1 - .../testData/diagnostics/tests/cyclicHierarchy/kt303.fir.kt | 1 - compiler/testData/diagnostics/tests/cyclicHierarchy/kt303.kt | 1 - .../tests/dataClasses/extensionComponentsOnNullable.fir.kt | 1 - .../tests/dataClasses/extensionComponentsOnNullable.kt | 1 - .../tests/dataFlowInfoTraversal/BinaryExpression.fir.kt | 1 - .../tests/dataFlowInfoTraversal/BinaryExpression.kt | 1 - .../tests/dataFlowInfoTraversal/ObjectExpression.fir.kt | 1 - .../tests/dataFlowInfoTraversal/ObjectExpression.kt | 1 - .../diagnostics/tests/dataFlowInfoTraversal/Return.fir.kt | 1 - .../testData/diagnostics/tests/dataFlowInfoTraversal/Return.kt | 1 - .../declarationChecks/ComponentFunctionReturnTypeMismatch.kt | 1 - .../tests/declarationChecks/MultiDeclarationErrors.fir.kt | 1 - .../tests/declarationChecks/MultiDeclarationErrors.kt | 1 - .../FolLoopTypeComponentTypeMismatch.kt | 1 - .../ForLoopMissingLoopParameter.fir.kt | 1 - .../destructuringDeclarations/ForLoopMissingLoopParameter.kt | 1 - .../destructuringDeclarations/underscore.fir.kt | 1 - .../declarationChecks/destructuringDeclarations/underscore.kt | 1 - .../localVariablesWithTypeParameters_1_3.fir.kt | 1 - .../declarationChecks/localVariablesWithTypeParameters_1_3.kt | 1 - .../localVariablesWithTypeParameters_1_4.fir.kt | 1 - .../declarationChecks/localVariablesWithTypeParameters_1_4.kt | 1 - .../declarationChecks/namedFunAsLastExpressionInBlock.fir.kt | 1 - .../tests/declarationChecks/namedFunAsLastExpressionInBlock.kt | 1 - .../inference/differentDelegatedExpressions.fir.kt | 1 - .../inference/differentDelegatedExpressions.kt | 1 - .../tests/delegatedProperty/inference/extensionProperty.fir.kt | 1 - .../tests/delegatedProperty/inference/extensionProperty.kt | 1 - .../inference/genericMethodInGenericClass.fir.kt | 1 - .../delegatedProperty/inference/genericMethodInGenericClass.kt | 1 - .../tests/delegatedProperty/inference/genericMethods.fir.kt | 1 - .../tests/delegatedProperty/inference/genericMethods.kt | 1 - .../inference/manyIncompleteCandidates.fir.kt | 1 - .../delegatedProperty/inference/manyIncompleteCandidates.kt | 1 - .../inference/noErrorsForImplicitConstraints.fir.kt | 1 - .../inference/noErrorsForImplicitConstraints.kt | 1 - .../inference/noExpectedTypeForSupertypeConstraint.fir.kt | 1 - .../inference/noExpectedTypeForSupertypeConstraint.kt | 1 - .../tests/delegatedProperty/propertyDefferedType.fir.kt | 1 - .../tests/delegatedProperty/propertyDefferedType.kt | 1 - .../provideDelegate/commonCaseForInference.fir.kt | 1 - .../provideDelegate/commonCaseForInference.kt | 1 - .../delegatedProperty/provideDelegate/hostAndReceiver2.fir.kt | 1 - .../delegatedProperty/provideDelegate/hostAndReceiver2.kt | 1 - .../provideDelegate/inferenceFromReceiver1.fir.kt | 1 - .../provideDelegate/inferenceFromReceiver1.kt | 1 - .../provideDelegate/inferenceFromReceiver2.fir.kt | 1 - .../provideDelegate/inferenceFromReceiver2.kt | 1 - .../provideDelegate/noOperatorModifierOnProvideDelegate.fir.kt | 1 - .../provideDelegate/noOperatorModifierOnProvideDelegate.kt | 1 - .../tests/delegatedProperty/provideDelegate/setValue.fir.kt | 1 - .../tests/delegatedProperty/provideDelegate/setValue.kt | 1 - .../provideDelegate/unsupportedOperatorProvideDelegate.fir.kt | 1 - .../provideDelegate/unsupportedOperatorProvideDelegate.kt | 1 - .../diagnostics/tests/delegatedProperty/recursiveType.fir.kt | 1 - .../diagnostics/tests/delegatedProperty/recursiveType.kt | 1 - .../tests/delegatedProperty/setterThisTypeMismatch.kt | 1 - .../tests/delegatedProperty/thisOfNothingNullableType.kt | 1 - .../diagnostics/tests/delegatedProperty/thisOfNothingType.kt | 1 - .../delegatedProperty/typeMismatchForGetReturnType.fir.kt | 1 - .../tests/delegatedProperty/typeMismatchForGetReturnType.kt | 1 - .../tests/delegatedProperty/typeMismatchForSetParameter.kt | 1 - .../tests/delegatedProperty/typeMismatchForThisGetParameter.kt | 1 - .../diagnostics/tests/delegation/DelegationExpectedType.fir.kt | 1 - .../diagnostics/tests/delegation/DelegationExpectedType.kt | 1 - .../tests/delegation/clashes/finalMemberOverridden.fir.kt | 1 - .../tests/delegation/clashes/finalMemberOverridden.kt | 1 - .../memberHidesSupertypeOverride/severalDelegates.fir.kt | 1 - .../memberHidesSupertypeOverride/severalDelegates.kt | 1 - .../tests/deparenthesize/checkDeparenthesizedType.fir.kt | 1 - .../tests/deparenthesize/checkDeparenthesizedType.kt | 1 - .../diagnostics/tests/enum/kt8972_cloneNotAllowed.fir.kt | 1 - .../testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt | 1 - .../testData/diagnostics/tests/evaluate/divisionByZero.fir.kt | 1 - compiler/testData/diagnostics/tests/evaluate/divisionByZero.kt | 1 - .../testData/diagnostics/tests/exposed/inaccessibleType.fir.kt | 1 - .../testData/diagnostics/tests/exposed/inaccessibleType.kt | 1 - .../diagnostics/tests/extensions/ExtensionFunctions.fir.kt | 1 - .../diagnostics/tests/extensions/ExtensionFunctions.kt | 1 - .../testData/diagnostics/tests/extensions/classObject.fir.kt | 1 - compiler/testData/diagnostics/tests/extensions/classObject.kt | 1 - .../tests/extensions/extensionMemberInClassObject.fir.kt | 1 - .../tests/extensions/extensionMemberInClassObject.kt | 1 - compiler/testData/diagnostics/tests/extensions/kt3563.fir.kt | 1 - compiler/testData/diagnostics/tests/extensions/kt3563.kt | 1 - .../tests/extensions/throwOutCandidatesByReceiver.fir.kt | 1 - .../tests/extensions/throwOutCandidatesByReceiver.kt | 1 - .../tests/extensions/throwOutCandidatesByReceiver2.fir.kt | 1 - .../tests/extensions/throwOutCandidatesByReceiver2.kt | 1 - .../diagnostics/tests/functionAsExpression/FunctionType.fir.kt | 1 - .../diagnostics/tests/functionAsExpression/FunctionType.kt | 1 - .../tests/functionAsExpression/InferenceParametersTypes.fir.kt | 1 - .../tests/functionAsExpression/InferenceParametersTypes.kt | 1 - .../tests/functionAsExpression/MissingParameterTypes.fir.kt | 1 - .../tests/functionAsExpression/MissingParameterTypes.kt | 1 - .../tests/functionAsExpression/ReceiverByExpectedType.fir.kt | 1 - .../tests/functionAsExpression/ReceiverByExpectedType.kt | 1 - .../tests/functionAsExpression/WithGenericParameters.fir.kt | 1 - .../tests/functionAsExpression/WithGenericParameters.kt | 1 - .../diagnostics/tests/functionLiterals/DeprecatedSyntax.fir.kt | 1 - .../diagnostics/tests/functionLiterals/DeprecatedSyntax.kt | 1 - .../ExpectedParameterTypeMismatchVariance.fir.kt | 1 - .../functionLiterals/ExpectedParameterTypeMismatchVariance.kt | 1 - .../functionLiterals/ExpectedParametersTypesMismatch.fir.kt | 1 - .../tests/functionLiterals/ExpectedParametersTypesMismatch.kt | 1 - .../tests/functionLiterals/LabeledFunctionLiterals.fir.kt | 1 - .../tests/functionLiterals/LabeledFunctionLiterals.kt | 1 - .../assignmentOperationInLambdaWithExpectedType.fir.kt | 1 - .../assignmentOperationInLambdaWithExpectedType.kt | 1 - .../destructuringInLambdas/complexInference.fir.kt | 1 - .../destructuringInLambdas/complexInference.kt | 1 - .../destructuringInLambdas/inferredFunctionalType.fir.kt | 1 - .../destructuringInLambdas/inferredFunctionalType.kt | 1 - .../destructuringInLambdas/noExpectedType.fir.kt | 1 - .../functionLiterals/destructuringInLambdas/noExpectedType.kt | 1 - .../destructuringInLambdas/redeclaration.fir.kt | 1 - .../functionLiterals/destructuringInLambdas/redeclaration.kt | 1 - .../functionLiterals/destructuringInLambdas/simple.fir.kt | 1 - .../tests/functionLiterals/destructuringInLambdas/simple.kt | 1 - .../functionLiterals/destructuringInLambdas/underscore.fir.kt | 1 - .../functionLiterals/destructuringInLambdas/underscore.kt | 1 - .../tests/functionLiterals/kt7383_starProjectedFunction.fir.kt | 1 - .../tests/functionLiterals/kt7383_starProjectedFunction.kt | 1 - .../functionLiterals/return/ForbiddenNonLocalReturnNoType.kt | 1 - .../functionLiterals/return/LocalReturnNoCoercionToUnit.fir.kt | 1 - .../functionLiterals/return/LocalReturnNoCoercionToUnit.kt | 1 - .../return/LocalReturnUnitAndDontCareType.fir.kt | 1 - .../functionLiterals/return/LocalReturnUnitAndDontCareType.kt | 1 - .../return/LocalReturnsWithExplicitReturnType.fir.kt | 1 - .../return/LocalReturnsWithExplicitReturnType.kt | 1 - .../tests/functionLiterals/return/NoCommonSystem.fir.kt | 1 - .../tests/functionLiterals/return/NoCommonSystem.kt | 1 - .../diagnostics/tests/functionLiterals/return/SmartCast.fir.kt | 1 - .../diagnostics/tests/functionLiterals/return/SmartCast.kt | 1 - .../tests/functionLiterals/returnNullWithReturn.fir.kt | 1 - .../diagnostics/tests/functionLiterals/returnNullWithReturn.kt | 1 - .../testData/diagnostics/tests/generics/Projections.fir.kt | 1 - compiler/testData/diagnostics/tests/generics/Projections.kt | 1 - .../tests/generics/capturedParameters/innerLocalClass.fir.kt | 1 - .../tests/generics/capturedParameters/innerLocalClass.kt | 1 - .../tests/generics/capturedParameters/localClass.fir.kt | 1 - .../tests/generics/capturedParameters/localClass.kt | 1 - .../tests/generics/capturedParameters/objectLiteral.fir.kt | 1 - .../tests/generics/capturedParameters/objectLiteral.kt | 1 - .../implicitArguments/fromSuperClassesLocal.fir.kt | 1 - .../innerClasses/implicitArguments/fromSuperClassesLocal.kt | 1 - .../implicitArguments/fromSuperClassesLocalInsideInner.fir.kt | 1 - .../implicitArguments/fromSuperClassesLocalInsideInner.kt | 1 - .../diagnostics/tests/generics/innerClasses/innerTP.fir.kt | 1 - .../diagnostics/tests/generics/innerClasses/innerTP.kt | 1 - .../tests/generics/innerClasses/innerUncheckedCast.fir.kt | 1 - .../tests/generics/innerClasses/innerUncheckedCast.kt | 1 - .../diagnostics/tests/generics/innerClasses/iterator.fir.kt | 1 - .../diagnostics/tests/generics/innerClasses/iterator.kt | 1 - .../tests/generics/innerClasses/qualifiedOuter.fir.kt | 1 - .../diagnostics/tests/generics/innerClasses/qualifiedOuter.kt | 1 - .../tests/generics/innerClasses/simpleOutUseSite.fir.kt | 1 - .../tests/generics/innerClasses/simpleOutUseSite.kt | 1 - compiler/testData/diagnostics/tests/generics/kt30590.fir.kt | 1 - compiler/testData/diagnostics/tests/generics/kt30590.kt | 1 - compiler/testData/diagnostics/tests/generics/kt34729.fir.kt | 1 - compiler/testData/diagnostics/tests/generics/kt34729.kt | 1 - .../tests/generics/multipleBoundsMemberScope/simple.fir.kt | 1 - .../tests/generics/multipleBoundsMemberScope/simple.kt | 1 - .../generics/nullability/expressionsBoundsViolation.fir.kt | 1 - .../tests/generics/nullability/expressionsBoundsViolation.kt | 1 - .../diagnostics/tests/generics/nullability/smartCasts.fir.kt | 1 - .../diagnostics/tests/generics/nullability/smartCasts.kt | 1 - .../tests/generics/nullability/smartCastsOnThis.fir.kt | 1 - .../diagnostics/tests/generics/nullability/smartCastsOnThis.kt | 1 - .../tests/generics/nullability/smartCastsValueArgument.fir.kt | 1 - .../tests/generics/nullability/smartCastsValueArgument.kt | 1 - .../tests/generics/nullability/tpBoundsViolation.fir.kt | 1 - .../tests/generics/nullability/tpBoundsViolation.kt | 1 - .../generics/nullability/tpBoundsViolationVariance.fir.kt | 1 - .../tests/generics/nullability/tpBoundsViolationVariance.kt | 1 - .../diagnostics/tests/generics/nullability/tpInBounds.fir.kt | 1 - .../diagnostics/tests/generics/nullability/tpInBounds.kt | 1 - .../tests/generics/nullability/useAsReceiver.fir.kt | 1 - .../diagnostics/tests/generics/nullability/useAsReceiver.kt | 1 - .../tests/generics/nullability/useAsValueArgument.fir.kt | 1 - .../tests/generics/nullability/useAsValueArgument.kt | 1 - .../diagnostics/tests/generics/projectionsScope/addAll.fir.kt | 1 - .../diagnostics/tests/generics/projectionsScope/addAll.kt | 1 - .../projectionsScope/extensionReceiverTypeMismatch.fir.kt | 1 - .../generics/projectionsScope/extensionReceiverTypeMismatch.kt | 1 - .../tests/generics/projectionsScope/inValueParameter.fir.kt | 1 - .../tests/generics/projectionsScope/inValueParameter.kt | 1 - .../diagnostics/tests/generics/projectionsScope/kt7296.fir.kt | 1 - .../diagnostics/tests/generics/projectionsScope/kt7296.kt | 1 - .../projectionsScope/multipleArgumentProjectedOut.fir.kt | 1 - .../generics/projectionsScope/multipleArgumentProjectedOut.kt | 1 - .../tests/generics/projectionsScope/platformSuperClass.fir.kt | 1 - .../tests/generics/projectionsScope/platformSuperClass.kt | 1 - .../generics/projectionsScope/projectedOutConventions.fir.kt | 1 - .../tests/generics/projectionsScope/projectedOutConventions.kt | 1 - .../generics/projectionsScope/projectedOutSmartCast.fir.kt | 1 - .../tests/generics/projectionsScope/projectedOutSmartCast.kt | 1 - .../generics/projectionsScope/starNullabilityRecursive.kt | 1 - .../generics/projectionsScope/typeMismatchConventions.fir.kt | 1 - .../tests/generics/projectionsScope/typeMismatchConventions.kt | 1 - .../generics/projectionsScope/typeMismatchInLambda.fir.kt | 1 - .../tests/generics/projectionsScope/typeMismatchInLambda.kt | 1 - .../tests/generics/projectionsScope/typeParameterBounds.fir.kt | 1 - .../tests/generics/projectionsScope/typeParameterBounds.kt | 1 - .../diagnostics/tests/generics/projectionsScope/varargs.fir.kt | 1 - .../diagnostics/tests/generics/projectionsScope/varargs.kt | 1 - .../diagnostics/tests/generics/protectedSuperCall.fir.kt | 1 - .../testData/diagnostics/tests/generics/protectedSuperCall.kt | 1 - .../diagnostics/tests/generics/starProjections/invalid.fir.kt | 1 - .../diagnostics/tests/generics/starProjections/invalid.kt | 1 - .../tests/generics/tpAsReified/CapturedAsReified.fir.kt | 1 - .../tests/generics/tpAsReified/CapturedAsReified.kt | 1 - .../tests/generics/tpAsReified/InConstructor.fir.kt | 1 - .../diagnostics/tests/generics/tpAsReified/InConstructor.kt | 1 - .../diagnostics/tests/generics/tpAsReified/InFunction.fir.kt | 1 - .../diagnostics/tests/generics/tpAsReified/InFunction.kt | 1 - .../generics/varProjection/setterNotProjectedOutAssign.fir.kt | 1 - .../generics/varProjection/setterNotProjectedOutAssign.kt | 1 - .../generics/varProjection/setterProjectedOutAssign.fir.kt | 1 - .../tests/generics/varProjection/setterProjectedOutAssign.kt | 1 - .../varProjection/setterProjectedOutNoPlusAssign.fir.kt | 1 - .../generics/varProjection/setterProjectedOutNoPlusAssign.kt | 1 - .../tests/generics/wrongNumberOfTypeArgumentsDiagnostic.fir.kt | 1 - .../tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt | 1 - .../testData/diagnostics/tests/implicitIntersection.fir.kt | 1 - compiler/testData/diagnostics/tests/implicitIntersection.kt | 1 - .../diagnostics/tests/implicitNestedIntersection.fir.kt | 1 - .../testData/diagnostics/tests/implicitNestedIntersection.kt | 1 - .../diagnostics/tests/imports/ClassClashStarImport.fir.kt | 1 - .../testData/diagnostics/tests/imports/ClassClashStarImport.kt | 1 - .../diagnostics/tests/imports/ImportOverloadFunctions.fir.kt | 1 - .../diagnostics/tests/imports/ImportOverloadFunctions.kt | 1 - compiler/testData/diagnostics/tests/imports/Imports.fir.kt | 1 - compiler/testData/diagnostics/tests/imports/Imports.kt | 1 - .../testData/diagnostics/tests/imports/twoImportLists.fir.kt | 1 - compiler/testData/diagnostics/tests/imports/twoImportLists.kt | 1 - .../incompleteCode/NoSenselessComparisonForErrorType.fir.kt | 1 - .../tests/incompleteCode/NoSenselessComparisonForErrorType.kt | 1 - .../tests/incompleteCode/checkNothingIsSubtype.fir.kt | 1 - .../diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt | 1 - .../tests/incompleteCode/controlStructuresErrors.fir.kt | 1 - .../tests/incompleteCode/controlStructuresErrors.kt | 1 - .../diagnosticWithSyntaxError/arrayExpression.fir.kt | 1 - .../diagnosticWithSyntaxError/arrayExpression.kt | 1 - .../diagnosticWithSyntaxError/noTypeParamsInReturnType.fir.kt | 1 - .../diagnosticWithSyntaxError/noTypeParamsInReturnType.kt | 1 - .../diagnostics/tests/incompleteCode/plusOnTheRight.fir.kt | 1 - .../diagnostics/tests/incompleteCode/plusOnTheRight.kt | 1 - .../tests/incompleteCode/unresolvedArguments.fir.kt | 1 - .../diagnostics/tests/incompleteCode/unresolvedArguments.kt | 1 - .../tests/inference/NoInferenceFromDeclaredBounds.fir.kt | 1 - .../tests/inference/NoInferenceFromDeclaredBounds.kt | 1 - .../tests/inference/cannotCompleteResolveAmbiguity.fir.kt | 1 - .../tests/inference/cannotCompleteResolveAmbiguity.kt | 1 - .../cannotCompleteResolveFunctionLiteralsNoUse.fir.kt | 1 - .../inference/cannotCompleteResolveFunctionLiteralsNoUse.kt | 1 - .../inference/cannotCompleteResolveNoInfoForParameter.fir.kt | 1 - .../tests/inference/cannotCompleteResolveNoInfoForParameter.kt | 1 - .../inference/cannotCompleteResolveWithFunctionLiterals.fir.kt | 1 - .../inference/cannotCompleteResolveWithFunctionLiterals.kt | 1 - .../inference/capturedTypes/cannotCaptureInProjection.fir.kt | 1 - .../tests/inference/capturedTypes/cannotCaptureInProjection.kt | 1 - .../inference/capturedTypes/captureForNullableTypes.fir.kt | 1 - .../tests/inference/capturedTypes/captureForNullableTypes.kt | 1 - .../capturedTypes/captureFromNullableTypeVariable.fir.kt | 1 - .../inference/capturedTypes/captureFromNullableTypeVariable.kt | 1 - .../inference/capturedTypes/captureTypeOnlyOnTopLevel.fir.kt | 1 - .../tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.kt | 1 - .../capturedTypes/expectedTypeMismatchWithInVariance.fir.kt | 1 - .../capturedTypes/expectedTypeMismatchWithInVariance.kt | 1 - .../diagnostics/tests/inference/capturedTypes/kt2872.fir.kt | 1 - .../diagnostics/tests/inference/capturedTypes/kt2872.kt | 1 - .../capturedTypes/noCaptureTypeErrorForNonTopLevel.fir.kt | 1 - .../capturedTypes/noCaptureTypeErrorForNonTopLevel.kt | 1 - .../inference/coercionToUnit/coercionWithExpectedType.fir.kt | 1 - .../tests/inference/coercionToUnit/coercionWithExpectedType.kt | 1 - .../coercionToUnit/coercionWithExpectedTypeAndBound.fir.kt | 1 - .../coercionToUnit/coercionWithExpectedTypeAndBound.kt | 1 - .../coercionToUnit/coercionWithoutExpectedType.fir.kt | 1 - .../inference/coercionToUnit/coercionWithoutExpectedType.kt | 1 - .../coersionWithAnonymousFunctionsAndUnresolved.fir.kt | 1 - .../coersionWithAnonymousFunctionsAndUnresolved.kt | 1 - .../coercionToUnit/indirectCoercionWithExpectedType.fir.kt | 1 - .../coercionToUnit/indirectCoercionWithExpectedType.kt | 1 - .../diagnostics/tests/inference/coercionToUnit/kt30242.fir.kt | 1 - .../diagnostics/tests/inference/coercionToUnit/kt30242.kt | 1 - .../tests/inference/coercionToUnit/noCoercion.fir.kt | 1 - .../diagnostics/tests/inference/coercionToUnit/noCoercion.kt | 1 - .../diagnostics/tests/inference/commonSystem/kt31969.kt | 1 - .../diagnostics/tests/inference/commonSystem/kt32818.fir.kt | 1 - .../diagnostics/tests/inference/commonSystem/kt32818.kt | 1 - .../tests/inference/completeInferenceIfManyFailed.fir.kt | 1 - .../tests/inference/completeInferenceIfManyFailed.kt | 1 - .../tests/inference/conflictingSubstitutions.fir.kt | 1 - .../diagnostics/tests/inference/conflictingSubstitutions.kt | 1 - .../constraintFromVariantTypeWithNestedProjection.fir.kt | 1 - .../constraintFromVariantTypeWithNestedProjection.kt | 1 - .../inference/constraints/constraintOnFunctionLiteral.fir.kt | 1 - .../tests/inference/constraints/constraintOnFunctionLiteral.kt | 1 - .../constraints/ignoreConstraintFromImplicitInNothing.fir.kt | 1 - .../constraints/ignoreConstraintFromImplicitInNothing.kt | 1 - .../diagnostics/tests/inference/constraints/kt6320.fir.kt | 1 - .../testData/diagnostics/tests/inference/constraints/kt6320.kt | 1 - .../diagnostics/tests/inference/constraints/kt8879.fir.kt | 1 - .../testData/diagnostics/tests/inference/constraints/kt8879.kt | 1 - ...yConstraintsDueToRecursiveFlexibleTypesWithWildcards.fir.kt | 1 - .../manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.kt | 1 - .../constraints/notNullConstraintOnNullableType.fir.kt | 1 - .../inference/constraints/notNullConstraintOnNullableType.kt | 1 - .../diagnostics/tests/inference/dependantOnVariance.fir.kt | 1 - .../diagnostics/tests/inference/dependantOnVariance.kt | 1 - .../tests/inference/expectedTypeAdditionalTest.fir.kt | 1 - .../diagnostics/tests/inference/expectedTypeAdditionalTest.kt | 1 - .../tests/inference/expectedTypeDoubleReceiver.fir.kt | 1 - .../diagnostics/tests/inference/expectedTypeDoubleReceiver.kt | 1 - .../diagnostics/tests/inference/expectedTypeFromCast.fir.kt | 1 - .../diagnostics/tests/inference/expectedTypeFromCast.kt | 1 - .../tests/inference/expectedTypeWithGenerics.fir.kt | 1 - .../diagnostics/tests/inference/expectedTypeWithGenerics.kt | 1 - compiler/testData/diagnostics/tests/inference/findViewById.kt | 1 - .../tests/inference/fixationOrderForProperConstraints.fir.kt | 1 - .../tests/inference/fixationOrderForProperConstraints.kt | 1 - .../tests/inference/functionPlaceholderError.fir.kt | 1 - .../diagnostics/tests/inference/functionPlaceholderError.kt | 1 - .../implicitInvokeExtensionWithFunctionalArgument.fir.kt | 1 - .../inference/implicitInvokeExtensionWithFunctionalArgument.kt | 1 - ...mplicitInvokeInCompanionObjectWithFunctionalArgument.fir.kt | 1 - .../implicitInvokeInCompanionObjectWithFunctionalArgument.kt | 1 - .../implicitInvokeInObjectWithFunctionalArgument.fir.kt | 1 - .../inference/implicitInvokeInObjectWithFunctionalArgument.kt | 1 - .../inference/implicitInvokeWithFunctionLiteralArgument.fir.kt | 1 - .../inference/implicitInvokeWithFunctionLiteralArgument.kt | 1 - compiler/testData/diagnostics/tests/inference/kt1293.fir.kt | 1 - compiler/testData/diagnostics/tests/inference/kt1293.kt | 1 - compiler/testData/diagnostics/tests/inference/kt28598.fir.kt | 1 - compiler/testData/diagnostics/tests/inference/kt28598.kt | 1 - compiler/testData/diagnostics/tests/inference/kt28654.fir.kt | 1 - compiler/testData/diagnostics/tests/inference/kt28654.kt | 1 - compiler/testData/diagnostics/tests/inference/kt30405.kt | 1 - compiler/testData/diagnostics/tests/inference/kt32434.kt | 1 - compiler/testData/diagnostics/tests/inference/kt35702.kt | 1 - compiler/testData/diagnostics/tests/inference/kt6175.fir.kt | 1 - compiler/testData/diagnostics/tests/inference/kt6175.kt | 1 - .../tests/inference/nestedCalls/binaryExpressions.fir.kt | 1 - .../tests/inference/nestedCalls/binaryExpressions.kt | 1 - .../tests/inference/noInformationForParameter.fir.kt | 1 - .../diagnostics/tests/inference/noInformationForParameter.kt | 1 - .../nonFunctionalExpectedTypeForLambdaArgument.fir.kt | 1 - .../inference/nonFunctionalExpectedTypeForLambdaArgument.kt | 1 - .../diagnostics/tests/inference/nothingType/kt32388.fir.kt | 1 - .../diagnostics/tests/inference/nothingType/kt32388.kt | 1 - .../diagnostics/tests/inference/nothingType/kt34335.fir.kt | 1 - .../diagnostics/tests/inference/nothingType/kt34335.kt | 1 - .../inference/nothingType/lambdaNothingAndExpectedType.fir.kt | 1 - .../inference/nothingType/lambdaNothingAndExpectedType.kt | 1 - .../notEnoughInformationFromNullabilityConstraint.fir.kt | 1 - .../notEnoughInformationFromNullabilityConstraint.kt | 1 - .../tests/inference/possibleCycleOnConstraints.fir.kt | 1 - .../diagnostics/tests/inference/possibleCycleOnConstraints.kt | 1 - .../tests/inference/publicApproximation/chainedLambdas.fir.kt | 1 - .../tests/inference/publicApproximation/chainedLambdas.kt | 1 - .../intersectionAfterSmartCastInLambdaReturn.fir.kt | 1 - .../intersectionAfterSmartCastInLambdaReturn.kt | 1 - .../smartCastInLambdaReturnAfterIntersection.fir.kt | 1 - .../smartCastInLambdaReturnAfterIntersection.kt | 1 - .../inference/publicApproximation/twoIntersections.fir.kt | 1 - .../tests/inference/publicApproximation/twoIntersections.kt | 1 - .../diagnostics/tests/inference/recursiveCalls/kt23531.fir.kt | 1 - .../diagnostics/tests/inference/recursiveCalls/kt23531.kt | 1 - .../tests/inference/recursiveLocalFuns/localFactorial.fir.kt | 1 - .../tests/inference/recursiveLocalFuns/localFactorial.kt | 1 - .../tests/inference/recursiveLocalFuns/recursiveFun.fir.kt | 1 - .../tests/inference/recursiveLocalFuns/recursiveFun.kt | 1 - .../tests/inference/recursiveLocalFuns/recursiveLambda.fir.kt | 1 - .../tests/inference/recursiveLocalFuns/recursiveLambda.kt | 1 - .../tests/inference/recursiveLocalFuns/selfCall.fir.kt | 1 - .../diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt | 1 - .../diagnostics/tests/inference/regressions/kt1127.fir.kt | 1 - .../testData/diagnostics/tests/inference/regressions/kt1127.kt | 1 - .../diagnostics/tests/inference/regressions/kt2200.fir.kt | 1 - .../testData/diagnostics/tests/inference/regressions/kt2200.kt | 1 - .../diagnostics/tests/inference/regressions/kt2283.fir.kt | 1 - .../testData/diagnostics/tests/inference/regressions/kt2283.kt | 1 - .../diagnostics/tests/inference/regressions/kt2286.fir.kt | 1 - .../testData/diagnostics/tests/inference/regressions/kt2286.kt | 1 - .../diagnostics/tests/inference/regressions/kt2445.fir.kt | 1 - .../testData/diagnostics/tests/inference/regressions/kt2445.kt | 1 - .../diagnostics/tests/inference/regressions/kt2741.fir.kt | 1 - .../testData/diagnostics/tests/inference/regressions/kt2741.kt | 1 - .../diagnostics/tests/inference/regressions/kt2838.fir.kt | 1 - .../testData/diagnostics/tests/inference/regressions/kt2838.kt | 1 - .../diagnostics/tests/inference/regressions/kt2841.fir.kt | 1 - .../testData/diagnostics/tests/inference/regressions/kt2841.kt | 1 - .../diagnostics/tests/inference/regressions/kt2841_it.fir.kt | 1 - .../diagnostics/tests/inference/regressions/kt2841_it.kt | 1 - .../tests/inference/regressions/kt2841_it_this.fir.kt | 1 - .../diagnostics/tests/inference/regressions/kt2841_it_this.kt | 1 - .../diagnostics/tests/inference/regressions/kt2841_this.fir.kt | 1 - .../diagnostics/tests/inference/regressions/kt2841_this.kt | 1 - .../diagnostics/tests/inference/regressions/kt2883.fir.kt | 1 - .../testData/diagnostics/tests/inference/regressions/kt2883.kt | 1 - .../tests/inference/regressions/kt32862_both.fir.kt | 1 - .../diagnostics/tests/inference/regressions/kt32862_both.kt | 1 - .../tests/inference/regressions/kt32862_none.fir.kt | 1 - .../diagnostics/tests/inference/regressions/kt32862_none.kt | 1 - .../diagnostics/tests/inference/regressions/kt33629.fir.kt | 1 - .../diagnostics/tests/inference/regressions/kt33629.kt | 1 - .../diagnostics/tests/inference/regressions/kt36342.fir.kt | 1 - .../diagnostics/tests/inference/regressions/kt36342.kt | 1 - .../diagnostics/tests/inference/regressions/kt36342_2.fir.kt | 1 - .../diagnostics/tests/inference/regressions/kt36342_2.kt | 1 - .../diagnostics/tests/inference/regressions/kt731.fir.kt | 1 - .../testData/diagnostics/tests/inference/regressions/kt731.kt | 1 - .../diagnostics/tests/inference/regressions/kt742.fir.kt | 1 - .../testData/diagnostics/tests/inference/regressions/kt742.kt | 1 - .../diagnostics/tests/inference/regressions/kt832.fir.kt | 1 - .../testData/diagnostics/tests/inference/regressions/kt832.kt | 1 - .../diagnostics/tests/inference/regressions/kt948.fir.kt | 1 - .../testData/diagnostics/tests/inference/regressions/kt948.kt | 1 - .../inference/reportingImprovements/FunctionPlaceholder.fir.kt | 1 - .../inference/reportingImprovements/FunctionPlaceholder.kt | 1 - .../NoAmbiguityForDifferentFunctionTypes.fir.kt | 1 - .../NoAmbiguityForDifferentFunctionTypes.kt | 1 - .../cannotInferParameterTypeWithInference.fir.kt | 1 - .../cannotInferParameterTypeWithInference.kt | 1 - .../inferTypeFromUnresolvedArgument.fir.kt | 1 - .../reportingImprovements/inferTypeFromUnresolvedArgument.kt | 1 - .../subtypeForInvariantWithErrorGenerics.fir.kt | 1 - .../subtypeForInvariantWithErrorGenerics.kt | 1 - .../typeInferenceFailedOnComponentN.fir.kt | 1 - .../reportingImprovements/typeInferenceFailedOnComponentN.kt | 1 - .../typeInferenceFailedOnIteratorCall.fir.kt | 1 - .../reportingImprovements/typeInferenceFailedOnIteratorCall.kt | 1 - .../wrongArgumentPassedToLocalExtensionFunction.fir.kt | 1 - .../wrongArgumentPassedToLocalExtensionFunction.kt | 1 - .../diagnostics/tests/inference/typeConstructorMismatch.fir.kt | 1 - .../diagnostics/tests/inference/typeConstructorMismatch.kt | 1 - .../tests/inference/typeInferenceExpectedTypeMismatch.fir.kt | 1 - .../tests/inference/typeInferenceExpectedTypeMismatch.kt | 1 - .../inference/upperBounds/doNotInferFromBoundsOnly.fir.kt | 1 - .../tests/inference/upperBounds/doNotInferFromBoundsOnly.kt | 1 - .../tests/inference/upperBounds/intersectUpperBounds.fir.kt | 1 - .../tests/inference/upperBounds/intersectUpperBounds.kt | 1 - .../inference/upperBounds/useBoundsIfUnknownParameters.fir.kt | 1 - .../inference/upperBounds/useBoundsIfUnknownParameters.kt | 1 - .../upperBounds/useBoundsToInferTypeParamsSimple.fir.kt | 1 - .../inference/upperBounds/useBoundsToInferTypeParamsSimple.kt | 1 - compiler/testData/diagnostics/tests/infos/SmartCasts.fir.kt | 1 - compiler/testData/diagnostics/tests/infos/SmartCasts.kt | 1 - .../inline/inlineLambdaInDefaultInlineParameterDisabled.fir.kt | 1 - .../inline/inlineLambdaInDefaultInlineParameterDisabled.kt | 1 - compiler/testData/diagnostics/tests/inline/kt15410.fir.kt | 1 - compiler/testData/diagnostics/tests/inline/kt15410.kt | 1 - .../tests/inline/nonLocalReturns/lambdaAsGeneric.fir.kt | 1 - .../tests/inline/nonLocalReturns/lambdaAsGeneric.kt | 1 - .../tests/inner/qualifiedExpression/genericNestedClass.fir.kt | 1 - .../tests/inner/qualifiedExpression/genericNestedClass.kt | 1 - compiler/testData/diagnostics/tests/j+k/collectorInference.kt | 1 - compiler/testData/diagnostics/tests/j+k/flexibleNothing.kt | 1 - .../classTypeParameterInferredFromArgument.fir.kt | 1 - .../classTypeParameterInferredFromArgument.kt | 1 - .../diagnostics/tests/j+k/genericConstructor/innerClass.fir.kt | 1 - .../diagnostics/tests/j+k/genericConstructor/innerClass.kt | 1 - .../noClassTypeParametersInvParameter.fir.kt | 1 - .../genericConstructor/noClassTypeParametersInvParameter.kt | 1 - .../diagnostics/tests/j+k/genericConstructor/recursive.fir.kt | 1 - .../diagnostics/tests/j+k/genericConstructor/recursive.kt | 1 - .../diagnostics/tests/j+k/genericConstructor/superCall.fir.kt | 1 - .../diagnostics/tests/j+k/genericConstructor/superCall.kt | 1 - .../j+k/genericConstructor/superCallImpossibleToInfer.fir.kt | 1 - .../tests/j+k/genericConstructor/superCallImpossibleToInfer.kt | 1 - .../tests/j+k/genericConstructorWithMultipleBounds.fir.kt | 1 - .../tests/j+k/genericConstructorWithMultipleBounds.kt | 1 - .../diagnostics/tests/j+k/sam/enhancedSamConstructor.fir.kt | 1 - .../diagnostics/tests/j+k/sam/enhancedSamConstructor.kt | 1 - .../tests/j+k/samByProjectedType/genericInReturnType.fir.kt | 1 - .../tests/j+k/samByProjectedType/genericInReturnType.kt | 1 - .../testData/diagnostics/tests/j+k/wrongVarianceInJava.fir.kt | 1 - compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.kt | 1 - compiler/testData/diagnostics/tests/kt13401.fir.kt | 1 - compiler/testData/diagnostics/tests/kt13401.kt | 1 - compiler/testData/diagnostics/tests/kt310.fir.kt | 1 - compiler/testData/diagnostics/tests/kt310.kt | 1 - compiler/testData/diagnostics/tests/library/Collections.fir.kt | 1 - compiler/testData/diagnostics/tests/library/Collections.kt | 1 - .../tests/modifiers/const/arrayInAnnotationArgumentType.fir.kt | 1 - .../tests/modifiers/const/arrayInAnnotationArgumentType.kt | 1 - .../duplicateClass/sameClassNameDifferentPackages.fir.kt | 1 - .../duplicateClass/sameClassNameDifferentPackages.kt | 1 - .../classVsFunctionGenericsInParamsMismatch.fir.kt | 1 - .../duplicateMethod/classVsFunctionGenericsInParamsMismatch.kt | 1 - .../diagnostics/tests/multiplatform/namedArguments.fir.kt | 1 - .../testData/diagnostics/tests/multiplatform/namedArguments.kt | 1 - .../tests/namedArguments/disallowForSamAdapterConstructor.kt | 1 - .../tests/namedArguments/disallowForSamAdapterFunction.kt | 1 - .../tests/nullabilityAndSmartCasts/AssertNotNull.fir.kt | 1 - .../tests/nullabilityAndSmartCasts/AssertNotNull.kt | 1 - .../tests/nullabilityAndSmartCasts/InfixCallNullability.kt | 1 - .../diagnostics/tests/nullabilityAndSmartCasts/kt2146.fir.kt | 1 - .../diagnostics/tests/nullabilityAndSmartCasts/kt2146.kt | 1 - .../diagnostics/tests/nullabilityAndSmartCasts/kt2164.fir.kt | 1 - .../diagnostics/tests/nullabilityAndSmartCasts/kt2164.kt | 1 - .../diagnostics/tests/nullabilityAndSmartCasts/kt2216.fir.kt | 1 - .../diagnostics/tests/nullabilityAndSmartCasts/kt2216.kt | 1 - .../diagnostics/tests/nullabilityAndSmartCasts/kt30734.fir.kt | 1 - .../diagnostics/tests/nullabilityAndSmartCasts/kt30734.kt | 1 - .../unnecessaryNotNullAssertion.fir.kt | 1 - .../nullabilityAndSmartCasts/unnecessaryNotNullAssertion.kt | 1 - .../nullAssertOnTypeWithNullableUpperBound.fir.kt | 1 - .../nullableTypes/nullAssertOnTypeWithNullableUpperBound.kt | 1 - .../nullableArgumentToNonNullParameterPlatform.fir.kt | 1 - .../nullableArgumentToNonNullParameterPlatform.kt | 1 - .../nullableArgumentToNonNullParameterSimple.fir.kt | 1 - .../nullableTypes/nullableArgumentToNonNullParameterSimple.kt | 1 - .../nullableTypes/safeCallOnTypeWithNullableUpperBound.fir.kt | 1 - .../nullableTypes/safeCallOnTypeWithNullableUpperBound.kt | 1 - .../diagnostics/tests/numbers/characterIsNotANumber.fir.kt | 1 - .../diagnostics/tests/numbers/characterIsNotANumber.kt | 1 - .../tests/numbers/doublesInSimpleConstraints.fir.kt | 1 - .../diagnostics/tests/numbers/doublesInSimpleConstraints.kt | 1 - .../diagnostics/tests/numbers/intValuesOutOfRange.fir.kt | 1 - .../testData/diagnostics/tests/numbers/intValuesOutOfRange.kt | 1 - .../tests/numbers/numbersInSimpleConstraints.fir.kt | 1 - .../diagnostics/tests/numbers/numbersInSimpleConstraints.kt | 1 - compiler/testData/diagnostics/tests/objects/kt5527.fir.kt | 1 - compiler/testData/diagnostics/tests/objects/kt5527.kt | 1 - .../operatorRem/DeprecatedModAssignOperatorConventions.fir.kt | 1 - .../operatorRem/DeprecatedModAssignOperatorConventions.kt | 1 - .../tests/operatorRem/DeprecatedModOperatorConventions.fir.kt | 1 - .../tests/operatorRem/DeprecatedModOperatorConventions.kt | 1 - .../tests/operatorRem/doNotResolveToInapplicableRem.fir.kt | 1 - .../tests/operatorRem/doNotResolveToInapplicableRem.kt | 1 - .../diagnostics/tests/operatorsOverloading/kt11300.fir.kt | 1 - .../testData/diagnostics/tests/operatorsOverloading/kt11300.kt | 1 - .../diagnostics/tests/operatorsOverloading/kt13330.fir.kt | 1 - .../testData/diagnostics/tests/operatorsOverloading/kt13330.kt | 1 - .../diagnostics/tests/overload/defaultParameters.fir.kt | 1 - .../testData/diagnostics/tests/overload/defaultParameters.kt | 1 - compiler/testData/diagnostics/tests/overload/kt2493.fir.kt | 1 - compiler/testData/diagnostics/tests/overload/kt2493.kt | 1 - .../tests/platformTypes/commonSupertype/withNothing.fir.kt | 1 - .../tests/platformTypes/commonSupertype/withNothing.kt | 1 - .../tests/platformTypes/methodCall/singleton.fir.kt | 1 - .../diagnostics/tests/platformTypes/methodCall/singleton.kt | 1 - .../diagnostics/tests/platformTypes/methodCall/visitor.kt | 1 - .../notNullTypeParameter/methodTypeParameter.fir.kt | 1 - .../platformTypes/notNullTypeParameter/methodTypeParameter.kt | 1 - .../tests/platformTypes/nullabilityWarnings/arithmetic.fir.kt | 1 - .../tests/platformTypes/nullabilityWarnings/arithmetic.kt | 1 - .../tests/platformTypes/nullabilityWarnings/assignToVar.fir.kt | 1 - .../tests/platformTypes/nullabilityWarnings/assignToVar.kt | 1 - .../tests/platformTypes/nullabilityWarnings/conditions.fir.kt | 1 - .../tests/platformTypes/nullabilityWarnings/conditions.kt | 1 - .../platformTypes/nullabilityWarnings/dataFlowInfo.fir.kt | 1 - .../tests/platformTypes/nullabilityWarnings/dataFlowInfo.kt | 1 - .../platformTypes/nullabilityWarnings/defaultParameters.fir.kt | 1 - .../platformTypes/nullabilityWarnings/defaultParameters.kt | 1 - .../tests/platformTypes/nullabilityWarnings/delegation.fir.kt | 1 - .../tests/platformTypes/nullabilityWarnings/delegation.kt | 1 - .../tests/platformTypes/nullabilityWarnings/passToJava.fir.kt | 1 - .../tests/platformTypes/nullabilityWarnings/passToJava.kt | 1 - .../tests/platformTypes/nullabilityWarnings/throw.fir.kt | 1 - .../tests/platformTypes/nullabilityWarnings/throw.kt | 1 - .../diagnostics/tests/platformTypes/rawTypes/arrays.fir.kt | 1 - .../diagnostics/tests/platformTypes/rawTypes/arrays.kt | 1 - .../diagnostics/tests/platformTypes/rawTypes/samRaw.fir.kt | 1 - .../diagnostics/tests/platformTypes/rawTypes/samRaw.kt | 1 - .../properties/inferenceFromGetters/cantBeInferred.fir.kt | 1 - .../tests/properties/inferenceFromGetters/cantBeInferred.kt | 1 - .../tests/properties/inferenceFromGetters/nullAsNothing.fir.kt | 1 - .../tests/properties/inferenceFromGetters/nullAsNothing.kt | 1 - .../properties/inferenceFromGetters/objectExpression.fir.kt | 1 - .../tests/properties/inferenceFromGetters/objectExpression.kt | 1 - .../properties/inferenceFromGetters/recursiveGetter.fir.kt | 1 - .../tests/properties/inferenceFromGetters/recursiveGetter.kt | 1 - .../unsupportedInferenceFromGetters.fir.kt | 1 - .../inferenceFromGetters/unsupportedInferenceFromGetters.kt | 1 - .../diagnostics/tests/qualifiedExpression/TypeWithError.fir.kt | 1 - .../diagnostics/tests/qualifiedExpression/TypeWithError.kt | 1 - .../calleeExpressionAsCallExpression.fir.kt | 1 - .../qualifiedExpression/calleeExpressionAsCallExpression.kt | 1 - .../tests/qualifiedExpression/nullCalleeExpression.fir.kt | 1 - .../tests/qualifiedExpression/nullCalleeExpression.kt | 1 - .../diagnostics/tests/recovery/absentLeftHandSide.fir.kt | 1 - .../testData/diagnostics/tests/recovery/absentLeftHandSide.kt | 1 - compiler/testData/diagnostics/tests/regressions/Jet81.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/Jet81.kt | 1 - .../diagnostics/tests/regressions/OutProjections.fir.kt | 1 - .../testData/diagnostics/tests/regressions/OutProjections.kt | 1 - .../tests/regressions/TypeMismatchOnUnaryOperations.fir.kt | 1 - .../tests/regressions/TypeMismatchOnUnaryOperations.kt | 1 - .../correctResultSubstitutorForErrorCandidate.fir.kt | 1 - .../regressions/correctResultSubstitutorForErrorCandidate.kt | 1 - compiler/testData/diagnostics/tests/regressions/ea72837.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/ea72837.kt | 1 - .../tests/regressions/itselfAsUpperBoundLocal.fir.kt | 1 - .../diagnostics/tests/regressions/itselfAsUpperBoundLocal.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt10243.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt10243.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt10843.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt10843.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt11979.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt11979.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt12898.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt12898.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt13685.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt13685.kt | 1 - .../testData/diagnostics/tests/regressions/kt1489_1728.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt1489_1728.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt24488.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt24488.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt251.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt251.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt282.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt312.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt312.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt328.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt328.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt352.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt352.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt353.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt353.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt5362.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt5362.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt557.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt557.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt7804.fir.kt | 1 - compiler/testData/diagnostics/tests/regressions/kt7804.kt | 1 - .../tests/resolve/dslMarker/annotatedFunctionType.fir.kt | 1 - .../tests/resolve/dslMarker/annotatedFunctionType.kt | 1 - .../tests/resolve/dslMarker/annotatedFunctionType_1_4.fir.kt | 1 - .../tests/resolve/dslMarker/annotatedFunctionType_1_4.kt | 1 - .../resolve/dslMarker/dslMarkerWithTypealiasRecursion.fir.kt | 1 - .../tests/resolve/dslMarker/dslMarkerWithTypealiasRecursion.kt | 1 - .../tests/resolve/dslMarker/markersIntersection.fir.kt | 1 - .../diagnostics/tests/resolve/dslMarker/markersIntersection.kt | 1 - .../resolve/dslMarker/substitutedReceiverAnnotatedType.fir.kt | 1 - .../resolve/dslMarker/substitutedReceiverAnnotatedType.kt | 1 - .../tests/resolve/dslMarker/threeImplicitReceivers.fir.kt | 1 - .../tests/resolve/dslMarker/threeImplicitReceivers.kt | 1 - .../tests/resolve/dslMarker/threeImplicitReceivers2.fir.kt | 1 - .../tests/resolve/dslMarker/threeImplicitReceivers2.kt | 1 - .../tests/resolve/invoke/errors/ambiguityForInvoke.fir.kt | 1 - .../tests/resolve/invoke/errors/ambiguityForInvoke.kt | 1 - .../resolve/invoke/errors/typeInferenceErrorForInvoke.fir.kt | 1 - .../tests/resolve/invoke/errors/typeInferenceErrorForInvoke.kt | 1 - .../tests/resolve/invoke/errors/unsafeCallWithInvoke.fir.kt | 1 - .../tests/resolve/invoke/errors/unsafeCallWithInvoke.kt | 1 - .../invoke/errors/wrongReceiverForInvokeOnExpression.fir.kt | 1 - .../invoke/errors/wrongReceiverForInvokeOnExpression.kt | 1 - .../resolve/invoke/errors/wrongReceiverTypeForInvoke.fir.kt | 1 - .../tests/resolve/invoke/errors/wrongReceiverTypeForInvoke.kt | 1 - .../tests/resolve/invoke/extensionValueAsNonExtension.fir.kt | 1 - .../tests/resolve/invoke/extensionValueAsNonExtension.kt | 1 - .../invoke/functionExpectedWhenSeveralInvokesExist.fir.kt | 1 - .../resolve/invoke/functionExpectedWhenSeveralInvokesExist.kt | 1 - .../tests/resolve/invoke/implicitInvokeAfterSafeCall.fir.kt | 1 - .../tests/resolve/invoke/implicitInvokeAfterSafeCall.kt | 1 - .../invoke/invokeOnVariableWithExtensionFunctionType.fir.kt | 1 - .../invoke/invokeOnVariableWithExtensionFunctionType.kt | 1 - .../invoke/reportFunctionExpectedWhenOneInvokeExist.fir.kt | 1 - .../resolve/invoke/reportFunctionExpectedWhenOneInvokeExist.kt | 1 - .../tests/resolve/invoke/wrongInvokeExtension.fir.kt | 1 - .../diagnostics/tests/resolve/invoke/wrongInvokeExtension.kt | 1 - compiler/testData/diagnostics/tests/resolve/kt36264.fir.kt | 1 - compiler/testData/diagnostics/tests/resolve/kt36264.kt | 1 - .../completeTypeInferenceForNestedInNoneApplicable.fir.kt | 1 - .../completeTypeInferenceForNestedInNoneApplicable.kt | 1 - .../tests/resolve/nestedCalls/twoTypeParameters.fir.kt | 1 - .../diagnostics/tests/resolve/nestedCalls/twoTypeParameters.kt | 1 - .../testData/diagnostics/tests/resolve/newLineLambda.fir.kt | 1 - compiler/testData/diagnostics/tests/resolve/newLineLambda.kt | 1 - .../tests/resolve/overloadConflicts/allLambdas.fir.kt | 1 - .../diagnostics/tests/resolve/overloadConflicts/allLambdas.kt | 1 - .../tests/resolve/overloadConflicts/genericClash.fir.kt | 1 - .../tests/resolve/overloadConflicts/genericClash.kt | 1 - .../diagnostics/tests/resolve/overloadConflicts/kt10640.fir.kt | 1 - .../diagnostics/tests/resolve/overloadConflicts/kt10640.kt | 1 - .../diagnostics/tests/resolve/overloadConflicts/kt31670.fir.kt | 1 - .../diagnostics/tests/resolve/overloadConflicts/kt31670.kt | 1 - .../tests/resolve/overloadConflicts/kt31670_compat.fir.kt | 1 - .../tests/resolve/overloadConflicts/kt31670_compat.kt | 1 - .../diagnostics/tests/resolve/overloadConflicts/kt31758.fir.kt | 1 - .../diagnostics/tests/resolve/overloadConflicts/kt31758.kt | 1 - .../tests/resolve/overloadConflicts/kt31758_compat.fir.kt | 1 - .../tests/resolve/overloadConflicts/kt31758_compat.kt | 1 - .../tests/resolve/overloadConflicts/originalExamples.fir.kt | 1 - .../tests/resolve/overloadConflicts/originalExamples.kt | 1 - .../overloadResolutionOnNullableContravariantParameter.fir.kt | 1 - .../overloadResolutionOnNullableContravariantParameter.kt | 1 - ...oadResolutionOnNullableContravariantParameter_compat.fir.kt | 1 - ...verloadResolutionOnNullableContravariantParameter_compat.kt | 1 - .../tests/resolve/overloadConflicts/withVariance.fir.kt | 1 - .../tests/resolve/overloadConflicts/withVariance.kt | 1 - .../tests/resolve/resolveWithSpecifiedFunctionLiteralWithId.kt | 1 - .../tests/resolve/specialConstructions/constantsInIf.fir.kt | 1 - .../tests/resolve/specialConstructions/constantsInIf.kt | 1 - .../tests/resolve/specialConstructions/elvisAsCall.fir.kt | 1 - .../tests/resolve/specialConstructions/elvisAsCall.kt | 1 - .../tests/resolve/specialConstructions/exclExclAsCall.fir.kt | 1 - .../tests/resolve/specialConstructions/exclExclAsCall.kt | 1 - .../resolve/specialConstructions/multipleSuperClasses.fir.kt | 1 - .../tests/resolve/specialConstructions/multipleSuperClasses.kt | 1 - .../reportTypeMismatchDeeplyOnBranches.fir.kt | 1 - .../specialConstructions/reportTypeMismatchDeeplyOnBranches.kt | 1 - .../tests/resolve/wrongNumberOfTypeArguments.fir.kt | 1 - .../diagnostics/tests/resolve/wrongNumberOfTypeArguments.kt | 1 - .../testData/diagnostics/tests/resolve/wrongReceiver.fir.kt | 1 - compiler/testData/diagnostics/tests/resolve/wrongReceiver.kt | 1 - compiler/testData/diagnostics/tests/safeCall.kt | 1 - .../tests/scopes/inheritance/methodsPriority.fir.kt | 1 - .../diagnostics/tests/scopes/inheritance/methodsPriority.kt | 1 - .../companionObject/inheritFromContainingClass_after.fir.kt | 1 - .../companionObject/inheritFromContainingClass_after.kt | 1 - .../companionObject/inheritFromContainingClass_before.fir.kt | 1 - .../companionObject/inheritFromContainingClass_before.kt | 1 - .../tests/scopes/inheritance/statics/localVsStatic.fir.kt | 1 - .../tests/scopes/inheritance/statics/localVsStatic.kt | 1 - .../scopes/protectedVisibility/nonSuperCallConstructor.fir.kt | 1 - .../scopes/protectedVisibility/nonSuperCallConstructor.kt | 1 - .../scopes/protectedVisibility/syntheticSAMExtensions.fir.kt | 1 - .../tests/scopes/protectedVisibility/syntheticSAMExtensions.kt | 1 - .../tests/scopes/protectedVisibility/unstableSmartCast.fir.kt | 1 - .../tests/scopes/protectedVisibility/unstableSmartCast.kt | 1 - .../tests/secondaryConstructors/constructorCallType.fir.kt | 1 - .../tests/secondaryConstructors/constructorCallType.kt | 1 - .../diagnostics/tests/secondaryConstructors/generics2.fir.kt | 1 - .../diagnostics/tests/secondaryConstructors/generics2.kt | 1 - .../diagnostics/tests/secondaryConstructors/kt6993.fir.kt | 1 - .../testData/diagnostics/tests/secondaryConstructors/kt6993.kt | 1 - .../diagnostics/tests/secondaryConstructors/return.fir.kt | 1 - .../testData/diagnostics/tests/secondaryConstructors/return.kt | 1 - .../diagnostics/tests/secondaryConstructors/thisNonExisting.kt | 1 - .../testData/diagnostics/tests/smartCasts/alwaysNull.fir.kt | 1 - compiler/testData/diagnostics/tests/smartCasts/alwaysNull.kt | 1 - .../diagnostics/tests/smartCasts/alwaysNullWithJava.fir.kt | 1 - .../diagnostics/tests/smartCasts/alwaysNullWithJava.kt | 1 - .../diagnostics/tests/smartCasts/castchecks/variables.fir.kt | 1 - .../diagnostics/tests/smartCasts/castchecks/variables.kt | 1 - .../diagnostics/tests/smartCasts/comparisonUnderAnd.fir.kt | 1 - .../diagnostics/tests/smartCasts/comparisonUnderAnd.kt | 1 - .../diagnostics/tests/smartCasts/complexComparison.fir.kt | 1 - .../testData/diagnostics/tests/smartCasts/complexComparison.kt | 1 - .../diagnostics/tests/smartCasts/elvis/impossible.fir.kt | 1 - .../testData/diagnostics/tests/smartCasts/elvis/impossible.kt | 1 - .../diagnostics/tests/smartCasts/elvisExprNotNull.fir.kt | 1 - .../testData/diagnostics/tests/smartCasts/elvisExprNotNull.kt | 1 - .../diagnostics/tests/smartCasts/explicitDefaultGetter.fir.kt | 1 - .../diagnostics/tests/smartCasts/explicitDefaultGetter.kt | 1 - .../tests/smartCasts/inference/intersectionTypes.fir.kt | 1 - .../tests/smartCasts/inference/intersectionTypes.kt | 1 - .../diagnostics/tests/smartCasts/inference/kt25432.fir.kt | 1 - .../testData/diagnostics/tests/smartCasts/inference/kt25432.kt | 1 - .../diagnostics/tests/smartCasts/inference/kt29767.fir.kt | 1 - .../testData/diagnostics/tests/smartCasts/inference/kt29767.kt | 1 - .../tests/smartCasts/intersectionScope/flexibleTypes.fir.kt | 1 - .../tests/smartCasts/intersectionScope/flexibleTypes.kt | 1 - .../smartCasts/intersectionScope/unstableSmartCast.fir.kt | 1 - .../tests/smartCasts/intersectionScope/unstableSmartCast.kt | 1 - compiler/testData/diagnostics/tests/smartCasts/kt10444.fir.kt | 1 - compiler/testData/diagnostics/tests/smartCasts/kt10444.kt | 1 - compiler/testData/diagnostics/tests/smartCasts/kt2865.fir.kt | 1 - compiler/testData/diagnostics/tests/smartCasts/kt2865.kt | 1 - compiler/testData/diagnostics/tests/smartCasts/kt30826.fir.kt | 1 - compiler/testData/diagnostics/tests/smartCasts/kt30826.kt | 1 - compiler/testData/diagnostics/tests/smartCasts/kt30927.fir.kt | 1 - compiler/testData/diagnostics/tests/smartCasts/kt30927.kt | 1 - .../tests/smartCasts/lambdaArgumentWithBoundWithoutType.fir.kt | 1 - .../tests/smartCasts/lambdaArgumentWithBoundWithoutType.kt | 1 - .../diagnostics/tests/smartCasts/localFunChanges.fir.kt | 1 - .../testData/diagnostics/tests/smartCasts/localFunChanges.kt | 1 - .../tests/smartCasts/objectLiterals/captured.fir.kt | 1 - .../diagnostics/tests/smartCasts/objectLiterals/captured.kt | 1 - .../tests/smartCasts/objectLiterals/exclexcl.fir.kt | 1 - .../diagnostics/tests/smartCasts/objectLiterals/exclexcl.kt | 1 - .../diagnostics/tests/smartCasts/propertyToNotNull.fir.kt | 1 - .../testData/diagnostics/tests/smartCasts/propertyToNotNull.kt | 1 - .../diagnostics/tests/smartCasts/publicVals/delegate.fir.kt | 1 - .../diagnostics/tests/smartCasts/publicVals/delegate.kt | 1 - .../diagnostics/tests/smartCasts/safecalls/anotherVal.fir.kt | 1 - .../diagnostics/tests/smartCasts/safecalls/anotherVal.kt | 1 - .../tests/smartCasts/safecalls/falseSecondArgument.fir.kt | 1 - .../tests/smartCasts/safecalls/falseSecondArgument.kt | 1 - .../tests/smartCasts/safecalls/receiverAndChainFalse.fir.kt | 1 - .../tests/smartCasts/safecalls/receiverAndChainFalse.kt | 1 - .../diagnostics/tests/smartCasts/typeInComparison.fir.kt | 1 - .../testData/diagnostics/tests/smartCasts/typeInComparison.kt | 1 - .../tests/smartCasts/variables/ifNullAssignment.fir.kt | 1 - .../diagnostics/tests/smartCasts/variables/ifNullAssignment.kt | 1 - .../tests/smartCasts/variables/lambdaBetweenArguments.fir.kt | 1 - .../tests/smartCasts/variables/lambdaBetweenArguments.kt | 1 - .../diagnostics/tests/smartCasts/variables/property.fir.kt | 1 - .../diagnostics/tests/smartCasts/variables/property.kt | 1 - .../diagnostics/tests/smartCasts/varnotnull/assignment.fir.kt | 1 - .../diagnostics/tests/smartCasts/varnotnull/assignment.kt | 1 - .../tests/smartCasts/varnotnull/boundInitializerWrong.fir.kt | 1 - .../tests/smartCasts/varnotnull/boundInitializerWrong.kt | 1 - .../diagnostics/tests/smartCasts/varnotnull/forEach.fir.kt | 1 - .../diagnostics/tests/smartCasts/varnotnull/forEach.kt | 1 - .../tests/smartCasts/varnotnull/forEachWithBreak.fir.kt | 1 - .../tests/smartCasts/varnotnull/forEachWithBreak.kt | 1 - .../tests/smartCasts/varnotnull/forEachWithContinue.fir.kt | 1 - .../tests/smartCasts/varnotnull/forEachWithContinue.kt | 1 - .../tests/smartCasts/varnotnull/initInTryReturnInCatch.fir.kt | 1 - .../tests/smartCasts/varnotnull/initInTryReturnInCatch.kt | 1 - .../tests/smartCasts/varnotnull/initialization.fir.kt | 1 - .../diagnostics/tests/smartCasts/varnotnull/initialization.kt | 1 - .../tests/smartCasts/varnotnull/plusplusMinusminus.fir.kt | 1 - .../tests/smartCasts/varnotnull/plusplusMinusminus.kt | 1 - .../smartCasts/varnotnull/postfixNotnullClassIncrement.fir.kt | 1 - .../smartCasts/varnotnull/postfixNotnullClassIncrement.kt | 1 - .../smartCasts/varnotnull/prefixNotnullClassIncrement.fir.kt | 1 - .../tests/smartCasts/varnotnull/prefixNotnullClassIncrement.kt | 1 - .../tests/smartCasts/varnotnull/unnecessaryWithMap.fir.kt | 1 - .../tests/smartCasts/varnotnull/unnecessaryWithMap.kt | 1 - .../smartCasts/varnotnull/varCapturedInInlineClosure.fir.kt | 1 - .../tests/smartCasts/varnotnull/varCapturedInInlineClosure.kt | 1 - .../diagnostics/tests/smartCasts/varnotnull/varIntNull.fir.kt | 1 - .../diagnostics/tests/smartCasts/varnotnull/varIntNull.kt | 1 - .../diagnostics/tests/smartCasts/varnotnull/varNull.fir.kt | 1 - .../diagnostics/tests/smartCasts/varnotnull/varNull.kt | 1 - .../diagnostics/tests/substitutions/starProjections.fir.kt | 1 - .../diagnostics/tests/substitutions/starProjections.kt | 1 - ...BoundsSubstitutionForOverloadResolutionWithAmbiguity.fir.kt | 1 - ...pperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt | 1 - ...oundsSubstitutionForOverloadResolutionWithErrorTypes.fir.kt | 1 - ...perBoundsSubstitutionForOverloadResolutionWithErrorTypes.kt | 1 - .../testData/diagnostics/tests/subtyping/localClasses.fir.kt | 1 - compiler/testData/diagnostics/tests/subtyping/localClasses.kt | 1 - .../diagnostics/tests/subtyping/nestedIntoLocalClasses.fir.kt | 1 - .../diagnostics/tests/subtyping/nestedIntoLocalClasses.kt | 1 - .../diagnostics/tests/subtyping/nestedLocalClasses.fir.kt | 1 - .../testData/diagnostics/tests/subtyping/nestedLocalClasses.kt | 1 - .../syntheticExtensions/samAdapters/InnerClassInGeneric.fir.kt | 1 - .../syntheticExtensions/samAdapters/InnerClassInGeneric.kt | 1 - .../syntheticExtensions/samAdapters/NoNamedArgsAllowed.kt | 1 - .../syntheticExtensions/samAdapters/ParameterTypeAnnotation.kt | 1 - .../tests/syntheticExtensions/samAdapters/Private.fir.kt | 1 - .../tests/syntheticExtensions/samAdapters/Private.kt | 1 - .../tests/targetedBuiltIns/concurrentMapRemove.fir.kt | 1 - .../diagnostics/tests/targetedBuiltIns/concurrentMapRemove.kt | 1 - .../diagnostics/tests/targetedBuiltIns/mutableMapRemove.fir.kt | 1 - .../diagnostics/tests/targetedBuiltIns/mutableMapRemove.kt | 1 - .../unqualifiedSuper/ambiguousSuperWithGenerics.fir.kt | 1 - .../unqualifiedSuper/ambiguousSuperWithGenerics.kt | 1 - .../unqualifiedSuperWithCallableProperty.fir.kt | 1 - .../unqualifiedSuper/unqualifiedSuperWithCallableProperty.kt | 1 - .../typeParameters/implicitNothingInReturnPosition.fir.kt | 1 - .../tests/typeParameters/implicitNothingInReturnPosition.kt | 1 - .../tests/typeParameters/implicitNothingOnDelegates.fir.kt | 1 - .../tests/typeParameters/implicitNothingOnDelegates.kt | 1 - .../typealias/boundViolationInTypeAliasConstructor.fir.kt | 1 - .../tests/typealias/boundViolationInTypeAliasConstructor.kt | 1 - .../typealias/boundsViolationInDeepTypeAliasExpansion.fir.kt | 1 - .../tests/typealias/boundsViolationInDeepTypeAliasExpansion.kt | 1 - .../tests/typealias/boundsViolationInTypeAliasExpansion.fir.kt | 1 - .../tests/typealias/boundsViolationInTypeAliasExpansion.kt | 1 - .../tests/typealias/innerClassTypeAliasConstructor.fir.kt | 1 - .../tests/typealias/innerClassTypeAliasConstructor.kt | 1 - .../innerClassTypeAliasConstructorInSupertypes.fir.kt | 1 - .../typealias/innerClassTypeAliasConstructorInSupertypes.kt | 1 - .../tests/typealias/innerTypeAliasConstructor.fir.kt | 1 - .../diagnostics/tests/typealias/innerTypeAliasConstructor.kt | 1 - .../noApproximationInTypeAliasArgumentSubstitution.fir.kt | 1 - .../noApproximationInTypeAliasArgumentSubstitution.kt | 1 - .../testData/diagnostics/tests/typealias/starProjection.fir.kt | 1 - .../testData/diagnostics/tests/typealias/starProjection.kt | 1 - .../typealias/typeAliasConstructorCrazyProjections.fir.kt | 1 - .../tests/typealias/typeAliasConstructorCrazyProjections.kt | 1 - .../tests/typealias/typeAliasConstructorForProjection.fir.kt | 1 - .../tests/typealias/typeAliasConstructorForProjection.kt | 1 - .../typeAliasConstructorForProjectionInSupertypes.fir.kt | 1 - .../typealias/typeAliasConstructorForProjectionInSupertypes.kt | 1 - .../typeAliasConstructorTypeArgumentsInference.fir.kt | 1 - .../typealias/typeAliasConstructorTypeArgumentsInference.kt | 1 - ...iasConstructorTypeArgumentsInferenceWithNestedCalls2.fir.kt | 1 - ...peAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt | 1 - ...iasConstructorTypeArgumentsInferenceWithPhantomTypes.fir.kt | 1 - ...peAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt | 1 - .../tests/typealias/typeAliasConstructorWrongVisibility.fir.kt | 1 - .../tests/typealias/typeAliasConstructorWrongVisibility.kt | 1 - .../diagnostics/tests/typealias/typeAliasObjectWithInvoke.kt | 1 - .../wrongNumberOfArgumentsInTypeAliasConstructor.fir.kt | 1 - .../typealias/wrongNumberOfArgumentsInTypeAliasConstructor.kt | 1 - .../conversions/conversionOfSignedToUnsigned.fir.kt | 1 - .../unsignedTypes/conversions/conversionOfSignedToUnsigned.kt | 1 - .../conversions/inferenceForSignedAndUnsignedTypes.fir.kt | 1 - .../conversions/inferenceForSignedAndUnsignedTypes.kt | 1 - .../signedToUnsignedConversionWithExpectedType.fir.kt | 1 - .../conversions/signedToUnsignedConversionWithExpectedType.kt | 1 - .../tests/varargs/NullableTypeForVarargArgument.fir.kt | 1 - .../diagnostics/tests/varargs/NullableTypeForVarargArgument.kt | 1 - .../tests/varargs/assignArrayToVararagInNamedForm_1_3.fir.kt | 1 - .../tests/varargs/assignArrayToVararagInNamedForm_1_3.kt | 1 - .../tests/varargs/assignArrayToVararagInNamedForm_1_4.fir.kt | 1 - .../tests/varargs/assignArrayToVararagInNamedForm_1_4.kt | 1 - .../tests/varargs/assigningArraysToVarargsInAnnotations.fir.kt | 1 - .../tests/varargs/assigningArraysToVarargsInAnnotations.kt | 1 - ...signingSingleElementsInNamedFormFunDeprecation_after.fir.kt | 1 - .../assigningSingleElementsInNamedFormFunDeprecation_after.kt | 1 - ...igningSingleElementsInNamedFormFunDeprecation_before.fir.kt | 1 - .../assigningSingleElementsInNamedFormFunDeprecation_before.kt | 1 - .../tests/varargs/noAssigningArraysToVarargsFeature.fir.kt | 1 - .../tests/varargs/noAssigningArraysToVarargsFeature.kt | 1 - .../testData/diagnostics/tests/when/BranchBypassVal.fir.kt | 1 - compiler/testData/diagnostics/tests/when/BranchBypassVal.kt | 1 - .../testData/diagnostics/tests/when/BranchBypassVar.fir.kt | 1 - compiler/testData/diagnostics/tests/when/BranchBypassVar.kt | 1 - compiler/testData/diagnostics/tests/when/When.fir.kt | 1 - compiler/testData/diagnostics/tests/when/When.kt | 1 - compiler/testData/diagnostics/tests/when/kt10439.fir.kt | 1 - compiler/testData/diagnostics/tests/when/kt10439.kt | 1 - compiler/testData/diagnostics/tests/when/kt10809.fir.kt | 1 - compiler/testData/diagnostics/tests/when/kt10809.kt | 1 - compiler/testData/diagnostics/tests/when/kt9929.fir.kt | 1 - compiler/testData/diagnostics/tests/when/kt9929.kt | 1 - compiler/testData/diagnostics/tests/when/kt9972.fir.kt | 1 - compiler/testData/diagnostics/tests/when/kt9972.kt | 1 - .../tests/when/whenAndLambdaWithExpectedType.fir.kt | 1 - .../diagnostics/tests/when/whenAndLambdaWithExpectedType.kt | 1 - .../diagnostics/tests/when/whenWithNothingAndLambdas.fir.kt | 1 - .../diagnostics/tests/when/whenWithNothingAndLambdas.kt | 1 - .../smartCastOnValueBoundToSubjectVariable.fir.kt | 1 - .../smartCastOnValueBoundToSubjectVariable.kt | 1 - .../testData/diagnostics/testsWithStdLib/ArrayOfNothing.fir.kt | 1 - .../testData/diagnostics/testsWithStdLib/ArrayOfNothing.kt | 1 - .../diagnostics/testsWithStdLib/addAllProjection.fir.kt | 1 - .../testData/diagnostics/testsWithStdLib/addAllProjection.kt | 1 - .../annotationApplicability/suppressOnFunctionReference.fir.kt | 1 - .../annotationApplicability/suppressOnFunctionReference.kt | 1 - .../annotationParameters/valueArrayAndOtherDefault.fir.kt | 1 - .../annotationParameters/valueArrayAndOtherDefault.kt | 1 - .../javaAnnotationWithVarargArgument.fir.kt | 1 - .../javaAnnotationWithVarargArgument.kt | 1 - .../kotlinAnnotationWithVarargArgument.fir.kt | 1 - .../kotlinAnnotationWithVarargArgument.kt | 1 - .../kClass/kClassArrayInAnnotationsInVariance.fir.kt | 1 - .../annotations/kClass/kClassArrayInAnnotationsInVariance.kt | 1 - .../kClass/kClassArrayInAnnotationsOutVariance.fir.kt | 1 - .../annotations/kClass/kClassArrayInAnnotationsOutVariance.kt | 1 - .../testData/diagnostics/testsWithStdLib/assert/cast.fir.kt | 1 - compiler/testData/diagnostics/testsWithStdLib/assert/cast.kt | 1 - .../diagnostics/testsWithStdLib/assert/safeCall.fir.kt | 1 - .../testData/diagnostics/testsWithStdLib/assert/safeCall.kt | 1 - .../diagnostics/testsWithStdLib/cast/AsInsideIn.fir.kt | 1 - .../testData/diagnostics/testsWithStdLib/cast/AsInsideIn.kt | 1 - .../diagnostics/testsWithStdLib/commonCollections.fir.kt | 1 - .../testData/diagnostics/testsWithStdLib/commonCollections.kt | 1 - .../testsWithStdLib/contracts/smartcasts/deeplyNested.fir.kt | 1 - .../testsWithStdLib/contracts/smartcasts/deeplyNested.kt | 1 - .../contracts/smartcasts/externalArguments.fir.kt | 1 - .../testsWithStdLib/contracts/smartcasts/externalArguments.kt | 1 - .../contracts/smartcasts/intersectingInfo.fir.kt | 1 - .../testsWithStdLib/contracts/smartcasts/intersectingInfo.kt | 1 - .../contracts/smartcasts/intersectionTypes.fir.kt | 1 - .../testsWithStdLib/contracts/smartcasts/intersectionTypes.kt | 1 - .../smartcasts/nullabilitySmartcastWhenNullability.fir.kt | 1 - .../smartcasts/nullabilitySmartcastWhenNullability.kt | 1 - .../contracts/smartcasts/operatorsTests/andOperator.fir.kt | 1 - .../contracts/smartcasts/operatorsTests/andOperator.kt | 1 - .../contracts/smartcasts/operatorsTests/equalsOperator.fir.kt | 1 - .../contracts/smartcasts/operatorsTests/equalsOperator.kt | 1 - .../contracts/smartcasts/operatorsTests/orOperator.fir.kt | 1 - .../contracts/smartcasts/operatorsTests/orOperator.kt | 1 - .../testsWithStdLib/contracts/smartcasts/receiver.fir.kt | 1 - .../testsWithStdLib/contracts/smartcasts/receiver.kt | 1 - .../coroutines/inference/applyInsideCoroutine.fir.kt | 2 -- .../coroutines/inference/applyInsideCoroutine.kt | 2 -- .../inference/extensionWithNonValuableConstraints.fir.kt | 1 - .../inference/extensionWithNonValuableConstraints.kt | 1 - .../extensionsWithNonValuableConstraintsGenericBase.fir.kt | 1 - .../extensionsWithNonValuableConstraintsGenericBase.kt | 1 - .../testsWithStdLib/coroutines/inference/incorrectCalls.fir.kt | 1 - .../testsWithStdLib/coroutines/inference/incorrectCalls.kt | 1 - .../coroutines/inference/inferCoroutineTypeInOldVersion.fir.kt | 1 - .../coroutines/inference/inferCoroutineTypeInOldVersion.kt | 1 - .../testsWithStdLib/coroutines/inference/kt15516.fir.kt | 1 - .../testsWithStdLib/coroutines/inference/kt15516.kt | 1 - .../testsWithStdLib/coroutines/inference/kt36220.fir.kt | 1 - .../testsWithStdLib/coroutines/inference/kt36220.kt | 1 - .../coroutines/inference/nestedSuspendCallInsideLambda.kt | 1 - .../coroutines/inference/recursiveGenerators2.fir.kt | 1 - .../coroutines/inference/recursiveGenerators2.kt | 1 - .../inference/resolveUsualCallWithBuilderInference.fir.kt | 1 - .../inference/resolveUsualCallWithBuilderInference.kt | 1 - .../coroutines/inference/suspendCallsWithErrors.fir.kt | 1 - .../coroutines/inference/suspendCallsWithErrors.kt | 1 - .../coroutines/inference/suspendCallsWrongUpperBound.fir.kt | 1 - .../coroutines/inference/suspendCallsWrongUpperBound.kt | 1 - .../inference/useInferenceInformationFromExtension.fir.kt | 1 - .../inference/useInferenceInformationFromExtension.kt | 1 - .../coroutines/inference/withUninferredParameter.fir.kt | 1 - .../coroutines/inference/withUninferredParameter.kt | 1 - .../diagnostics/testsWithStdLib/coroutines/kt18292.fir.kt | 1 - .../testData/diagnostics/testsWithStdLib/coroutines/kt18292.kt | 1 - .../testsWithStdLib/coroutines/lambdaExpectedType.fir.kt | 1 - .../testsWithStdLib/coroutines/lambdaExpectedType.kt | 1 - .../testsWithStdLib/coroutines/suspendCoroutineOrReturn.fir.kt | 1 - .../testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt | 1 - .../testsWithStdLib/coroutines/suspendExternalFunctions.fir.kt | 1 - .../testsWithStdLib/coroutines/suspendExternalFunctions.kt | 1 - .../testsWithStdLib/coroutines/suspendFunctions.fir.kt | 1 - .../diagnostics/testsWithStdLib/coroutines/suspendFunctions.kt | 1 - .../testsWithStdLib/coroutines/tryCatchLambda.fir.kt | 1 - .../diagnostics/testsWithStdLib/coroutines/tryCatchLambda.kt | 1 - .../diagnostics/testsWithStdLib/elvisOnJavaList.fir.kt | 1 - .../testData/diagnostics/testsWithStdLib/elvisOnJavaList.kt | 1 - .../diagnostics/testsWithStdLib/implicitCastToAny.fir.kt | 1 - .../testData/diagnostics/testsWithStdLib/implicitCastToAny.kt | 1 - .../inference/annotationsForResolve/exactAnnotation.fir.kt | 1 - .../inference/annotationsForResolve/exactAnnotation.kt | 1 - .../inference/annotationsForResolve/kt26698.fir.kt | 1 - .../testsWithStdLib/inference/annotationsForResolve/kt26698.kt | 1 - .../inference/annotationsForResolve/kt29307.fir.kt | 1 - .../testsWithStdLib/inference/annotationsForResolve/kt29307.kt | 1 - .../annotationsForResolve/noInferAndLowPriority.fir.kt | 1 - .../inference/annotationsForResolve/noInferAndLowPriority.kt | 1 - .../inference/annotationsForResolve/noInferAnnotation.fir.kt | 1 - .../inference/annotationsForResolve/noInferAnnotation.kt | 1 - .../inference/annotationsForResolve/onlyInputTypes.fir.kt | 1 - .../inference/annotationsForResolve/onlyInputTypes.kt | 1 - .../annotationsForResolve/onlyInputTypesAndLowPriority.fir.kt | 1 - .../annotationsForResolve/onlyInputTypesAndLowPriority.kt | 1 - .../onlyInputTypesAndTopLevelCapturedTypes.fir.kt | 1 - .../onlyInputTypesAndTopLevelCapturedTypes.kt | 1 - .../annotationsForResolve/onlyInputTypesCaptured.fir.kt | 1 - .../inference/annotationsForResolve/onlyInputTypesCaptured.kt | 1 - .../onlyInputTypesCommonConstraintSystem.fir.kt | 1 - .../onlyInputTypesCommonConstraintSystem.kt | 1 - .../annotationsForResolve/onlyInputTypesUpperBound.fir.kt | 1 - .../annotationsForResolve/onlyInputTypesUpperBound.kt | 1 - .../resolveWithOnlyInputTypesAnnotation.fir.kt | 1 - .../resolveWithOnlyInputTypesAnnotation.kt | 1 - .../diagnostics/testsWithStdLib/inference/delegates/kt31219.kt | 1 - .../diagnostics/testsWithStdLib/inference/delegates/kt31679.kt | 1 - .../diagnostics/testsWithStdLib/inference/delegates/kt32249.kt | 1 - .../testsWithStdLib/inference/integerLiterals.fir.kt | 1 - .../diagnostics/testsWithStdLib/inference/integerLiterals.kt | 1 - .../testData/diagnostics/testsWithStdLib/inference/kt11266.kt | 1 - .../diagnostics/testsWithStdLib/inference/kt27772.fir.kt | 1 - .../testData/diagnostics/testsWithStdLib/inference/kt27772.kt | 1 - .../testsWithStdLib/java/concurrentHashMapContains.fir.kt | 1 - .../testsWithStdLib/java/concurrentHashMapContains.kt | 1 - .../testsWithStdLib/java/concurrentHashMapContainsError.fir.kt | 1 - .../testsWithStdLib/java/concurrentHashMapContainsError.kt | 1 - .../testData/diagnostics/testsWithStdLib/kt7585/delegate.kt | 1 - .../purelyImplementedCollection/arrayList.fir.kt | 1 - .../testsWithStdLib/purelyImplementedCollection/arrayList.kt | 1 - .../purelyImplementedCollection/arrayListNullable.fir.kt | 1 - .../purelyImplementedCollection/arrayListNullable.kt | 1 - .../customClassMutableCollection.fir.kt | 1 - .../customClassMutableCollection.kt | 1 - .../purelyImplementedCollection/customClassMutableList.fir.kt | 1 - .../purelyImplementedCollection/customClassMutableList.kt | 1 - .../testsWithStdLib/purelyImplementedCollection/maps.fir.kt | 1 - .../testsWithStdLib/purelyImplementedCollection/maps.kt | 1 - .../purelyImplementedCollection/mapsWithNullableKey.fir.kt | 1 - .../purelyImplementedCollection/mapsWithNullableKey.kt | 1 - .../purelyImplementedCollection/mapsWithNullableValues.fir.kt | 1 - .../purelyImplementedCollection/mapsWithNullableValues.kt | 1 - .../testsWithStdLib/purelyImplementedCollection/sets.fir.kt | 1 - .../testsWithStdLib/purelyImplementedCollection/sets.kt | 1 - .../regression/kt9820_javaFunctionTypeInheritor.fir.kt | 1 - .../regression/kt9820_javaFunctionTypeInheritor.kt | 1 - .../testsWithStdLib/reified/arrayConstruction.fir.kt | 1 - .../diagnostics/testsWithStdLib/reified/arrayConstruction.kt | 1 - .../testsWithStdLib/reified/reifiedNothingSubstitution.fir.kt | 1 - .../testsWithStdLib/reified/reifiedNothingSubstitution.kt | 1 - .../diagnostics/testsWithStdLib/resolve/hidesMembers.fir.kt | 1 - .../diagnostics/testsWithStdLib/resolve/hidesMembers.kt | 1 - .../diagnostics/testsWithStdLib/resolve/hidesMembers2.fir.kt | 1 - .../diagnostics/testsWithStdLib/resolve/hidesMembers2.kt | 1 - .../testData/diagnostics/testsWithStdLib/resolve/kt4711.fir.kt | 1 - .../testData/diagnostics/testsWithStdLib/resolve/kt4711.kt | 1 - .../testsWithStdLib/resolve/samAgainstFunctionalType.fir.kt | 1 - .../testsWithStdLib/resolve/samAgainstFunctionalType.kt | 1 - .../testsWithStdLib/resolve/samOverloadsWithGenerics.fir.kt | 1 - .../testsWithStdLib/resolve/samOverloadsWithGenerics.kt | 1 - .../resolve/samOverloadsWithGenericsWithoutRefinedSams.fir.kt | 1 - .../resolve/samOverloadsWithGenericsWithoutRefinedSams.kt | 1 - .../samOverloadsWithKtFunctionWithoutRefinedSams.fir.kt | 1 - .../resolve/samOverloadsWithKtFunctionWithoutRefinedSams.kt | 1 - .../diagnostics/testsWithStdLib/smartcasts/forEachSafe.fir.kt | 1 - .../diagnostics/testsWithStdLib/smartcasts/forEachSafe.kt | 1 - .../testsWithStdLib/targetedBuiltIns/unsupportedFeature.fir.kt | 1 - .../testsWithStdLib/targetedBuiltIns/unsupportedFeature.kt | 1 - .../diagnostics/testsWithStdLib/tryCatch/assignTry.fir.kt | 1 - .../testData/diagnostics/testsWithStdLib/tryCatch/assignTry.kt | 1 - .../testsWithStdLib/tryCatch/correctSmartcasts.fir.kt | 1 - .../diagnostics/testsWithStdLib/tryCatch/correctSmartcasts.kt | 1 - .../testsWithStdLib/tryCatch/correctSmartcasts_after.fir.kt | 1 - .../testsWithStdLib/tryCatch/correctSmartcasts_after.kt | 1 - .../testsWithStdLib/tryCatch/falseNegativeSmartcasts.fir.kt | 1 - .../testsWithStdLib/tryCatch/falseNegativeSmartcasts.kt | 1 - .../tryCatch/falseNegativeSmartcasts_after.fir.kt | 1 - .../testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.kt | 1 - .../testsWithStdLib/tryCatch/falsePositiveSmartcasts.fir.kt | 1 - .../testsWithStdLib/tryCatch/falsePositiveSmartcasts.kt | 1 - .../tryCatch/falsePositiveSmartcasts_after.fir.kt | 1 - .../testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.kt | 1 - .../diagnostics/testsWithStdLib/tryCatch/tryExpression.fir.kt | 1 - .../diagnostics/testsWithStdLib/tryCatch/tryExpression.kt | 1 - .../testsWithStdLib/when/noTypeArgumentsInConstructor.fir.kt | 1 - .../testsWithStdLib/when/noTypeArgumentsInConstructor.kt | 1 - .../notLinked/annotations/type-annotations/neg/11.fir.kt | 1 - .../notLinked/annotations/type-annotations/neg/11.kt | 1 - .../notLinked/annotations/type-annotations/neg/6.fir.kt | 1 - .../notLinked/annotations/type-annotations/neg/6.kt | 1 - .../notLinked/annotations/type-annotations/neg/7.fir.kt | 1 - .../notLinked/annotations/type-annotations/neg/7.kt | 1 - .../notLinked/contracts/analysis/common/neg/1.fir.kt | 1 - .../diagnostics/notLinked/contracts/analysis/common/neg/1.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/1.fir.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/1.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/10.fir.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/10.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/15.fir.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/15.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/2.fir.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/2.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/4.fir.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/4.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/5.fir.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/5.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/6.fir.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/6.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/7.fir.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/7.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/8.fir.kt | 1 - .../notLinked/contracts/analysis/smartcasts/neg/8.kt | 1 - .../notLinked/contracts/analysis/smartcasts/pos/2.fir.kt | 1 - .../notLinked/contracts/analysis/smartcasts/pos/2.kt | 1 - .../notLinked/contracts/analysis/smartcasts/pos/4.fir.kt | 1 - .../notLinked/contracts/analysis/smartcasts/pos/4.kt | 1 - .../notLinked/contracts/analysis/smartcasts/pos/8.fir.kt | 1 - .../notLinked/contracts/analysis/smartcasts/pos/8.kt | 1 - .../contracts/declarations/contractBuilder/common/neg/4.fir.kt | 1 - .../contracts/declarations/contractBuilder/common/neg/4.kt | 1 - .../contracts/declarations/contractBuilder/common/neg/5.fir.kt | 1 - .../contracts/declarations/contractBuilder/common/neg/5.kt | 1 - .../testData/quickfix/changeSignature/addFunctionParameter3.kt | 3 +-- .../quickfix/changeSignature/addFunctionParameter3.kt.after | 3 +-- .../sam-with-receiver-cli/testData/diagnostics/noReturnType.kt | 1 - .../testData/diagnostics/samConversionSimple.kt | 1 - .../testData/diagnostics/samWithAnnotation.kt | 1 - .../testData/diagnostics/samWithoutAnnotation.kt | 1 - .../testData/diagnostics/singleParameter.kt | 1 - .../testData/diagnostics/singleParameterWithoutAnnotation.kt | 1 - 1333 files changed, 2 insertions(+), 1337 deletions(-) diff --git a/compiler/fir/analysis-tests/testData/resolve/inference/lambdasReturns.kt b/compiler/fir/analysis-tests/testData/resolve/inference/lambdasReturns.kt index 665e02bed0b..fb8ecfcd37a 100644 --- a/compiler/fir/analysis-tests/testData/resolve/inference/lambdasReturns.kt +++ b/compiler/fir/analysis-tests/testData/resolve/inference/lambdasReturns.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE fun myRun(b: () -> R): R = b() diff --git a/compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jsr305/typeArguments.kt b/compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jsr305/typeArguments.kt index 53ab6c86e4d..fd3542996a7 100644 --- a/compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jsr305/typeArguments.kt +++ b/compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jsr305/typeArguments.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // RENDER_PACKAGE: test // SOURCE_RETENTION_ANNOTATIONS // WITH_RUNTIME diff --git a/compiler/testData/diagnostics/nonStableParameterNames/test.kt b/compiler/testData/diagnostics/nonStableParameterNames/test.kt index 9170ae58d19..7a4bbbe157c 100644 --- a/compiler/testData/diagnostics/nonStableParameterNames/test.kt +++ b/compiler/testData/diagnostics/nonStableParameterNames/test.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +NewInference // MODULE: m1-common // FILE: test.kt diff --git a/compiler/testData/diagnostics/tests/AutoCreatedIt.fir.kt b/compiler/testData/diagnostics/tests/AutoCreatedIt.fir.kt index c151676b279..a0359bbde12 100644 --- a/compiler/testData/diagnostics/tests/AutoCreatedIt.fir.kt +++ b/compiler/testData/diagnostics/tests/AutoCreatedIt.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun text() { "direct:a" to "mock:a" "direct:a" on {it.body == ""} to "mock:a" diff --git a/compiler/testData/diagnostics/tests/AutoCreatedIt.kt b/compiler/testData/diagnostics/tests/AutoCreatedIt.kt index 881d52f82f1..8a91f608b6d 100644 --- a/compiler/testData/diagnostics/tests/AutoCreatedIt.kt +++ b/compiler/testData/diagnostics/tests/AutoCreatedIt.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun text() { "direct:a" to "mock:a" "direct:a" on {it.body == ""} to "mock:a" diff --git a/compiler/testData/diagnostics/tests/Basic.fir.kt b/compiler/testData/diagnostics/tests/Basic.fir.kt index d1734fa60bb..34de9ab9b50 100644 --- a/compiler/testData/diagnostics/tests/Basic.fir.kt +++ b/compiler/testData/diagnostics/tests/Basic.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(u : Unit) : Int = 1 fun test() : Int { diff --git a/compiler/testData/diagnostics/tests/Basic.kt b/compiler/testData/diagnostics/tests/Basic.kt index dcd68b62155..45e6bad774c 100644 --- a/compiler/testData/diagnostics/tests/Basic.kt +++ b/compiler/testData/diagnostics/tests/Basic.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(u : Unit) : Int = 1 fun test() : Int { diff --git a/compiler/testData/diagnostics/tests/BinaryCallsOnNullableValues.fir.kt b/compiler/testData/diagnostics/tests/BinaryCallsOnNullableValues.fir.kt index 3086aed6ca3..5b81b2a8b17 100644 --- a/compiler/testData/diagnostics/tests/BinaryCallsOnNullableValues.fir.kt +++ b/compiler/testData/diagnostics/tests/BinaryCallsOnNullableValues.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A() { override fun equals(other : Any?) : Boolean = false } diff --git a/compiler/testData/diagnostics/tests/BinaryCallsOnNullableValues.kt b/compiler/testData/diagnostics/tests/BinaryCallsOnNullableValues.kt index 24cc9eb00f7..135111a7019 100644 --- a/compiler/testData/diagnostics/tests/BinaryCallsOnNullableValues.kt +++ b/compiler/testData/diagnostics/tests/BinaryCallsOnNullableValues.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A() { override fun equals(other : Any?) : Boolean = false } diff --git a/compiler/testData/diagnostics/tests/Bounds.fir.kt b/compiler/testData/diagnostics/tests/Bounds.fir.kt index 2ce05505b6c..8930a684628 100644 --- a/compiler/testData/diagnostics/tests/Bounds.fir.kt +++ b/compiler/testData/diagnostics/tests/Bounds.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: a.kt package boundsWithSubstitutors open class A diff --git a/compiler/testData/diagnostics/tests/Bounds.kt b/compiler/testData/diagnostics/tests/Bounds.kt index d91a22dc5c3..2efca46f280 100644 --- a/compiler/testData/diagnostics/tests/Bounds.kt +++ b/compiler/testData/diagnostics/tests/Bounds.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: a.kt package boundsWithSubstitutors open class A diff --git a/compiler/testData/diagnostics/tests/CompareToWithErrorType.fir.kt b/compiler/testData/diagnostics/tests/CompareToWithErrorType.fir.kt index fec2b30356a..e67fb979fb2 100644 --- a/compiler/testData/diagnostics/tests/CompareToWithErrorType.fir.kt +++ b/compiler/testData/diagnostics/tests/CompareToWithErrorType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test() { if (x > 0) { diff --git a/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt b/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt index e77f1473e88..9896a869e34 100644 --- a/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt +++ b/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test() { if (x > 0) { diff --git a/compiler/testData/diagnostics/tests/DefaultValuesTypechecking.fir.kt b/compiler/testData/diagnostics/tests/DefaultValuesTypechecking.fir.kt index 4e96a72204b..359e3ced476 100644 --- a/compiler/testData/diagnostics/tests/DefaultValuesTypechecking.fir.kt +++ b/compiler/testData/diagnostics/tests/DefaultValuesTypechecking.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE val x = "" fun bar(x : Int = "", y : Int = x, z : String = y) { diff --git a/compiler/testData/diagnostics/tests/DefaultValuesTypechecking.kt b/compiler/testData/diagnostics/tests/DefaultValuesTypechecking.kt index 6296df3218a..5ae410941ce 100644 --- a/compiler/testData/diagnostics/tests/DefaultValuesTypechecking.kt +++ b/compiler/testData/diagnostics/tests/DefaultValuesTypechecking.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE val x = "" fun bar(x : Int = "", y : Int = x, z : String = y) { diff --git a/compiler/testData/diagnostics/tests/DeprecatedUnaryOperatorConventions.fir.kt b/compiler/testData/diagnostics/tests/DeprecatedUnaryOperatorConventions.fir.kt index 199638af940..eb8df0587ce 100644 --- a/compiler/testData/diagnostics/tests/DeprecatedUnaryOperatorConventions.fir.kt +++ b/compiler/testData/diagnostics/tests/DeprecatedUnaryOperatorConventions.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class Example { diff --git a/compiler/testData/diagnostics/tests/DeprecatedUnaryOperatorConventions.kt b/compiler/testData/diagnostics/tests/DeprecatedUnaryOperatorConventions.kt index c39ee97049a..6d714fe9908 100644 --- a/compiler/testData/diagnostics/tests/DeprecatedUnaryOperatorConventions.kt +++ b/compiler/testData/diagnostics/tests/DeprecatedUnaryOperatorConventions.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class Example { diff --git a/compiler/testData/diagnostics/tests/EnumEntryAsType.fir.kt b/compiler/testData/diagnostics/tests/EnumEntryAsType.fir.kt index a904de616fe..9c4a71a3c1a 100644 --- a/compiler/testData/diagnostics/tests/EnumEntryAsType.fir.kt +++ b/compiler/testData/diagnostics/tests/EnumEntryAsType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER enum class Color { diff --git a/compiler/testData/diagnostics/tests/EnumEntryAsType.kt b/compiler/testData/diagnostics/tests/EnumEntryAsType.kt index ff475d00452..eafd23d7bc7 100644 --- a/compiler/testData/diagnostics/tests/EnumEntryAsType.kt +++ b/compiler/testData/diagnostics/tests/EnumEntryAsType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER enum class Color { diff --git a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.fir.kt b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.fir.kt index b2f78d008b9..f6a8f07798a 100644 --- a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.fir.kt +++ b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.fir.kt @@ -1,5 +1,4 @@ // COMPARE_WITH_LIGHT_TREE -// !WITH_NEW_INFERENCE // !CHECK_TYPE package foo diff --git a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt index 8676b9e0f23..f09c9082616 100644 --- a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt +++ b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt @@ -1,5 +1,4 @@ // COMPARE_WITH_LIGHT_TREE -// !WITH_NEW_INFERENCE // !CHECK_TYPE package foo diff --git a/compiler/testData/diagnostics/tests/FunctionReturnTypes.fir.kt b/compiler/testData/diagnostics/tests/FunctionReturnTypes.fir.kt index 73ce3f42863..e2a946d630d 100644 --- a/compiler/testData/diagnostics/tests/FunctionReturnTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/FunctionReturnTypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNREACHABLE_CODE fun none() {} diff --git a/compiler/testData/diagnostics/tests/FunctionReturnTypes.kt b/compiler/testData/diagnostics/tests/FunctionReturnTypes.kt index 464d2d06ac5..a3227ad6bd3 100644 --- a/compiler/testData/diagnostics/tests/FunctionReturnTypes.kt +++ b/compiler/testData/diagnostics/tests/FunctionReturnTypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNREACHABLE_CODE fun none() {} diff --git a/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.fir.kt b/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.fir.kt index fae4df97b96..5fa0c8d6f4d 100644 --- a/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.fir.kt +++ b/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE fun test() = 3 diff --git a/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.kt b/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.kt index 2b99daf752b..6628cb9d72f 100644 --- a/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.kt +++ b/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE fun test() = 3 diff --git a/compiler/testData/diagnostics/tests/Nullability.fir.kt b/compiler/testData/diagnostics/tests/Nullability.fir.kt index 4fa6157c966..8d5ec364e26 100644 --- a/compiler/testData/diagnostics/tests/Nullability.fir.kt +++ b/compiler/testData/diagnostics/tests/Nullability.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FULL_JDK fun test() { diff --git a/compiler/testData/diagnostics/tests/Nullability.kt b/compiler/testData/diagnostics/tests/Nullability.kt index f6d21f2d4ed..3889d2be13c 100644 --- a/compiler/testData/diagnostics/tests/Nullability.kt +++ b/compiler/testData/diagnostics/tests/Nullability.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FULL_JDK fun test() { diff --git a/compiler/testData/diagnostics/tests/PackageQualified.fir.kt b/compiler/testData/diagnostics/tests/PackageQualified.fir.kt index 7c2d34bd022..e00b599540d 100644 --- a/compiler/testData/diagnostics/tests/PackageQualified.fir.kt +++ b/compiler/testData/diagnostics/tests/PackageQualified.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: a.kt diff --git a/compiler/testData/diagnostics/tests/PackageQualified.kt b/compiler/testData/diagnostics/tests/PackageQualified.kt index 040208dbdf0..489e40cebc6 100644 --- a/compiler/testData/diagnostics/tests/PackageQualified.kt +++ b/compiler/testData/diagnostics/tests/PackageQualified.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: a.kt diff --git a/compiler/testData/diagnostics/tests/QualifiedExpressions.fir.kt b/compiler/testData/diagnostics/tests/QualifiedExpressions.fir.kt index 78e08ab5865..3dcdcf9b0cd 100644 --- a/compiler/testData/diagnostics/tests/QualifiedExpressions.fir.kt +++ b/compiler/testData/diagnostics/tests/QualifiedExpressions.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package qualified_expressions fun test(s: IntRange?) { diff --git a/compiler/testData/diagnostics/tests/QualifiedExpressions.kt b/compiler/testData/diagnostics/tests/QualifiedExpressions.kt index 899bd895035..969ef63c950 100644 --- a/compiler/testData/diagnostics/tests/QualifiedExpressions.kt +++ b/compiler/testData/diagnostics/tests/QualifiedExpressions.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package qualified_expressions fun test(s: IntRange?) { diff --git a/compiler/testData/diagnostics/tests/RecursiveTypeInference.fir.kt b/compiler/testData/diagnostics/tests/RecursiveTypeInference.fir.kt index 93c53906a00..b6dd3c5d6d3 100644 --- a/compiler/testData/diagnostics/tests/RecursiveTypeInference.fir.kt +++ b/compiler/testData/diagnostics/tests/RecursiveTypeInference.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // FILE: a.kt diff --git a/compiler/testData/diagnostics/tests/RecursiveTypeInference.kt b/compiler/testData/diagnostics/tests/RecursiveTypeInference.kt index 45601ce7a15..c6927a7d29a 100644 --- a/compiler/testData/diagnostics/tests/RecursiveTypeInference.kt +++ b/compiler/testData/diagnostics/tests/RecursiveTypeInference.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // FILE: a.kt diff --git a/compiler/testData/diagnostics/tests/ReserveYield.fir.kt b/compiler/testData/diagnostics/tests/ReserveYield.fir.kt index 314f4435d9c..3716c8e4405 100644 --- a/compiler/testData/diagnostics/tests/ReserveYield.fir.kt +++ b/compiler/testData/diagnostics/tests/ReserveYield.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION -UNREACHABLE_CODE -UNUSED_VARIABLE // FILE: 1.kt diff --git a/compiler/testData/diagnostics/tests/ReserveYield.kt b/compiler/testData/diagnostics/tests/ReserveYield.kt index a4ba561fe6f..c55b07f3b0d 100644 --- a/compiler/testData/diagnostics/tests/ReserveYield.kt +++ b/compiler/testData/diagnostics/tests/ReserveYield.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION -UNREACHABLE_CODE -UNUSED_VARIABLE // FILE: 1.kt diff --git a/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.fir.kt b/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.fir.kt index 782ff38e3aa..77e680a4f11 100644 --- a/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.fir.kt +++ b/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // Fixpoint generic in Java: Enum> fun test(a : java.lang.annotation.RetentionPolicy) { diff --git a/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt b/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt index dc63117b808..337e628f7b6 100644 --- a/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt +++ b/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // Fixpoint generic in Java: Enum> fun test(a : java.lang.annotation.RetentionPolicy) { diff --git a/compiler/testData/diagnostics/tests/ResolveToJava.fir.kt b/compiler/testData/diagnostics/tests/ResolveToJava.fir.kt index 5f606da6594..784c31056d5 100644 --- a/compiler/testData/diagnostics/tests/ResolveToJava.fir.kt +++ b/compiler/testData/diagnostics/tests/ResolveToJava.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // SKIP_JAVAC // FULL_JDK diff --git a/compiler/testData/diagnostics/tests/ResolveToJava.kt b/compiler/testData/diagnostics/tests/ResolveToJava.kt index a4c7a166462..974cd4d6a9b 100644 --- a/compiler/testData/diagnostics/tests/ResolveToJava.kt +++ b/compiler/testData/diagnostics/tests/ResolveToJava.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // SKIP_JAVAC // FULL_JDK diff --git a/compiler/testData/diagnostics/tests/SafeCallNonNullReceiverReturnNull.fir.kt b/compiler/testData/diagnostics/tests/SafeCallNonNullReceiverReturnNull.fir.kt index 240fd132847..55512d0cfd5 100644 --- a/compiler/testData/diagnostics/tests/SafeCallNonNullReceiverReturnNull.fir.kt +++ b/compiler/testData/diagnostics/tests/SafeCallNonNullReceiverReturnNull.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun Int.gg() = null fun ff() { diff --git a/compiler/testData/diagnostics/tests/SafeCallNonNullReceiverReturnNull.kt b/compiler/testData/diagnostics/tests/SafeCallNonNullReceiverReturnNull.kt index e105ae0a135..fe6d5efeeed 100644 --- a/compiler/testData/diagnostics/tests/SafeCallNonNullReceiverReturnNull.kt +++ b/compiler/testData/diagnostics/tests/SafeCallNonNullReceiverReturnNull.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun Int.gg() = null fun ff() { diff --git a/compiler/testData/diagnostics/tests/SafeCallUnknownType.fir.kt b/compiler/testData/diagnostics/tests/SafeCallUnknownType.fir.kt index b341e164a90..f3fe54b94e8 100644 --- a/compiler/testData/diagnostics/tests/SafeCallUnknownType.fir.kt +++ b/compiler/testData/diagnostics/tests/SafeCallUnknownType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import com.unknown fun ff() { diff --git a/compiler/testData/diagnostics/tests/SafeCallUnknownType.kt b/compiler/testData/diagnostics/tests/SafeCallUnknownType.kt index 2bb6f28c781..613cb02324c 100644 --- a/compiler/testData/diagnostics/tests/SafeCallUnknownType.kt +++ b/compiler/testData/diagnostics/tests/SafeCallUnknownType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import com.unknown fun ff() { diff --git a/compiler/testData/diagnostics/tests/StarsInFunctionCalls.fir.kt b/compiler/testData/diagnostics/tests/StarsInFunctionCalls.fir.kt index 00c3c14227e..854ee98e6fa 100644 --- a/compiler/testData/diagnostics/tests/StarsInFunctionCalls.fir.kt +++ b/compiler/testData/diagnostics/tests/StarsInFunctionCalls.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun getT() {} fun getTT() {} diff --git a/compiler/testData/diagnostics/tests/StarsInFunctionCalls.kt b/compiler/testData/diagnostics/tests/StarsInFunctionCalls.kt index da6c5b5ac38..136c64c41d4 100644 --- a/compiler/testData/diagnostics/tests/StarsInFunctionCalls.kt +++ b/compiler/testData/diagnostics/tests/StarsInFunctionCalls.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun getT() {} fun getTT() {} diff --git a/compiler/testData/diagnostics/tests/TypeInference.fir.kt b/compiler/testData/diagnostics/tests/TypeInference.fir.kt index 29dd29364f7..8348f80e5c5 100644 --- a/compiler/testData/diagnostics/tests/TypeInference.fir.kt +++ b/compiler/testData/diagnostics/tests/TypeInference.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class C() { fun foo() : T {} } diff --git a/compiler/testData/diagnostics/tests/TypeInference.kt b/compiler/testData/diagnostics/tests/TypeInference.kt index 147fe6fa2cc..ecb0a45bf27 100644 --- a/compiler/testData/diagnostics/tests/TypeInference.kt +++ b/compiler/testData/diagnostics/tests/TypeInference.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class C() { fun foo() : T {} } diff --git a/compiler/testData/diagnostics/tests/Variance.fir.kt b/compiler/testData/diagnostics/tests/Variance.fir.kt index 8178589aa1f..aede7126fba 100644 --- a/compiler/testData/diagnostics/tests/Variance.fir.kt +++ b/compiler/testData/diagnostics/tests/Variance.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package variance abstract class Consumer {} diff --git a/compiler/testData/diagnostics/tests/Variance.kt b/compiler/testData/diagnostics/tests/Variance.kt index 5df6ddb09b7..15d19dfeb06 100644 --- a/compiler/testData/diagnostics/tests/Variance.kt +++ b/compiler/testData/diagnostics/tests/Variance.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package variance abstract class Consumer {} diff --git a/compiler/testData/diagnostics/tests/annotations/AmbigiousAnnotationConstructor.fir.kt b/compiler/testData/diagnostics/tests/annotations/AmbigiousAnnotationConstructor.fir.kt index 6308b7f55af..50926c635e0 100644 --- a/compiler/testData/diagnostics/tests/annotations/AmbigiousAnnotationConstructor.fir.kt +++ b/compiler/testData/diagnostics/tests/annotations/AmbigiousAnnotationConstructor.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import java.util.ArrayList @ArrayList(1, 1) fun b() {} diff --git a/compiler/testData/diagnostics/tests/annotations/AmbigiousAnnotationConstructor.kt b/compiler/testData/diagnostics/tests/annotations/AmbigiousAnnotationConstructor.kt index 409c262a427..8f133360364 100644 --- a/compiler/testData/diagnostics/tests/annotations/AmbigiousAnnotationConstructor.kt +++ b/compiler/testData/diagnostics/tests/annotations/AmbigiousAnnotationConstructor.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import java.util.ArrayList @ArrayList(1, 1) fun b() {} diff --git a/compiler/testData/diagnostics/tests/annotations/annotationRenderingInTypes.fir.kt b/compiler/testData/diagnostics/tests/annotations/annotationRenderingInTypes.fir.kt index a34cd9ef536..323f5e83ce2 100644 --- a/compiler/testData/diagnostics/tests/annotations/annotationRenderingInTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/annotations/annotationRenderingInTypes.fir.kt @@ -1,6 +1,5 @@ // !RENDER_DIAGNOSTICS_MESSAGES // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -UNUSED_ANONYMOUS_PARAMETER -// !WITH_NEW_INFERENCE fun f1(x: String) {} fun f2(f: () -> Unit) {} diff --git a/compiler/testData/diagnostics/tests/annotations/annotationRenderingInTypes.kt b/compiler/testData/diagnostics/tests/annotations/annotationRenderingInTypes.kt index e9ce6a8f807..944951ae971 100644 --- a/compiler/testData/diagnostics/tests/annotations/annotationRenderingInTypes.kt +++ b/compiler/testData/diagnostics/tests/annotations/annotationRenderingInTypes.kt @@ -1,6 +1,5 @@ // !RENDER_DIAGNOSTICS_MESSAGES // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -UNUSED_ANONYMOUS_PARAMETER -// !WITH_NEW_INFERENCE fun f1(x: String) {} fun f2(f: () -> Unit) {} diff --git a/compiler/testData/diagnostics/tests/annotations/kt1860-negative.fir.kt b/compiler/testData/diagnostics/tests/annotations/kt1860-negative.fir.kt index 8be3f456775..25f169f46c6 100644 --- a/compiler/testData/diagnostics/tests/annotations/kt1860-negative.fir.kt +++ b/compiler/testData/diagnostics/tests/annotations/kt1860-negative.fir.kt @@ -1,5 +1,4 @@ // COMPARE_WITH_LIGHT_TREE -// !WITH_NEW_INFERENCE fun foo(@varargs f : Int) {} var bar : Int = 1 diff --git a/compiler/testData/diagnostics/tests/annotations/kt1860-negative.kt b/compiler/testData/diagnostics/tests/annotations/kt1860-negative.kt index c80fce6eb25..de6b4caa25f 100644 --- a/compiler/testData/diagnostics/tests/annotations/kt1860-negative.kt +++ b/compiler/testData/diagnostics/tests/annotations/kt1860-negative.kt @@ -1,5 +1,4 @@ // COMPARE_WITH_LIGHT_TREE -// !WITH_NEW_INFERENCE fun foo(@varargs f : Int) {} var bar : Int = 1 diff --git a/compiler/testData/diagnostics/tests/annotations/kt1860-positive.fir.kt b/compiler/testData/diagnostics/tests/annotations/kt1860-positive.fir.kt index ccde52c566b..39fd91f40ea 100644 --- a/compiler/testData/diagnostics/tests/annotations/kt1860-positive.fir.kt +++ b/compiler/testData/diagnostics/tests/annotations/kt1860-positive.fir.kt @@ -1,5 +1,4 @@ // COMPARE_WITH_LIGHT_TREE -// !WITH_NEW_INFERENCE @Target(AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.EXPRESSION) @Retention(AnnotationRetention.SOURCE) annotation class test diff --git a/compiler/testData/diagnostics/tests/annotations/kt1860-positive.kt b/compiler/testData/diagnostics/tests/annotations/kt1860-positive.kt index 50e1d48c1f4..124e098212e 100644 --- a/compiler/testData/diagnostics/tests/annotations/kt1860-positive.kt +++ b/compiler/testData/diagnostics/tests/annotations/kt1860-positive.kt @@ -1,5 +1,4 @@ // COMPARE_WITH_LIGHT_TREE -// !WITH_NEW_INFERENCE @Target(AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.EXPRESSION) @Retention(AnnotationRetention.SOURCE) annotation class test diff --git a/compiler/testData/diagnostics/tests/annotations/options/functions.fir.kt b/compiler/testData/diagnostics/tests/annotations/options/functions.fir.kt index 75c730eb87c..0b514effb7f 100644 --- a/compiler/testData/diagnostics/tests/annotations/options/functions.fir.kt +++ b/compiler/testData/diagnostics/tests/annotations/options/functions.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE @Target(AnnotationTarget.FUNCTION) annotation class FunAnn diff --git a/compiler/testData/diagnostics/tests/annotations/options/functions.kt b/compiler/testData/diagnostics/tests/annotations/options/functions.kt index 74cf26d1662..5d1a0dfa987 100644 --- a/compiler/testData/diagnostics/tests/annotations/options/functions.kt +++ b/compiler/testData/diagnostics/tests/annotations/options/functions.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE @Target(AnnotationTarget.FUNCTION) annotation class FunAnn diff --git a/compiler/testData/diagnostics/tests/annotations/options/targets/field.fir.kt b/compiler/testData/diagnostics/tests/annotations/options/targets/field.fir.kt index 0eeb8e03956..ffa9d4ec5f2 100644 --- a/compiler/testData/diagnostics/tests/annotations/options/targets/field.fir.kt +++ b/compiler/testData/diagnostics/tests/annotations/options/targets/field.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE @Target(AnnotationTarget.FIELD) annotation class Field diff --git a/compiler/testData/diagnostics/tests/annotations/options/targets/field.kt b/compiler/testData/diagnostics/tests/annotations/options/targets/field.kt index 43d09706892..82e14460c33 100644 --- a/compiler/testData/diagnostics/tests/annotations/options/targets/field.kt +++ b/compiler/testData/diagnostics/tests/annotations/options/targets/field.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE @Target(AnnotationTarget.FIELD) annotation class Field diff --git a/compiler/testData/diagnostics/tests/annotations/rendering/memberProjectedOut.fir.kt b/compiler/testData/diagnostics/tests/annotations/rendering/memberProjectedOut.fir.kt index 8346964ae3e..3e7b3ab4e33 100644 --- a/compiler/testData/diagnostics/tests/annotations/rendering/memberProjectedOut.fir.kt +++ b/compiler/testData/diagnostics/tests/annotations/rendering/memberProjectedOut.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // !RENDER_DIAGNOSTICS_MESSAGES @Target(AnnotationTarget.FUNCTION, AnnotationTarget.TYPE, AnnotationTarget.CLASS) diff --git a/compiler/testData/diagnostics/tests/annotations/rendering/memberProjectedOut.kt b/compiler/testData/diagnostics/tests/annotations/rendering/memberProjectedOut.kt index 5894bcfa7e2..ac01f082922 100644 --- a/compiler/testData/diagnostics/tests/annotations/rendering/memberProjectedOut.kt +++ b/compiler/testData/diagnostics/tests/annotations/rendering/memberProjectedOut.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // !RENDER_DIAGNOSTICS_MESSAGES @Target(AnnotationTarget.FUNCTION, AnnotationTarget.TYPE, AnnotationTarget.CLASS) diff --git a/compiler/testData/diagnostics/tests/annotations/rendering/typeMismatchDueToTypeProjections.fir.kt b/compiler/testData/diagnostics/tests/annotations/rendering/typeMismatchDueToTypeProjections.fir.kt index 12eee8e21eb..23e9343c986 100644 --- a/compiler/testData/diagnostics/tests/annotations/rendering/typeMismatchDueToTypeProjections.fir.kt +++ b/compiler/testData/diagnostics/tests/annotations/rendering/typeMismatchDueToTypeProjections.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !RENDER_DIAGNOSTICS_MESSAGES -// !WITH_NEW_INFERENCE @Target(AnnotationTarget.FUNCTION, AnnotationTarget.TYPE, AnnotationTarget.CLASS) annotation class A diff --git a/compiler/testData/diagnostics/tests/annotations/rendering/typeMismatchDueToTypeProjections.kt b/compiler/testData/diagnostics/tests/annotations/rendering/typeMismatchDueToTypeProjections.kt index 6cc078e1704..1d36df574a1 100644 --- a/compiler/testData/diagnostics/tests/annotations/rendering/typeMismatchDueToTypeProjections.kt +++ b/compiler/testData/diagnostics/tests/annotations/rendering/typeMismatchDueToTypeProjections.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !RENDER_DIAGNOSTICS_MESSAGES -// !WITH_NEW_INFERENCE @Target(AnnotationTarget.FUNCTION, AnnotationTarget.TYPE, AnnotationTarget.CLASS) annotation class A diff --git a/compiler/testData/diagnostics/tests/callableReference/bound/reservedExpressionSyntax3.fir.kt b/compiler/testData/diagnostics/tests/callableReference/bound/reservedExpressionSyntax3.fir.kt index 40937ce03de..d862d9c81e5 100644 --- a/compiler/testData/diagnostics/tests/callableReference/bound/reservedExpressionSyntax3.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/bound/reservedExpressionSyntax3.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE package test diff --git a/compiler/testData/diagnostics/tests/callableReference/bound/reservedExpressionSyntax3.kt b/compiler/testData/diagnostics/tests/callableReference/bound/reservedExpressionSyntax3.kt index 99f905559f3..3da97d10970 100644 --- a/compiler/testData/diagnostics/tests/callableReference/bound/reservedExpressionSyntax3.kt +++ b/compiler/testData/diagnostics/tests/callableReference/bound/reservedExpressionSyntax3.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE package test diff --git a/compiler/testData/diagnostics/tests/callableReference/constraintFromLHSWithCorrectDirection.fir.kt b/compiler/testData/diagnostics/tests/callableReference/constraintFromLHSWithCorrectDirection.fir.kt index 4c3d9378ae1..33608a65ca8 100644 --- a/compiler/testData/diagnostics/tests/callableReference/constraintFromLHSWithCorrectDirection.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/constraintFromLHSWithCorrectDirection.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KProperty1 diff --git a/compiler/testData/diagnostics/tests/callableReference/constraintFromLHSWithCorrectDirection.kt b/compiler/testData/diagnostics/tests/callableReference/constraintFromLHSWithCorrectDirection.kt index 11074194cc9..7d33d7349a6 100644 --- a/compiler/testData/diagnostics/tests/callableReference/constraintFromLHSWithCorrectDirection.kt +++ b/compiler/testData/diagnostics/tests/callableReference/constraintFromLHSWithCorrectDirection.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KProperty1 diff --git a/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.fir.kt b/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.fir.kt index 411505e1fcc..8f375237da6 100644 --- a/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE abstract class SubFunction : kotlin.Function0 diff --git a/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.kt b/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.kt index 6fea2363d82..dcb991c8b1d 100644 --- a/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.kt +++ b/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE abstract class SubFunction : kotlin.Function0 diff --git a/compiler/testData/diagnostics/tests/callableReference/function/extensionToSupertype.kt b/compiler/testData/diagnostics/tests/callableReference/function/extensionToSupertype.kt index 5de7282208f..ef1fa5e6a85 100644 --- a/compiler/testData/diagnostics/tests/callableReference/function/extensionToSupertype.kt +++ b/compiler/testData/diagnostics/tests/callableReference/function/extensionToSupertype.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/callableReference/function/lhsNotAClass.fir.kt b/compiler/testData/diagnostics/tests/callableReference/function/lhsNotAClass.fir.kt index 8961f52447d..b617f5044a4 100644 --- a/compiler/testData/diagnostics/tests/callableReference/function/lhsNotAClass.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/function/lhsNotAClass.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A { fun foo() = T::toString diff --git a/compiler/testData/diagnostics/tests/callableReference/function/lhsNotAClass.kt b/compiler/testData/diagnostics/tests/callableReference/function/lhsNotAClass.kt index 84cd54098f3..8621ecaae83 100644 --- a/compiler/testData/diagnostics/tests/callableReference/function/lhsNotAClass.kt +++ b/compiler/testData/diagnostics/tests/callableReference/function/lhsNotAClass.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A { fun foo() = T::toString diff --git a/compiler/testData/diagnostics/tests/callableReference/function/unresolved.fir.kt b/compiler/testData/diagnostics/tests/callableReference/function/unresolved.fir.kt index fcdcc521530..241f87384cd 100644 --- a/compiler/testData/diagnostics/tests/callableReference/function/unresolved.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/function/unresolved.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION, -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE class A diff --git a/compiler/testData/diagnostics/tests/callableReference/function/unresolved.kt b/compiler/testData/diagnostics/tests/callableReference/function/unresolved.kt index 571e46a8ca7..0a242d0617b 100644 --- a/compiler/testData/diagnostics/tests/callableReference/function/unresolved.kt +++ b/compiler/testData/diagnostics/tests/callableReference/function/unresolved.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION, -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE class A diff --git a/compiler/testData/diagnostics/tests/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.fir.kt b/compiler/testData/diagnostics/tests/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.fir.kt index 912f1d0586d..e56e0ef3837 100644 --- a/compiler/testData/diagnostics/tests/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(a: String, b: Int = 5): String { return a + b diff --git a/compiler/testData/diagnostics/tests/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.kt b/compiler/testData/diagnostics/tests/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.kt index 45518d3a90c..334271c468d 100644 --- a/compiler/testData/diagnostics/tests/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.kt +++ b/compiler/testData/diagnostics/tests/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(a: String, b: Int = 5): String { return a + b diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/argumentAndReturnExpectedType.fir.kt b/compiler/testData/diagnostics/tests/callableReference/generic/argumentAndReturnExpectedType.fir.kt index 60b75a40b50..61bce14c61d 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/argumentAndReturnExpectedType.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/argumentAndReturnExpectedType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_VARIABLE, -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/argumentAndReturnExpectedType.kt b/compiler/testData/diagnostics/tests/callableReference/generic/argumentAndReturnExpectedType.kt index bb292eca42b..2535ec64d81 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/argumentAndReturnExpectedType.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/argumentAndReturnExpectedType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_VARIABLE, -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/explicitTypeArguments.fir.kt b/compiler/testData/diagnostics/tests/callableReference/generic/explicitTypeArguments.fir.kt index df2b4df88d9..efa93ce7aec 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/explicitTypeArguments.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/explicitTypeArguments.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE, -UNUSED_PARAMETER fun takeFun(f: (T) -> Unit) {} diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/explicitTypeArguments.kt b/compiler/testData/diagnostics/tests/callableReference/generic/explicitTypeArguments.kt index 58ef4a7767f..9d6b98b366c 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/explicitTypeArguments.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/explicitTypeArguments.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE, -UNUSED_PARAMETER fun takeFun(f: (T) -> Unit) {} diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/genericExtensionFunction.fir.kt b/compiler/testData/diagnostics/tests/callableReference/generic/genericExtensionFunction.fir.kt index 2723d83fbbb..416da3b8e88 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/genericExtensionFunction.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/genericExtensionFunction.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/genericExtensionFunction.kt b/compiler/testData/diagnostics/tests/callableReference/generic/genericExtensionFunction.kt index 2589b80a8b3..6616f4dbc76 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/genericExtensionFunction.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/genericExtensionFunction.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/genericFunctionsWithNullableTypes.fir.kt b/compiler/testData/diagnostics/tests/callableReference/generic/genericFunctionsWithNullableTypes.fir.kt index 84441117a43..5ffe2d86cc8 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/genericFunctionsWithNullableTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/genericFunctionsWithNullableTypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/genericFunctionsWithNullableTypes.kt b/compiler/testData/diagnostics/tests/callableReference/generic/genericFunctionsWithNullableTypes.kt index 7eea813263e..626ec1d80aa 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/genericFunctionsWithNullableTypes.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/genericFunctionsWithNullableTypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/nestedCallWithOverload.fir.kt b/compiler/testData/diagnostics/tests/callableReference/generic/nestedCallWithOverload.fir.kt index 15a6e2081a9..1559fb0901c 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/nestedCallWithOverload.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/nestedCallWithOverload.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE, -UNUSED_PARAMETER fun foo(i: Int) {} diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/nestedCallWithOverload.kt b/compiler/testData/diagnostics/tests/callableReference/generic/nestedCallWithOverload.kt index 93c5b667a93..7ad636cc159 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/nestedCallWithOverload.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/nestedCallWithOverload.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE, -UNUSED_PARAMETER fun foo(i: Int) {} diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/resolutionGenericCallableWithNullableTypes.fir.kt b/compiler/testData/diagnostics/tests/callableReference/generic/resolutionGenericCallableWithNullableTypes.fir.kt index 300376e9f75..3d196b15c58 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/resolutionGenericCallableWithNullableTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/resolutionGenericCallableWithNullableTypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/resolutionGenericCallableWithNullableTypes.kt b/compiler/testData/diagnostics/tests/callableReference/generic/resolutionGenericCallableWithNullableTypes.kt index c4fd6422d5f..9fe46e1f2e3 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/resolutionGenericCallableWithNullableTypes.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/resolutionGenericCallableWithNullableTypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/resolutionWithGenericCallable.fir.kt b/compiler/testData/diagnostics/tests/callableReference/generic/resolutionWithGenericCallable.fir.kt index 4b0510c4ce5..3097f57b837 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/resolutionWithGenericCallable.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/resolutionWithGenericCallable.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE fun test() { diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/resolutionWithGenericCallable.kt b/compiler/testData/diagnostics/tests/callableReference/generic/resolutionWithGenericCallable.kt index b079ffde181..700b918ac7a 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/resolutionWithGenericCallable.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/resolutionWithGenericCallable.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE fun test() { diff --git a/compiler/testData/diagnostics/tests/callableReference/kt25433.kt b/compiler/testData/diagnostics/tests/callableReference/kt25433.kt index 6dbefb55767..90904ce31be 100644 --- a/compiler/testData/diagnostics/tests/callableReference/kt25433.kt +++ b/compiler/testData/diagnostics/tests/callableReference/kt25433.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // Issue: KT-25433 diff --git a/compiler/testData/diagnostics/tests/callableReference/kt34314.fir.kt b/compiler/testData/diagnostics/tests/callableReference/kt34314.fir.kt index a469b2f6887..13a76aab14a 100644 --- a/compiler/testData/diagnostics/tests/callableReference/kt34314.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/kt34314.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE fun main() { diff --git a/compiler/testData/diagnostics/tests/callableReference/kt34314.kt b/compiler/testData/diagnostics/tests/callableReference/kt34314.kt index f4877956ae9..313a17415a1 100644 --- a/compiler/testData/diagnostics/tests/callableReference/kt34314.kt +++ b/compiler/testData/diagnostics/tests/callableReference/kt34314.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE fun main() { diff --git a/compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.fir.kt b/compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.fir.kt index d0439f4a526..2fbfaa4c63b 100644 --- a/compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE fun materialize(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.kt b/compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.kt index e78751143f3..79128e96b1b 100644 --- a/compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.kt +++ b/compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE fun materialize(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/callableReference/kt37530.fir.kt b/compiler/testData/diagnostics/tests/callableReference/kt37530.fir.kt index 2b262f583e1..bc04a045dde 100644 --- a/compiler/testData/diagnostics/tests/callableReference/kt37530.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/kt37530.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE abstract class Abstract diff --git a/compiler/testData/diagnostics/tests/callableReference/kt37530.kt b/compiler/testData/diagnostics/tests/callableReference/kt37530.kt index d0d956d8e77..368cdcca34e 100644 --- a/compiler/testData/diagnostics/tests/callableReference/kt37530.kt +++ b/compiler/testData/diagnostics/tests/callableReference/kt37530.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE abstract class Abstract diff --git a/compiler/testData/diagnostics/tests/callableReference/property/kt7945_unrelatedClass.fir.kt b/compiler/testData/diagnostics/tests/callableReference/property/kt7945_unrelatedClass.fir.kt index baf3c7af422..f334a32c88f 100644 --- a/compiler/testData/diagnostics/tests/callableReference/property/kt7945_unrelatedClass.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/property/kt7945_unrelatedClass.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KProperty1 diff --git a/compiler/testData/diagnostics/tests/callableReference/property/kt7945_unrelatedClass.kt b/compiler/testData/diagnostics/tests/callableReference/property/kt7945_unrelatedClass.kt index 26f2448ab03..2354ecf0ba7 100644 --- a/compiler/testData/diagnostics/tests/callableReference/property/kt7945_unrelatedClass.kt +++ b/compiler/testData/diagnostics/tests/callableReference/property/kt7945_unrelatedClass.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KProperty1 diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/byGenericArgType.fir.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/byGenericArgType.fir.kt index d64b9cc5222..acbc18786ab 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/byGenericArgType.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/byGenericArgType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun ofType(x: T): T = x diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/byGenericArgType.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/byGenericArgType.kt index d92df4d486e..235b087b7f7 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/byGenericArgType.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/byGenericArgType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun ofType(x: T): T = x diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.fir.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.fir.kt index 6522f5d262c..88eb11bc693 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KCallable diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt index d0aad3d4df8..96d6a5a58df 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KCallable diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.fir.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.fir.kt index 1939aa09385..6196d6cb1e1 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.kt index 3d76e660054..372ea53c07e 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/withPlaceholderTypes.fir.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/withPlaceholderTypes.fir.kt index 58b19cde969..37d2251db05 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/withPlaceholderTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/withPlaceholderTypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -CONFLICTING_JVM_DECLARATIONS // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/withPlaceholderTypes.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/withPlaceholderTypes.kt index 1a2118bfe41..f65d7a52752 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/withPlaceholderTypes.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/withPlaceholderTypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -CONFLICTING_JVM_DECLARATIONS // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/callableReference/suspendCallableReference.kt b/compiler/testData/diagnostics/tests/callableReference/suspendCallableReference.kt index b11587e76e2..e4c35bf6c6e 100644 --- a/compiler/testData/diagnostics/tests/callableReference/suspendCallableReference.kt +++ b/compiler/testData/diagnostics/tests/callableReference/suspendCallableReference.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // ISSUE: KT-32452 diff --git a/compiler/testData/diagnostics/tests/callableReference/typealiases.kt b/compiler/testData/diagnostics/tests/callableReference/typealiases.kt index 187b27cc0ed..19faeb7c682 100644 --- a/compiler/testData/diagnostics/tests/callableReference/typealiases.kt +++ b/compiler/testData/diagnostics/tests/callableReference/typealiases.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // Issue: KT-31199 typealias Global = String diff --git a/compiler/testData/diagnostics/tests/cast/AsInBinaryUnary.fir.kt b/compiler/testData/diagnostics/tests/cast/AsInBinaryUnary.fir.kt index 39a65c807bf..9ca7feee3e9 100644 --- a/compiler/testData/diagnostics/tests/cast/AsInBinaryUnary.fir.kt +++ b/compiler/testData/diagnostics/tests/cast/AsInBinaryUnary.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER interface Base diff --git a/compiler/testData/diagnostics/tests/cast/AsInBinaryUnary.kt b/compiler/testData/diagnostics/tests/cast/AsInBinaryUnary.kt index e99f82e46bd..766d7ffb719 100644 --- a/compiler/testData/diagnostics/tests/cast/AsInBinaryUnary.kt +++ b/compiler/testData/diagnostics/tests/cast/AsInBinaryUnary.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER interface Base diff --git a/compiler/testData/diagnostics/tests/cast/AsInBlockWithReturnType.fir.kt b/compiler/testData/diagnostics/tests/cast/AsInBlockWithReturnType.fir.kt index d1501325a99..8f44a246be4 100644 --- a/compiler/testData/diagnostics/tests/cast/AsInBlockWithReturnType.fir.kt +++ b/compiler/testData/diagnostics/tests/cast/AsInBlockWithReturnType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun runWithoutReturn(r: () -> Unit) = r() diff --git a/compiler/testData/diagnostics/tests/cast/AsInBlockWithReturnType.kt b/compiler/testData/diagnostics/tests/cast/AsInBlockWithReturnType.kt index c128ca9a2fd..3f049b5d0aa 100644 --- a/compiler/testData/diagnostics/tests/cast/AsInBlockWithReturnType.kt +++ b/compiler/testData/diagnostics/tests/cast/AsInBlockWithReturnType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun runWithoutReturn(r: () -> Unit) = r() diff --git a/compiler/testData/diagnostics/tests/cast/UselessSafeCast.fir.kt b/compiler/testData/diagnostics/tests/cast/UselessSafeCast.fir.kt index 42e1df9622b..2e61dbfdc96 100644 --- a/compiler/testData/diagnostics/tests/cast/UselessSafeCast.fir.kt +++ b/compiler/testData/diagnostics/tests/cast/UselessSafeCast.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE fun test(x: Int?) { diff --git a/compiler/testData/diagnostics/tests/cast/UselessSafeCast.kt b/compiler/testData/diagnostics/tests/cast/UselessSafeCast.kt index e66a9efaa40..17d4d6122c7 100644 --- a/compiler/testData/diagnostics/tests/cast/UselessSafeCast.kt +++ b/compiler/testData/diagnostics/tests/cast/UselessSafeCast.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE fun test(x: Int?) { diff --git a/compiler/testData/diagnostics/tests/cast/kt15161.fir.kt b/compiler/testData/diagnostics/tests/cast/kt15161.fir.kt index 02d95115904..164d031d1b3 100644 --- a/compiler/testData/diagnostics/tests/cast/kt15161.fir.kt +++ b/compiler/testData/diagnostics/tests/cast/kt15161.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class Array(e: E) { val k = Array(1) { 1 as Any diff --git a/compiler/testData/diagnostics/tests/cast/kt15161.kt b/compiler/testData/diagnostics/tests/cast/kt15161.kt index 41fad36bda1..e9ffbb9a7fb 100644 --- a/compiler/testData/diagnostics/tests/cast/kt15161.kt +++ b/compiler/testData/diagnostics/tests/cast/kt15161.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class Array(e: E) { val k = Array(1) { 1 as Any diff --git a/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.fir.kt b/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.fir.kt index 2d63d3da046..b85f3dbeed1 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.fir.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !LANGUAGE: +ProhibitAssigningSingleElementsToVarargsInNamedForm +AllowAssigningArrayElementsToVarargsInNamedFormForFunctions diff --git a/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt b/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt index aeceae67b99..e8341da1a8d 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !LANGUAGE: +ProhibitAssigningSingleElementsToVarargsInNamedForm +AllowAssigningArrayElementsToVarargsInNamedFormForFunctions diff --git a/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.fir.kt b/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.fir.kt index f0c9d7d0646..0625de65475 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.fir.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A { diff --git a/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt b/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt index 01778b5843b..812b9bcf085 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A { diff --git a/compiler/testData/diagnostics/tests/checkArguments/booleanExpressions.fir.kt b/compiler/testData/diagnostics/tests/checkArguments/booleanExpressions.fir.kt index 7d0bef6f296..47cbec80c72 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/booleanExpressions.fir.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/booleanExpressions.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo1(b: Boolean, c: Int) { if (b && c) {} if (b || c) {} diff --git a/compiler/testData/diagnostics/tests/checkArguments/booleanExpressions.kt b/compiler/testData/diagnostics/tests/checkArguments/booleanExpressions.kt index ef0b86b1202..9f15afaee8d 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/booleanExpressions.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/booleanExpressions.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo1(b: Boolean, c: Int) { if (b && c) {} if (b || c) {} diff --git a/compiler/testData/diagnostics/tests/checkArguments/kt1897_diagnostic_part.fir.kt b/compiler/testData/diagnostics/tests/checkArguments/kt1897_diagnostic_part.fir.kt index 607f0b4265b..67ba488f8f7 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/kt1897_diagnostic_part.fir.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/kt1897_diagnostic_part.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-1897 When call cannot be resolved to any function, save information about types of arguments package a diff --git a/compiler/testData/diagnostics/tests/checkArguments/kt1897_diagnostic_part.kt b/compiler/testData/diagnostics/tests/checkArguments/kt1897_diagnostic_part.kt index 0d2effdee2b..70ed46339a7 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/kt1897_diagnostic_part.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/kt1897_diagnostic_part.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-1897 When call cannot be resolved to any function, save information about types of arguments package a diff --git a/compiler/testData/diagnostics/tests/checkArguments/overloadedFunction.fir.kt b/compiler/testData/diagnostics/tests/checkArguments/overloadedFunction.fir.kt index 708ebb6df78..1010d82ea82 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/overloadedFunction.fir.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/overloadedFunction.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE fun foo() {} diff --git a/compiler/testData/diagnostics/tests/checkArguments/overloadedFunction.kt b/compiler/testData/diagnostics/tests/checkArguments/overloadedFunction.kt index b7e9129f92f..e55a5893fd7 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/overloadedFunction.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/overloadedFunction.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE fun foo() {} diff --git a/compiler/testData/diagnostics/tests/checkArguments/twoLambdasFunction.fir.kt b/compiler/testData/diagnostics/tests/checkArguments/twoLambdasFunction.fir.kt index 63edc50e3de..02e6782430c 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/twoLambdasFunction.fir.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/twoLambdasFunction.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE fun test(x: () -> Unit, y: () -> Unit) { diff --git a/compiler/testData/diagnostics/tests/checkArguments/twoLambdasFunction.kt b/compiler/testData/diagnostics/tests/checkArguments/twoLambdasFunction.kt index 7a376cca0a4..9248c467a62 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/twoLambdasFunction.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/twoLambdasFunction.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE fun test(x: () -> Unit, y: () -> Unit) { diff --git a/compiler/testData/diagnostics/tests/checkType.fir.kt b/compiler/testData/diagnostics/tests/checkType.fir.kt index 70bf2b6d137..d37f7b7a67e 100644 --- a/compiler/testData/diagnostics/tests/checkType.fir.kt +++ b/compiler/testData/diagnostics/tests/checkType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE interface A diff --git a/compiler/testData/diagnostics/tests/checkType.kt b/compiler/testData/diagnostics/tests/checkType.kt index cb8cd2fa44b..7940dd064f5 100644 --- a/compiler/testData/diagnostics/tests/checkType.kt +++ b/compiler/testData/diagnostics/tests/checkType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE interface A diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotation.fir.kt b/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotation.fir.kt index 532aac7e625..a8a8d997300 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotation.fir.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotation.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ArrayLiteralsInAnnotations annotation class Foo(val a: IntArray, val b: Array, val c: FloatArray) diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotation.kt b/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotation.kt index ceef3df9972..4936d9c51cd 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotation.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotation.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ArrayLiteralsInAnnotations annotation class Foo(val a: IntArray, val b: Array, val c: FloatArray) diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotationWithKClass.fir.kt b/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotationWithKClass.fir.kt index ed339f1d945..24f9aed62a2 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotationWithKClass.fir.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotationWithKClass.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ArrayLiteralsInAnnotations +BareArrayClassLiteral import kotlin.reflect.KClass diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotationWithKClass.kt b/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotationWithKClass.kt index dd2544879a2..5342e7a0cbb 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotationWithKClass.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotationWithKClass.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ArrayLiteralsInAnnotations +BareArrayClassLiteral import kotlin.reflect.KClass diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.fir.kt b/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.fir.kt index c21f49ebfa5..a474cd486b8 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.fir.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_VARIABLE, -UNSUPPORTED diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.kt b/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.kt index 07786079938..eeec3c94baf 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_VARIABLE, -UNSUPPORTED diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsOutsideOfAnnotations.fir.kt b/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsOutsideOfAnnotations.fir.kt index f6cf7cb82d8..9b0241c016f 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsOutsideOfAnnotations.fir.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsOutsideOfAnnotations.fir.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +NewInference -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER fun takeArray(array: Array) {} diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsOutsideOfAnnotations.kt b/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsOutsideOfAnnotations.kt index 7002f6fad0f..79955940594 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsOutsideOfAnnotations.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsOutsideOfAnnotations.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +NewInference -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER fun takeArray(array: Array) {} diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.fir.kt b/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.fir.kt index 6585f71592a..05eeca17669 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.fir.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ArrayLiteralsInAnnotations, +ProhibitAssigningSingleElementsToVarargsInNamedForm annotation class Ann1(vararg val a: String = []) diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.kt b/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.kt index 977712b1360..24e9f0ac5fb 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ArrayLiteralsInAnnotations, +ProhibitAssigningSingleElementsToVarargsInNamedForm annotation class Ann1(vararg val a: String = []) diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/defaultValuesInAnnotation.fir.kt b/compiler/testData/diagnostics/tests/collectionLiterals/defaultValuesInAnnotation.fir.kt index 06b630c16f6..1e3d2ca23ed 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/defaultValuesInAnnotation.fir.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/defaultValuesInAnnotation.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ArrayLiteralsInAnnotations annotation class Foo( diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/defaultValuesInAnnotation.kt b/compiler/testData/diagnostics/tests/collectionLiterals/defaultValuesInAnnotation.kt index 066ee75a200..e5e96268466 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/defaultValuesInAnnotation.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/defaultValuesInAnnotation.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ArrayLiteralsInAnnotations annotation class Foo( diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.fir.kt b/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.fir.kt index bad970ee226..1eef9de37b8 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.fir.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(): Array { [1, 2] [1, 2][0] diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.kt b/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.kt index 81f8fb4128c..5dbd20eebac 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(): Array { [1, 2] [1, 2][0] diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/UninitializedOrReassignedVariables.fir.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/UninitializedOrReassignedVariables.fir.kt index 361a995e876..9d8041460cc 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/UninitializedOrReassignedVariables.fir.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/UninitializedOrReassignedVariables.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package uninitialized_reassigned_variables fun doSmth(s: String) {} diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/UninitializedOrReassignedVariables.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/UninitializedOrReassignedVariables.kt index 49aaab0a508..1c98b0be80a 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/UninitializedOrReassignedVariables.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/UninitializedOrReassignedVariables.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package uninitialized_reassigned_variables fun doSmth(s: String) {} diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/elvisNotProcessed.fir.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/elvisNotProcessed.fir.kt index d1e29e10ced..251d777c148 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/elvisNotProcessed.fir.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/elvisNotProcessed.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See KT-8277 // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/elvisNotProcessed.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/elvisNotProcessed.kt index b0c9a2b188f..fc05d4b0315 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/elvisNotProcessed.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/elvisNotProcessed.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See KT-8277 // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.fir.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.fir.kt index a2395d2332d..2a0bfcee7ae 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.fir.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See KT-15566 // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.kt index d4efbab6dc9..a2c58cd474c 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See KT-15566 // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.fir.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.fir.kt index 324a2ca54f3..3e6469769df 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.fir.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // AssertionError for nested ifs with lambdas and Nothing as results // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt index e1635a535e2..d4e35c0e1a2 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // AssertionError for nested ifs with lambdas and Nothing as results // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/nonLocalReturnUnreachable.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/nonLocalReturnUnreachable.kt index d65b6ce01ee..88d53547daf 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/nonLocalReturnUnreachable.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/nonLocalReturnUnreachable.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // See also KT-5198 / KT-10186 inline fun doCall(f: () -> Unit) = f() diff --git a/compiler/testData/diagnostics/tests/controlStructures/ForLoopWithExtensionIteratorOnNullable.kt b/compiler/testData/diagnostics/tests/controlStructures/ForLoopWithExtensionIteratorOnNullable.kt index 626cc350a99..57e938010ff 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ForLoopWithExtensionIteratorOnNullable.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ForLoopWithExtensionIteratorOnNullable.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // See also KT-7428 class Container(val k: K) // iterator() must be an extension, otherwise code will not compile diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifElseIntersection.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/ifElseIntersection.fir.kt index b52322eb1bf..a8c6a1734e6 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ifElseIntersection.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ifElseIntersection.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // See also KT-10896: Wrong inference of if / else result type diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifElseIntersection.kt b/compiler/testData/diagnostics/tests/controlStructures/ifElseIntersection.kt index 70d7296007c..f392a3bf95f 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ifElseIntersection.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ifElseIntersection.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // See also KT-10896: Wrong inference of if / else result type diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.fir.kt index e646e6e5664..08d46d81584 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE val test1 = { if (true) 1 else "" } diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.kt b/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.kt index 81e9c4c25ad..8730c503721 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE val test1 = { if (true) 1 else "" } diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifToAnyDiscriminatingUsages.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/ifToAnyDiscriminatingUsages.fir.kt index d5d7466d071..ded70b0c892 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ifToAnyDiscriminatingUsages.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ifToAnyDiscriminatingUsages.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE fun println() {} diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifToAnyDiscriminatingUsages.kt b/compiler/testData/diagnostics/tests/controlStructures/ifToAnyDiscriminatingUsages.kt index c622c657b29..0d77713af4f 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ifToAnyDiscriminatingUsages.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ifToAnyDiscriminatingUsages.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE fun println() {} diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifWhenWithoutElse.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/ifWhenWithoutElse.fir.kt index 263daaaa536..1d6b11ecb1d 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ifWhenWithoutElse.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ifWhenWithoutElse.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun idAny(x: Any) = x fun id(x: T) = x fun idUnit(x: Unit) = x diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifWhenWithoutElse.kt b/compiler/testData/diagnostics/tests/controlStructures/ifWhenWithoutElse.kt index ed88ad9c5a4..9a03f5e5193 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ifWhenWithoutElse.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ifWhenWithoutElse.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun idAny(x: Any) = x fun id(x: T) = x fun idUnit(x: Unit) = x diff --git a/compiler/testData/diagnostics/tests/controlStructures/improperElseInExpression.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/improperElseInExpression.fir.kt index bc9b8f49d94..d46b7841556 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/improperElseInExpression.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/improperElseInExpression.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE fun example() { diff --git a/compiler/testData/diagnostics/tests/controlStructures/improperElseInExpression.kt b/compiler/testData/diagnostics/tests/controlStructures/improperElseInExpression.kt index 2642a097384..87f5433a10c 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/improperElseInExpression.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/improperElseInExpression.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE fun example() { diff --git a/compiler/testData/diagnostics/tests/controlStructures/kt1075.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/kt1075.fir.kt index 811be4565f0..3961040efeb 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/kt1075.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/kt1075.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package kt1075 //KT-1075 No type check for 'in range' condition in 'when' expression diff --git a/compiler/testData/diagnostics/tests/controlStructures/kt1075.kt b/compiler/testData/diagnostics/tests/controlStructures/kt1075.kt index 5ec810f7df0..99514c908c0 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/kt1075.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/kt1075.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package kt1075 //KT-1075 No type check for 'in range' condition in 'when' expression diff --git a/compiler/testData/diagnostics/tests/controlStructures/kt4310.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/kt4310.fir.kt index e2818f7c57a..861655d6ce9 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/kt4310.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/kt4310.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package f fun test(a: Boolean, b: Boolean): Int { diff --git a/compiler/testData/diagnostics/tests/controlStructures/kt4310.kt b/compiler/testData/diagnostics/tests/controlStructures/kt4310.kt index 61d0be8b5de..6cedf388b3c 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/kt4310.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/kt4310.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package f fun test(a: Boolean, b: Boolean): Int { diff --git a/compiler/testData/diagnostics/tests/controlStructures/kt770.fir.kt351.fir.kt735_StatementType.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/kt770.fir.kt351.fir.kt735_StatementType.fir.kt index 4ea964a1554..f3377aea151 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/kt770.fir.kt351.fir.kt735_StatementType.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/kt770.fir.kt351.fir.kt735_StatementType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNREACHABLE_CODE package kt770_351_735 diff --git a/compiler/testData/diagnostics/tests/controlStructures/kt770.kt351.kt735_StatementType.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/kt770.kt351.kt735_StatementType.fir.kt index 69c11908581..7fa77626645 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/kt770.kt351.kt735_StatementType.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/kt770.kt351.kt735_StatementType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNREACHABLE_CODE package kt770_351_735 diff --git a/compiler/testData/diagnostics/tests/controlStructures/kt770.kt351.kt735_StatementType.kt b/compiler/testData/diagnostics/tests/controlStructures/kt770.kt351.kt735_StatementType.kt index 666c51ccf03..a64a5ada2dc 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/kt770.kt351.kt735_StatementType.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/kt770.kt351.kt735_StatementType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNREACHABLE_CODE package kt770_351_735 diff --git a/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.fir.kt index 070380b8332..0a7e678e8d7 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION fun use(a: Any?) = a diff --git a/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.kt b/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.kt index 56c4ce766e4..10ee29495d2 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION fun use(a: Any?) = a diff --git a/compiler/testData/diagnostics/tests/controlStructures/specialConstructsAndPlatformTypes.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/specialConstructsAndPlatformTypes.fir.kt index 534dda0051e..80a2c9c035c 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/specialConstructsAndPlatformTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/specialConstructsAndPlatformTypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import java.util.*; diff --git a/compiler/testData/diagnostics/tests/controlStructures/specialConstructsAndPlatformTypes.kt b/compiler/testData/diagnostics/tests/controlStructures/specialConstructsAndPlatformTypes.kt index 09c07f57eab..d75b6abfe43 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/specialConstructsAndPlatformTypes.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/specialConstructsAndPlatformTypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import java.util.*; diff --git a/compiler/testData/diagnostics/tests/controlStructures/tryReturnType.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/tryReturnType.fir.kt index 0b61cce53ab..3e892382782 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/tryReturnType.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/tryReturnType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a fun foo() : Int { diff --git a/compiler/testData/diagnostics/tests/controlStructures/tryReturnType.kt b/compiler/testData/diagnostics/tests/controlStructures/tryReturnType.kt index 99b44752f88..cbc3c9ad178 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/tryReturnType.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/tryReturnType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a fun foo() : Int { diff --git a/compiler/testData/diagnostics/tests/controlStructures/typeInferenceForExclExcl.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/typeInferenceForExclExcl.fir.kt index f6e4e1acd21..e547a97883d 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/typeInferenceForExclExcl.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/typeInferenceForExclExcl.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: A.java public class A { diff --git a/compiler/testData/diagnostics/tests/controlStructures/typeInferenceForExclExcl.kt b/compiler/testData/diagnostics/tests/controlStructures/typeInferenceForExclExcl.kt index eb61e614c46..1a88b9283b5 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/typeInferenceForExclExcl.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/typeInferenceForExclExcl.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: A.java public class A { diff --git a/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.fir.kt index 13d81ebf4cd..6091bb406eb 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.fir.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE val test1 = { when (true) { true -> 1; else -> "" } } diff --git a/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.kt b/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.kt index cbd87e68ebe..cdd6da5d9fb 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE val test1 = { when (true) { true -> 1; else -> "" } } diff --git a/compiler/testData/diagnostics/tests/cyclicHierarchy/kt303.fir.kt b/compiler/testData/diagnostics/tests/cyclicHierarchy/kt303.fir.kt index acd5a57f27b..679eab7d581 100644 --- a/compiler/testData/diagnostics/tests/cyclicHierarchy/kt303.fir.kt +++ b/compiler/testData/diagnostics/tests/cyclicHierarchy/kt303.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-303 Stack overflow on a cyclic class hierarchy open class Foo() : Bar() { diff --git a/compiler/testData/diagnostics/tests/cyclicHierarchy/kt303.kt b/compiler/testData/diagnostics/tests/cyclicHierarchy/kt303.kt index 6a10987081e..15b21898cf2 100644 --- a/compiler/testData/diagnostics/tests/cyclicHierarchy/kt303.kt +++ b/compiler/testData/diagnostics/tests/cyclicHierarchy/kt303.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-303 Stack overflow on a cyclic class hierarchy open class Foo() : Bar() { diff --git a/compiler/testData/diagnostics/tests/dataClasses/extensionComponentsOnNullable.fir.kt b/compiler/testData/diagnostics/tests/dataClasses/extensionComponentsOnNullable.fir.kt index ea2b32291a8..5d9ca40b66c 100644 --- a/compiler/testData/diagnostics/tests/dataClasses/extensionComponentsOnNullable.fir.kt +++ b/compiler/testData/diagnostics/tests/dataClasses/extensionComponentsOnNullable.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class Data(val x: T, val y: T) operator fun Data.component1() = x diff --git a/compiler/testData/diagnostics/tests/dataClasses/extensionComponentsOnNullable.kt b/compiler/testData/diagnostics/tests/dataClasses/extensionComponentsOnNullable.kt index 37949e24699..04aa688f891 100644 --- a/compiler/testData/diagnostics/tests/dataClasses/extensionComponentsOnNullable.kt +++ b/compiler/testData/diagnostics/tests/dataClasses/extensionComponentsOnNullable.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class Data(val x: T, val y: T) operator fun Data.component1() = x diff --git a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpression.fir.kt b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpression.fir.kt index d78990199bb..c2d426a4eb8 100644 --- a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpression.fir.kt +++ b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpression.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -DEBUG_INFO_SMARTCAST fun bar(x: Int): Int = x + 1 diff --git a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpression.kt b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpression.kt index 2cb8c28f603..c0375b26d1e 100644 --- a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpression.kt +++ b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpression.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -DEBUG_INFO_SMARTCAST fun bar(x: Int): Int = x + 1 diff --git a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/ObjectExpression.fir.kt b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/ObjectExpression.fir.kt index ff96ed65c89..1497b189a2a 100644 --- a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/ObjectExpression.fir.kt +++ b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/ObjectExpression.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun bar(x: Int): Int = x + 1 diff --git a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/ObjectExpression.kt b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/ObjectExpression.kt index a3a056d3dff..1656ed5d3fc 100644 --- a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/ObjectExpression.kt +++ b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/ObjectExpression.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun bar(x: Int): Int = x + 1 diff --git a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/Return.fir.kt b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/Return.fir.kt index 636fe46bec9..232b824a451 100644 --- a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/Return.fir.kt +++ b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/Return.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -DEBUG_INFO_SMARTCAST fun bar(x: Int): Int = x + 1 diff --git a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/Return.kt b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/Return.kt index be6571d2e0d..8b06180162d 100644 --- a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/Return.kt +++ b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/Return.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -DEBUG_INFO_SMARTCAST fun bar(x: Int): Int = x + 1 diff --git a/compiler/testData/diagnostics/tests/declarationChecks/ComponentFunctionReturnTypeMismatch.kt b/compiler/testData/diagnostics/tests/declarationChecks/ComponentFunctionReturnTypeMismatch.kt index 27d2ca97ea2..80517795710 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/ComponentFunctionReturnTypeMismatch.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/ComponentFunctionReturnTypeMismatch.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE class A { operator fun component1() : Int = 1 operator fun component2() : Int = 2 diff --git a/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.fir.kt b/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.fir.kt index 79f6bfec9b2..4729469fdc6 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.fir.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a class MyClass { diff --git a/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.kt b/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.kt index 03abb77df1b..bcaab066105 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a class MyClass { diff --git a/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/FolLoopTypeComponentTypeMismatch.kt b/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/FolLoopTypeComponentTypeMismatch.kt index bd7ebbd32e9..a55ef785787 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/FolLoopTypeComponentTypeMismatch.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/FolLoopTypeComponentTypeMismatch.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE class A { operator fun component1() = 1 operator fun component2() = 1.0 diff --git a/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.fir.kt b/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.fir.kt index 12829960c33..2b3da9eb8d8 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.fir.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun useDeclaredVariables() { for ((a, b)) { a diff --git a/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.kt b/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.kt index ddeec533c23..adb30e0d0dc 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun useDeclaredVariables() { for ((a, b)) { a diff --git a/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/underscore.fir.kt b/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/underscore.fir.kt index 9e0f87e8786..aa74bdbeacb 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/underscore.fir.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/underscore.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A { operator fun component1() = 1 diff --git a/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/underscore.kt b/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/underscore.kt index 420d72a8858..a15173c8264 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/underscore.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/underscore.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A { operator fun component1() = 1 diff --git a/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_3.fir.kt b/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_3.fir.kt index 3d8c3592fb6..16e0e87f6f6 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_3.fir.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_3.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE // !LANGUAGE: -ProhibitTypeParametersForLocalVariables -// !WITH_NEW_INFERENCE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_3.kt b/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_3.kt index 2e17cc98e51..34bf432c684 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_3.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_3.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE // !LANGUAGE: -ProhibitTypeParametersForLocalVariables -// !WITH_NEW_INFERENCE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_4.fir.kt b/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_4.fir.kt index 331f065b8a4..088b15d736c 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_4.fir.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_4.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE // !LANGUAGE: +ProhibitTypeParametersForLocalVariables -// !WITH_NEW_INFERENCE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_4.kt b/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_4.kt index 07574de6669..c6349bf1758 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_4.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_4.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE // !LANGUAGE: +ProhibitTypeParametersForLocalVariables -// !WITH_NEW_INFERENCE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/declarationChecks/namedFunAsLastExpressionInBlock.fir.kt b/compiler/testData/diagnostics/tests/declarationChecks/namedFunAsLastExpressionInBlock.fir.kt index 4bb91b4a96b..df19536f6bc 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/namedFunAsLastExpressionInBlock.fir.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/namedFunAsLastExpressionInBlock.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE // !CHECK_TYPE fun foo(block: () -> (() -> Int)) {} diff --git a/compiler/testData/diagnostics/tests/declarationChecks/namedFunAsLastExpressionInBlock.kt b/compiler/testData/diagnostics/tests/declarationChecks/namedFunAsLastExpressionInBlock.kt index 8e5080bde90..52a7add926a 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/namedFunAsLastExpressionInBlock.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/namedFunAsLastExpressionInBlock.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE // !CHECK_TYPE fun foo(block: () -> (() -> Int)) {} diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.fir.kt index 90cb338fe2e..8dc14e0c5b0 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package baz import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.kt index 7ece8e9274a..0783efd2d35 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package baz import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.fir.kt index 69aba9c1ce7..b2dffbb0989 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package foo import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.kt index 2f324ff3368..0eaf8779c39 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package foo import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.fir.kt index 1d97b123f33..cf7453650ad 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.kt index 35f9b9fd1a3..f18f53b6e64 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.fir.kt index eae33a570c1..bf6a346d35a 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.kt index 79f128e42cf..dd4bb974523 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.fir.kt index d24bc7c490f..1e9bfcf10c3 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: main.kt package test diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.kt index 42617293537..171f126cf43 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: main.kt package test diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.fir.kt index 649c18f12a0..a9081d1a357 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package foo import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.kt index 6fc1c5db6be..7567a02eeee 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package foo import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.fir.kt index d06461aa5d0..d22a9c3184c 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.kt index d45fa55448f..03e73314c98 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/propertyDefferedType.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/propertyDefferedType.fir.kt index 88cc87b76c3..4e31f63ea74 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/propertyDefferedType.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/propertyDefferedType.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/propertyDefferedType.kt b/compiler/testData/diagnostics/tests/delegatedProperty/propertyDefferedType.kt index d52d6595da2..48a0d8f191f 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/propertyDefferedType.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/propertyDefferedType.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/commonCaseForInference.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/commonCaseForInference.fir.kt index 4c8cf2d1d2b..b4a01b0f4e4 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/commonCaseForInference.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/commonCaseForInference.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object CommonCase { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/commonCaseForInference.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/commonCaseForInference.kt index 4ef9df38b8a..96abfb0a2ea 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/commonCaseForInference.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/commonCaseForInference.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object CommonCase { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/hostAndReceiver2.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/hostAndReceiver2.fir.kt index 9e8b0bbc136..4532b1564ec 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/hostAndReceiver2.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/hostAndReceiver2.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object T2 { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/hostAndReceiver2.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/hostAndReceiver2.kt index 644faba331d..912cbd332ce 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/hostAndReceiver2.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/hostAndReceiver2.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object T2 { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.fir.kt index 492602db86f..5732f1daa4e 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object Inference1 { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.kt index 8684d3a2324..3307d9547ca 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object Inference1 { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.fir.kt index ab1e797532d..2dc1c992fea 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object Inference2 { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt index 5fc6f90c5a1..751afebbaa8 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object Inference2 { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.fir.kt index 4623cf23593..b4c5584cbb1 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.kt index fb1953e5a2d..4e036de80a9 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/setValue.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/setValue.fir.kt index 5983c6ad6d7..5f274345629 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/setValue.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/setValue.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class Delegate diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/setValue.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/setValue.kt index 424554c9c73..1e52379b53e 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/setValue.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/setValue.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class Delegate diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.fir.kt index e4b9abf4c31..a18129f93a8 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // !LANGUAGE: -OperatorProvideDelegate diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.kt index d1eb083a09d..9028f3f8d0d 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // !LANGUAGE: -OperatorProvideDelegate diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.fir.kt index a18a23afc30..25d0a148e37 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.kt b/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.kt index d74411e9801..256d2a421d8 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/setterThisTypeMismatch.kt b/compiler/testData/diagnostics/tests/delegatedProperty/setterThisTypeMismatch.kt index c81e0401fd0..3d020f1c116 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/setterThisTypeMismatch.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/setterThisTypeMismatch.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/thisOfNothingNullableType.kt b/compiler/testData/diagnostics/tests/delegatedProperty/thisOfNothingNullableType.kt index 213772cb39f..166a2aa8a70 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/thisOfNothingNullableType.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/thisOfNothingNullableType.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/thisOfNothingType.kt b/compiler/testData/diagnostics/tests/delegatedProperty/thisOfNothingType.kt index 6f559318844..d916945818b 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/thisOfNothingType.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/thisOfNothingType.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForGetReturnType.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForGetReturnType.fir.kt index c2ed3cf5369..9f87631f031 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForGetReturnType.fir.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForGetReturnType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForGetReturnType.kt b/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForGetReturnType.kt index 71d1c3892b4..740a7d7176c 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForGetReturnType.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForGetReturnType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForSetParameter.kt b/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForSetParameter.kt index a280a71a3a7..edcd12c677e 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForSetParameter.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForSetParameter.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForThisGetParameter.kt b/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForThisGetParameter.kt index 855ead8f6aa..e8e99e8d53a 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForThisGetParameter.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForThisGetParameter.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegation/DelegationExpectedType.fir.kt b/compiler/testData/diagnostics/tests/delegation/DelegationExpectedType.fir.kt index 7742e6f5f0e..90af868e24d 100644 --- a/compiler/testData/diagnostics/tests/delegation/DelegationExpectedType.fir.kt +++ b/compiler/testData/diagnostics/tests/delegation/DelegationExpectedType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER interface A { diff --git a/compiler/testData/diagnostics/tests/delegation/DelegationExpectedType.kt b/compiler/testData/diagnostics/tests/delegation/DelegationExpectedType.kt index b10c1052c0d..3a7baea34f5 100644 --- a/compiler/testData/diagnostics/tests/delegation/DelegationExpectedType.kt +++ b/compiler/testData/diagnostics/tests/delegation/DelegationExpectedType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER interface A { diff --git a/compiler/testData/diagnostics/tests/delegation/clashes/finalMemberOverridden.fir.kt b/compiler/testData/diagnostics/tests/delegation/clashes/finalMemberOverridden.fir.kt index bdaa4551534..364ec0c5290 100644 --- a/compiler/testData/diagnostics/tests/delegation/clashes/finalMemberOverridden.fir.kt +++ b/compiler/testData/diagnostics/tests/delegation/clashes/finalMemberOverridden.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE open class Final { fun foo() {} val bar: Int = 0 diff --git a/compiler/testData/diagnostics/tests/delegation/clashes/finalMemberOverridden.kt b/compiler/testData/diagnostics/tests/delegation/clashes/finalMemberOverridden.kt index dc6663af184..5a99e5f74f4 100644 --- a/compiler/testData/diagnostics/tests/delegation/clashes/finalMemberOverridden.kt +++ b/compiler/testData/diagnostics/tests/delegation/clashes/finalMemberOverridden.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE open class Final { fun foo() {} val bar: Int = 0 diff --git a/compiler/testData/diagnostics/tests/delegation/memberHidesSupertypeOverride/severalDelegates.fir.kt b/compiler/testData/diagnostics/tests/delegation/memberHidesSupertypeOverride/severalDelegates.fir.kt index 31a575c77f5..0875a883077 100644 --- a/compiler/testData/diagnostics/tests/delegation/memberHidesSupertypeOverride/severalDelegates.fir.kt +++ b/compiler/testData/diagnostics/tests/delegation/memberHidesSupertypeOverride/severalDelegates.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface Base1 { fun test() = "OK" } diff --git a/compiler/testData/diagnostics/tests/delegation/memberHidesSupertypeOverride/severalDelegates.kt b/compiler/testData/diagnostics/tests/delegation/memberHidesSupertypeOverride/severalDelegates.kt index 8260598308f..85850278325 100644 --- a/compiler/testData/diagnostics/tests/delegation/memberHidesSupertypeOverride/severalDelegates.kt +++ b/compiler/testData/diagnostics/tests/delegation/memberHidesSupertypeOverride/severalDelegates.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface Base1 { fun test() = "OK" } diff --git a/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.fir.kt b/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.fir.kt index cbc3f4d1b96..7c9c6f68318 100644 --- a/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.fir.kt +++ b/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package m diff --git a/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.kt b/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.kt index 1e27c20a5e9..08b1fb12c4e 100644 --- a/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.kt +++ b/compiler/testData/diagnostics/tests/deparenthesize/checkDeparenthesizedType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package m diff --git a/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.fir.kt b/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.fir.kt index 0a93180d2f3..1fb7f27f8c6 100644 --- a/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.fir.kt +++ b/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE enum class E : Cloneable { A; override fun clone(): Any { diff --git a/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt b/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt index 7e54fe89e29..f18c3eb226b 100644 --- a/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt +++ b/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE enum class E : Cloneable { A; override fun clone(): Any { diff --git a/compiler/testData/diagnostics/tests/evaluate/divisionByZero.fir.kt b/compiler/testData/diagnostics/tests/evaluate/divisionByZero.fir.kt index ba60714eeec..80b8b13d1a6 100644 --- a/compiler/testData/diagnostics/tests/evaluate/divisionByZero.fir.kt +++ b/compiler/testData/diagnostics/tests/evaluate/divisionByZero.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE val a1 = 0 val a2 = 1 / 0 diff --git a/compiler/testData/diagnostics/tests/evaluate/divisionByZero.kt b/compiler/testData/diagnostics/tests/evaluate/divisionByZero.kt index 96e181a510f..c6f36e97204 100644 --- a/compiler/testData/diagnostics/tests/evaluate/divisionByZero.kt +++ b/compiler/testData/diagnostics/tests/evaluate/divisionByZero.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE val a1 = 0 val a2 = 1 / 0 diff --git a/compiler/testData/diagnostics/tests/exposed/inaccessibleType.fir.kt b/compiler/testData/diagnostics/tests/exposed/inaccessibleType.fir.kt index 9a2045952a6..f25ef7c9ef4 100644 --- a/compiler/testData/diagnostics/tests/exposed/inaccessibleType.fir.kt +++ b/compiler/testData/diagnostics/tests/exposed/inaccessibleType.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -USELESS_CAST -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FILE: j/Base.java package j; diff --git a/compiler/testData/diagnostics/tests/exposed/inaccessibleType.kt b/compiler/testData/diagnostics/tests/exposed/inaccessibleType.kt index 3571333955c..c74cc2020e7 100644 --- a/compiler/testData/diagnostics/tests/exposed/inaccessibleType.kt +++ b/compiler/testData/diagnostics/tests/exposed/inaccessibleType.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -USELESS_CAST -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FILE: j/Base.java package j; diff --git a/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.fir.kt b/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.fir.kt index cdd860a98bf..a9b5aef4c75 100644 --- a/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.fir.kt +++ b/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: a.kt package outer diff --git a/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.kt b/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.kt index daedeee3e63..9d66173da70 100644 --- a/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.kt +++ b/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: a.kt package outer diff --git a/compiler/testData/diagnostics/tests/extensions/classObject.fir.kt b/compiler/testData/diagnostics/tests/extensions/classObject.fir.kt index 59906776f9f..504fca39d45 100644 --- a/compiler/testData/diagnostics/tests/extensions/classObject.fir.kt +++ b/compiler/testData/diagnostics/tests/extensions/classObject.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface Tr class A { companion object } diff --git a/compiler/testData/diagnostics/tests/extensions/classObject.kt b/compiler/testData/diagnostics/tests/extensions/classObject.kt index 59081a07c2b..e6d4e5aa45f 100644 --- a/compiler/testData/diagnostics/tests/extensions/classObject.kt +++ b/compiler/testData/diagnostics/tests/extensions/classObject.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface Tr class A { companion object } diff --git a/compiler/testData/diagnostics/tests/extensions/extensionMemberInClassObject.fir.kt b/compiler/testData/diagnostics/tests/extensions/extensionMemberInClassObject.fir.kt index a5802ec230a..98c13e9b600 100644 --- a/compiler/testData/diagnostics/tests/extensions/extensionMemberInClassObject.fir.kt +++ b/compiler/testData/diagnostics/tests/extensions/extensionMemberInClassObject.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE interface JPAEntityClass { fun T.findByName(s: String): D {null!!} diff --git a/compiler/testData/diagnostics/tests/extensions/extensionMemberInClassObject.kt b/compiler/testData/diagnostics/tests/extensions/extensionMemberInClassObject.kt index 46f5bc1c2f0..5b5862e9dae 100644 --- a/compiler/testData/diagnostics/tests/extensions/extensionMemberInClassObject.kt +++ b/compiler/testData/diagnostics/tests/extensions/extensionMemberInClassObject.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE interface JPAEntityClass { fun T.findByName(s: String): D {null!!} diff --git a/compiler/testData/diagnostics/tests/extensions/kt3563.fir.kt b/compiler/testData/diagnostics/tests/extensions/kt3563.fir.kt index 802dc2207e7..b13f924f277 100644 --- a/compiler/testData/diagnostics/tests/extensions/kt3563.fir.kt +++ b/compiler/testData/diagnostics/tests/extensions/kt3563.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-3563 Compiler requiring java.io.File, and it's unclear why package bar diff --git a/compiler/testData/diagnostics/tests/extensions/kt3563.kt b/compiler/testData/diagnostics/tests/extensions/kt3563.kt index 45f9b6b8af8..b7aa22e52ac 100644 --- a/compiler/testData/diagnostics/tests/extensions/kt3563.kt +++ b/compiler/testData/diagnostics/tests/extensions/kt3563.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-3563 Compiler requiring java.io.File, and it's unclear why package bar diff --git a/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver.fir.kt b/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver.fir.kt index 2a24d9a4177..472484733c8 100644 --- a/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver.fir.kt +++ b/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package bar diff --git a/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver.kt b/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver.kt index 89da8c15289..28e12d062f2 100644 --- a/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver.kt +++ b/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package bar diff --git a/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver2.fir.kt b/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver2.fir.kt index 634d38bae98..2ecd180fbab 100644 --- a/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver2.fir.kt +++ b/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver2.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a class A {} diff --git a/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver2.kt b/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver2.kt index ccd38c0d785..a358604b17a 100644 --- a/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver2.kt +++ b/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver2.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a class A {} diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/FunctionType.fir.kt b/compiler/testData/diagnostics/tests/functionAsExpression/FunctionType.fir.kt index 01c65eada00..024b43fa227 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/FunctionType.fir.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/FunctionType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/FunctionType.kt b/compiler/testData/diagnostics/tests/functionAsExpression/FunctionType.kt index fe07efb7534..e7b9ef3c3a5 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/FunctionType.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/FunctionType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.fir.kt b/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.fir.kt index bf1be9eec6a..6f7c0a80cee 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE fun listOf(): List = null!! diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.kt b/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.kt index f8cbaed0d9e..e810eadd259 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE fun listOf(): List = null!! diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/MissingParameterTypes.fir.kt b/compiler/testData/diagnostics/tests/functionAsExpression/MissingParameterTypes.fir.kt index 0df064a4054..a53c1ba8f57 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/MissingParameterTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/MissingParameterTypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/MissingParameterTypes.kt b/compiler/testData/diagnostics/tests/functionAsExpression/MissingParameterTypes.kt index 075c00c052f..e4e7cb1ea03 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/MissingParameterTypes.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/MissingParameterTypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.fir.kt b/compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.fir.kt index 1ba956ba591..05f5ff1921e 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.fir.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.fir.kt @@ -1,3 +1,2 @@ -// !WITH_NEW_INFERENCE fun foo(f: String.() -> Int) {} val test = foo(fun () = length) diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.kt b/compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.kt index 7400932c1bb..97f43096fcc 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.kt @@ -1,3 +1,2 @@ -// !WITH_NEW_INFERENCE fun foo(f: String.() -> Int) {} val test = foo(fun () = length) diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/WithGenericParameters.fir.kt b/compiler/testData/diagnostics/tests/functionAsExpression/WithGenericParameters.fir.kt index 17ea14c6a0f..931f8557a41 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/WithGenericParameters.fir.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/WithGenericParameters.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER interface A diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/WithGenericParameters.kt b/compiler/testData/diagnostics/tests/functionAsExpression/WithGenericParameters.kt index b0ba25b3c96..3209a9efa5d 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/WithGenericParameters.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/WithGenericParameters.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER interface A diff --git a/compiler/testData/diagnostics/tests/functionLiterals/DeprecatedSyntax.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/DeprecatedSyntax.fir.kt index 8111b18415b..83cdfd7f608 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/DeprecatedSyntax.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/DeprecatedSyntax.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE val receiver = { Int.() -> } val receiverWithParameter = { Int.(a) -> } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/DeprecatedSyntax.kt b/compiler/testData/diagnostics/tests/functionLiterals/DeprecatedSyntax.kt index 83db001f4fb..257f11a149b 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/DeprecatedSyntax.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/DeprecatedSyntax.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE val receiver = { Int.() -> } val receiverWithParameter = { Int.(a) -> } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParameterTypeMismatchVariance.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParameterTypeMismatchVariance.fir.kt index b78dc2ed6de..3276af65ace 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParameterTypeMismatchVariance.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParameterTypeMismatchVariance.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_ANONYMOUS_PARAMETER package a diff --git a/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParameterTypeMismatchVariance.kt b/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParameterTypeMismatchVariance.kt index 256b22d7c7d..e56012b3086 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParameterTypeMismatchVariance.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParameterTypeMismatchVariance.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_ANONYMOUS_PARAMETER package a diff --git a/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.fir.kt index 33e568b0c0e..1a7f1c67f04 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a fun foo0(f: () -> String) = f diff --git a/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.kt b/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.kt index 15723a1b453..dba678eb05a 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a fun foo0(f: () -> String) = f diff --git a/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.fir.kt index 3ed2055c36e..4bcde82e60e 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package h //traits to make ambiguity with function literal as an argument diff --git a/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.kt b/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.kt index 4ebaa121fed..9b020300a14 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package h //traits to make ambiguity with function literal as an argument diff --git a/compiler/testData/diagnostics/tests/functionLiterals/assignmentOperationInLambdaWithExpectedType.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/assignmentOperationInLambdaWithExpectedType.fir.kt index ac9ddf444fe..1a57c9b9e82 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/assignmentOperationInLambdaWithExpectedType.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/assignmentOperationInLambdaWithExpectedType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(bal: Array) { var bar = 4 diff --git a/compiler/testData/diagnostics/tests/functionLiterals/assignmentOperationInLambdaWithExpectedType.kt b/compiler/testData/diagnostics/tests/functionLiterals/assignmentOperationInLambdaWithExpectedType.kt index af0f5107fb5..27ed62005c0 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/assignmentOperationInLambdaWithExpectedType.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/assignmentOperationInLambdaWithExpectedType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(bal: Array) { var bar = 4 diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.fir.kt index 36f55311414..54de7540b24 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER data class A(val x: Int, val y: String) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.kt index c0c10550f24..7eeff83541d 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER data class A(val x: Int, val y: String) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.fir.kt index af2c1f80b19..547897f30d7 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER data class A(val x: Int, val y: String) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.kt index e37741fc27a..c074bbbc53c 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER data class A(val x: Int, val y: String) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.fir.kt index 4fec1861ca3..90aec275a7d 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_VARIABLE data class A(val x: Int, val y: String) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.kt index 7e9b68f8dc5..5753f8c2c0b 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_VARIABLE data class A(val x: Int, val y: String) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/redeclaration.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/redeclaration.fir.kt index eacbe222183..9b268965011 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/redeclaration.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/redeclaration.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER data class A(val x: Int, val y: String) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/redeclaration.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/redeclaration.kt index 45cd30a41b2..f47c7d525fe 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/redeclaration.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/redeclaration.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER data class A(val x: Int, val y: String) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/simple.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/simple.fir.kt index 30bb8a69f4f..13e1d1f1757 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/simple.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/simple.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER data class A(val x: Int, val y: String) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/simple.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/simple.kt index 11e4b0ed95c..cfb973869e4 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/simple.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/simple.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER data class A(val x: Int, val y: String) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/underscore.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/underscore.fir.kt index 0f01f99fbf8..9f9803681ff 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/underscore.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/underscore.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER data class A(val x: Int, val y: String) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/underscore.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/underscore.kt index 862932686bf..585dec4c051 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/underscore.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/underscore.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER data class A(val x: Int, val y: String) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.fir.kt index abb1198ef3e..531512ef8f8 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-7383 Assertion failed when a star-projection of function type is used fun foo() { diff --git a/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.kt b/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.kt index 0b06daa66a4..bf12887292c 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-7383 Assertion failed when a star-projection of function type is used fun foo() { diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/ForbiddenNonLocalReturnNoType.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/ForbiddenNonLocalReturnNoType.kt index a02e3ec1010..a2500bc82dc 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/ForbiddenNonLocalReturnNoType.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/ForbiddenNonLocalReturnNoType.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE fun test() { run {return} run {} diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnNoCoercionToUnit.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnNoCoercionToUnit.fir.kt index 998fc7d5291..bd241153105 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnNoCoercionToUnit.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnNoCoercionToUnit.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(a: Int) { run f@{ if (a > 0) return@f diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnNoCoercionToUnit.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnNoCoercionToUnit.kt index 248d8870097..758b5b2a188 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnNoCoercionToUnit.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnNoCoercionToUnit.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(a: Int) { run f@{ if (a > 0) return@f diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnUnitAndDontCareType.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnUnitAndDontCareType.fir.kt index 96941889555..0dcc17c600a 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnUnitAndDontCareType.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnUnitAndDontCareType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE val flag = true diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnUnitAndDontCareType.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnUnitAndDontCareType.kt index e9e8cec06aa..61206d5f67a 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnUnitAndDontCareType.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnUnitAndDontCareType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE val flag = true diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnsWithExplicitReturnType.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnsWithExplicitReturnType.fir.kt index 91930abf1d3..e5f864f2baa 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnsWithExplicitReturnType.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnsWithExplicitReturnType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(a: Int) { runf@{ if (a > 0) return@f "" diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnsWithExplicitReturnType.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnsWithExplicitReturnType.kt index b5d5d185409..34821cc921b 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnsWithExplicitReturnType.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnsWithExplicitReturnType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(a: Int) { runf@{ if (a > 0) return@f "" diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.fir.kt index 350f0877d5d..e86df822f8d 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun Iterable.map(transform: (T) -> R): List = null!! fun listOf(): List = null!! fun listOf(vararg values: T): List = null!! diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.kt index 9a4a49e8bb7..8f97ce3f2f7 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun Iterable.map(transform: (T) -> R): List = null!! fun listOf(): List = null!! fun listOf(vararg values: T): List = null!! diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/SmartCast.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/SmartCast.fir.kt index f0b428ce65b..a1dbfb3eb58 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/SmartCast.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/SmartCast.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // KT-6822 Smart cast doesn't work inside local returned expression in lambda diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/SmartCast.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/SmartCast.kt index 5b87f4a6639..8bbe3eaec5d 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/SmartCast.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/SmartCast.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // KT-6822 Smart cast doesn't work inside local returned expression in lambda diff --git a/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.fir.kt index 98fce09583a..966e4961a6f 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package m interface Element diff --git a/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.kt b/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.kt index 97c1866b3d7..54199aebc46 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package m interface Element diff --git a/compiler/testData/diagnostics/tests/generics/Projections.fir.kt b/compiler/testData/diagnostics/tests/generics/Projections.fir.kt index 71832d2488d..7b9792c7fa0 100644 --- a/compiler/testData/diagnostics/tests/generics/Projections.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/Projections.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE class In() { diff --git a/compiler/testData/diagnostics/tests/generics/Projections.kt b/compiler/testData/diagnostics/tests/generics/Projections.kt index fbcfe3ec6bc..e751811eb81 100644 --- a/compiler/testData/diagnostics/tests/generics/Projections.kt +++ b/compiler/testData/diagnostics/tests/generics/Projections.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE class In() { diff --git a/compiler/testData/diagnostics/tests/generics/capturedParameters/innerLocalClass.fir.kt b/compiler/testData/diagnostics/tests/generics/capturedParameters/innerLocalClass.fir.kt index 9db00cd330e..bb354c54523 100644 --- a/compiler/testData/diagnostics/tests/generics/capturedParameters/innerLocalClass.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/capturedParameters/innerLocalClass.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // NI_EXPECTED_FILE private class Outer { diff --git a/compiler/testData/diagnostics/tests/generics/capturedParameters/innerLocalClass.kt b/compiler/testData/diagnostics/tests/generics/capturedParameters/innerLocalClass.kt index fba197b17fa..70258d09ad7 100644 --- a/compiler/testData/diagnostics/tests/generics/capturedParameters/innerLocalClass.kt +++ b/compiler/testData/diagnostics/tests/generics/capturedParameters/innerLocalClass.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // NI_EXPECTED_FILE private class Outer { diff --git a/compiler/testData/diagnostics/tests/generics/capturedParameters/localClass.fir.kt b/compiler/testData/diagnostics/tests/generics/capturedParameters/localClass.fir.kt index 6a62c440362..02fe183ea8f 100644 --- a/compiler/testData/diagnostics/tests/generics/capturedParameters/localClass.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/capturedParameters/localClass.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE fun magic(): T = null!! diff --git a/compiler/testData/diagnostics/tests/generics/capturedParameters/localClass.kt b/compiler/testData/diagnostics/tests/generics/capturedParameters/localClass.kt index 983949fc3e9..a15270d8bb9 100644 --- a/compiler/testData/diagnostics/tests/generics/capturedParameters/localClass.kt +++ b/compiler/testData/diagnostics/tests/generics/capturedParameters/localClass.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE fun magic(): T = null!! diff --git a/compiler/testData/diagnostics/tests/generics/capturedParameters/objectLiteral.fir.kt b/compiler/testData/diagnostics/tests/generics/capturedParameters/objectLiteral.fir.kt index e2025ae2620..20b2656e1d4 100644 --- a/compiler/testData/diagnostics/tests/generics/capturedParameters/objectLiteral.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/capturedParameters/objectLiteral.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE fun magic(): T = null!! diff --git a/compiler/testData/diagnostics/tests/generics/capturedParameters/objectLiteral.kt b/compiler/testData/diagnostics/tests/generics/capturedParameters/objectLiteral.kt index 08cd7c2008a..37af4b63f8f 100644 --- a/compiler/testData/diagnostics/tests/generics/capturedParameters/objectLiteral.kt +++ b/compiler/testData/diagnostics/tests/generics/capturedParameters/objectLiteral.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE fun magic(): T = null!! diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocal.fir.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocal.fir.kt index 6d9ada7f7a6..146f78ef334 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocal.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocal.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER -TOPLEVEL_TYPEALIASES_ONLY diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocal.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocal.kt index 0e1bdb17869..a834baca259 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocal.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocal.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER -TOPLEVEL_TYPEALIASES_ONLY diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.fir.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.fir.kt index c4fd539d3fc..202dc6a5f67 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER -TOPLEVEL_TYPEALIASES_ONLY diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.kt index 41446fbcbad..7353627a470 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER -TOPLEVEL_TYPEALIASES_ONLY diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/innerTP.fir.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/innerTP.fir.kt index e6715840002..79207e23614 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/innerTP.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/innerTP.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/innerTP.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/innerTP.kt index 1e47b515c93..ad2154e0abc 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/innerTP.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/innerTP.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/innerUncheckedCast.fir.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/innerUncheckedCast.fir.kt index 079219d3a6b..1cdf23f96b2 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/innerUncheckedCast.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/innerUncheckedCast.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE class Outer { diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/innerUncheckedCast.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/innerUncheckedCast.kt index 54281b0ef71..73d216fb93c 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/innerUncheckedCast.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/innerUncheckedCast.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE class Outer { diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/iterator.fir.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/iterator.fir.kt index 49a3c44cbff..054c18edf3b 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/iterator.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/iterator.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_VARIABLE // JAVAC_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/iterator.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/iterator.kt index 64b3a129de1..fa48202eef8 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/iterator.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/iterator.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_VARIABLE // JAVAC_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/qualifiedOuter.fir.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/qualifiedOuter.fir.kt index 29f126589f7..e293e122324 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/qualifiedOuter.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/qualifiedOuter.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VALUE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/qualifiedOuter.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/qualifiedOuter.kt index c9c5da69d80..bb9c10f2d8e 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/qualifiedOuter.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/qualifiedOuter.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VALUE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/simpleOutUseSite.fir.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/simpleOutUseSite.fir.kt index f8586a9c92b..e7b2369250d 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/simpleOutUseSite.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/simpleOutUseSite.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/simpleOutUseSite.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/simpleOutUseSite.kt index c7b41148d8c..58130117bac 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/simpleOutUseSite.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/simpleOutUseSite.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/generics/kt30590.fir.kt b/compiler/testData/diagnostics/tests/generics/kt30590.fir.kt index fc7f293f8c0..eb5d2cd96e3 100644 --- a/compiler/testData/diagnostics/tests/generics/kt30590.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/kt30590.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/generics/kt30590.kt b/compiler/testData/diagnostics/tests/generics/kt30590.kt index 9e5d418b52f..065cd2c2fb7 100644 --- a/compiler/testData/diagnostics/tests/generics/kt30590.kt +++ b/compiler/testData/diagnostics/tests/generics/kt30590.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/generics/kt34729.fir.kt b/compiler/testData/diagnostics/tests/generics/kt34729.fir.kt index 81507bb416f..2c3f763878d 100644 --- a/compiler/testData/diagnostics/tests/generics/kt34729.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/kt34729.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // !LANGUAGE: +NewInference diff --git a/compiler/testData/diagnostics/tests/generics/kt34729.kt b/compiler/testData/diagnostics/tests/generics/kt34729.kt index f07d2e3ee0c..9f993c27f14 100644 --- a/compiler/testData/diagnostics/tests/generics/kt34729.kt +++ b/compiler/testData/diagnostics/tests/generics/kt34729.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // !LANGUAGE: +NewInference diff --git a/compiler/testData/diagnostics/tests/generics/multipleBoundsMemberScope/simple.fir.kt b/compiler/testData/diagnostics/tests/generics/multipleBoundsMemberScope/simple.fir.kt index 3eb3f039f43..2ed53725de1 100644 --- a/compiler/testData/diagnostics/tests/generics/multipleBoundsMemberScope/simple.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/multipleBoundsMemberScope/simple.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface A { fun foo() } diff --git a/compiler/testData/diagnostics/tests/generics/multipleBoundsMemberScope/simple.kt b/compiler/testData/diagnostics/tests/generics/multipleBoundsMemberScope/simple.kt index 3a76b1ca50c..161252d172c 100644 --- a/compiler/testData/diagnostics/tests/generics/multipleBoundsMemberScope/simple.kt +++ b/compiler/testData/diagnostics/tests/generics/multipleBoundsMemberScope/simple.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface A { fun foo() } diff --git a/compiler/testData/diagnostics/tests/generics/nullability/expressionsBoundsViolation.fir.kt b/compiler/testData/diagnostics/tests/generics/nullability/expressionsBoundsViolation.fir.kt index 19ab29f9bf5..457375011b1 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/expressionsBoundsViolation.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/expressionsBoundsViolation.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A(x: T) diff --git a/compiler/testData/diagnostics/tests/generics/nullability/expressionsBoundsViolation.kt b/compiler/testData/diagnostics/tests/generics/nullability/expressionsBoundsViolation.kt index 73ec1f43bd2..4d511fd15d0 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/expressionsBoundsViolation.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/expressionsBoundsViolation.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A(x: T) diff --git a/compiler/testData/diagnostics/tests/generics/nullability/smartCasts.fir.kt b/compiler/testData/diagnostics/tests/generics/nullability/smartCasts.fir.kt index a69eea7da2f..dfec1c57287 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/smartCasts.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/smartCasts.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION,-UNUSED_VARIABLE fun T.bar1() {} diff --git a/compiler/testData/diagnostics/tests/generics/nullability/smartCasts.kt b/compiler/testData/diagnostics/tests/generics/nullability/smartCasts.kt index 25d9392afdb..0960439ba2e 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/smartCasts.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/smartCasts.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION,-UNUSED_VARIABLE fun T.bar1() {} diff --git a/compiler/testData/diagnostics/tests/generics/nullability/smartCastsOnThis.fir.kt b/compiler/testData/diagnostics/tests/generics/nullability/smartCastsOnThis.fir.kt index ced57f85d58..5cc65394618 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/smartCastsOnThis.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/smartCastsOnThis.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION,-UNUSED_VARIABLE fun T.bar1() {} diff --git a/compiler/testData/diagnostics/tests/generics/nullability/smartCastsOnThis.kt b/compiler/testData/diagnostics/tests/generics/nullability/smartCastsOnThis.kt index 4196c852c6e..40f25b33373 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/smartCastsOnThis.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/smartCastsOnThis.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION,-UNUSED_VARIABLE fun T.bar1() {} diff --git a/compiler/testData/diagnostics/tests/generics/nullability/smartCastsValueArgument.fir.kt b/compiler/testData/diagnostics/tests/generics/nullability/smartCastsValueArgument.fir.kt index 672d2e18f86..27d83b75346 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/smartCastsValueArgument.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/smartCastsValueArgument.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_VARIABLE -UNUSED_PARAMETER -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE fun bar1(x: T) {} diff --git a/compiler/testData/diagnostics/tests/generics/nullability/smartCastsValueArgument.kt b/compiler/testData/diagnostics/tests/generics/nullability/smartCastsValueArgument.kt index a9c752df1e0..c6bb3d8cf4b 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/smartCastsValueArgument.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/smartCastsValueArgument.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_VARIABLE -UNUSED_PARAMETER -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE fun bar1(x: T) {} diff --git a/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolation.fir.kt b/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolation.fir.kt index bbb5fd5457d..cc72d5e866f 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolation.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolation.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolation.kt b/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolation.kt index 851db406158..6d16004c320 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolation.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolation.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolationVariance.fir.kt b/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolationVariance.fir.kt index f21a8a01c4b..e8301245153 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolationVariance.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolationVariance.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER,-UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolationVariance.kt b/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolationVariance.kt index 990c6ae3038..df2221ef587 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolationVariance.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolationVariance.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER,-UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/generics/nullability/tpInBounds.fir.kt b/compiler/testData/diagnostics/tests/generics/nullability/tpInBounds.fir.kt index 23624fb4fd6..8164b68eecc 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/tpInBounds.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/tpInBounds.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VALUE -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -VARIABLE_WITH_REDUNDANT_INITIALIZER class A { diff --git a/compiler/testData/diagnostics/tests/generics/nullability/tpInBounds.kt b/compiler/testData/diagnostics/tests/generics/nullability/tpInBounds.kt index 0f76856a0b6..819d298e21e 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/tpInBounds.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/tpInBounds.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VALUE -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -VARIABLE_WITH_REDUNDANT_INITIALIZER class A { diff --git a/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.fir.kt b/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.fir.kt index 4add13feaa1..38d6b9d8ad3 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION,-UNUSED_VARIABLE fun T.bar1() {} diff --git a/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.kt b/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.kt index d17ab31de17..17998637049 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION,-UNUSED_VARIABLE fun T.bar1() {} diff --git a/compiler/testData/diagnostics/tests/generics/nullability/useAsValueArgument.fir.kt b/compiler/testData/diagnostics/tests/generics/nullability/useAsValueArgument.fir.kt index 825afde72d5..5e7b5e94c1e 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/useAsValueArgument.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/useAsValueArgument.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE fun bar1(x: T) {} diff --git a/compiler/testData/diagnostics/tests/generics/nullability/useAsValueArgument.kt b/compiler/testData/diagnostics/tests/generics/nullability/useAsValueArgument.kt index b3436752d5c..05c72e519ae 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/useAsValueArgument.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/useAsValueArgument.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE fun bar1(x: T) {} diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/addAll.fir.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/addAll.fir.kt index f838a567a99..69ec47b337f 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/addAll.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/addAll.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER interface C diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/addAll.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/addAll.kt index 2f66883b44b..08134790020 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/addAll.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/addAll.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER interface C diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/extensionReceiverTypeMismatch.fir.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/extensionReceiverTypeMismatch.fir.kt index 86934ecf1fa..033aeb43f75 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/extensionReceiverTypeMismatch.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/extensionReceiverTypeMismatch.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A { fun T.foo() {} fun Out.bar() {} diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/extensionReceiverTypeMismatch.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/extensionReceiverTypeMismatch.kt index 6a65475cc85..6b98cff7f97 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/extensionReceiverTypeMismatch.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/extensionReceiverTypeMismatch.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A { fun T.foo() {} fun Out.bar() {} diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/inValueParameter.fir.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/inValueParameter.fir.kt index 11c53b219ee..5d1a3ba3376 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/inValueParameter.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/inValueParameter.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface A interface B { fun foo(x: A) diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/inValueParameter.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/inValueParameter.kt index a4ecece652a..7d019f81856 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/inValueParameter.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/inValueParameter.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface A interface B { fun foo(x: A) diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/kt7296.fir.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/kt7296.fir.kt index 247b88ce81b..3debc87b9e5 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/kt7296.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/kt7296.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // !CHECK_TYPE import java.util.ArrayList diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/kt7296.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/kt7296.kt index a34babd823e..bf92e860044 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/kt7296.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/kt7296.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // !CHECK_TYPE import java.util.ArrayList diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/multipleArgumentProjectedOut.fir.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/multipleArgumentProjectedOut.fir.kt index f75905a9af0..929445b7e34 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/multipleArgumentProjectedOut.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/multipleArgumentProjectedOut.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A { diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/multipleArgumentProjectedOut.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/multipleArgumentProjectedOut.kt index 280493caf68..812ef20d22b 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/multipleArgumentProjectedOut.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/multipleArgumentProjectedOut.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A { diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/platformSuperClass.fir.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/platformSuperClass.fir.kt index 88468010ca6..f7bd702a738 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/platformSuperClass.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/platformSuperClass.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: Clazz.java diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/platformSuperClass.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/platformSuperClass.kt index 63f2e9eb509..9762496f347 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/platformSuperClass.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/platformSuperClass.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: Clazz.java diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutConventions.fir.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutConventions.fir.kt index 0a3c82c5e05..8bde9b0bc8b 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutConventions.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutConventions.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A { diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutConventions.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutConventions.kt index 0af707c81eb..104aa8869fa 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutConventions.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutConventions.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A { diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutSmartCast.fir.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutSmartCast.fir.kt index 7f79fcf4a6f..2722ef3cb61 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutSmartCast.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutSmartCast.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class Inv class C { diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutSmartCast.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutSmartCast.kt index afe772cfb44..b2a65a313af 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutSmartCast.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutSmartCast.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class Inv class C { diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/starNullabilityRecursive.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/starNullabilityRecursive.kt index a74e605d5f4..647c43d2127 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/starNullabilityRecursive.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/starNullabilityRecursive.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE interface A?> { diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchConventions.fir.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchConventions.fir.kt index 7a128a0ceea..c93bf963688 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchConventions.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchConventions.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A { diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchConventions.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchConventions.kt index dcb3fddb8b9..49c400c9eb6 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchConventions.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchConventions.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A { diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchInLambda.fir.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchInLambda.fir.kt index c1f1d9fa5c5..c71c7c06a0f 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchInLambda.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchInLambda.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE class Out { diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchInLambda.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchInLambda.kt index 55b57fdfd0c..f1917f2309b 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchInLambda.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchInLambda.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE class Out { diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.fir.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.fir.kt index b0ab7830151..d34eb310c3f 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.kt index 9b3e6464052..f65f208efe5 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/varargs.fir.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/varargs.fir.kt index c21154f95f3..ba07d0b42ce 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/varargs.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/varargs.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A { diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/varargs.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/varargs.kt index 1b7ec4bcafe..7308ea36821 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/varargs.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/varargs.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A { diff --git a/compiler/testData/diagnostics/tests/generics/protectedSuperCall.fir.kt b/compiler/testData/diagnostics/tests/generics/protectedSuperCall.fir.kt index 0b6114cd802..0f89e995456 100644 --- a/compiler/testData/diagnostics/tests/generics/protectedSuperCall.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/protectedSuperCall.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // FILE: GA.kt diff --git a/compiler/testData/diagnostics/tests/generics/protectedSuperCall.kt b/compiler/testData/diagnostics/tests/generics/protectedSuperCall.kt index 01d9838004e..0b128cd097d 100644 --- a/compiler/testData/diagnostics/tests/generics/protectedSuperCall.kt +++ b/compiler/testData/diagnostics/tests/generics/protectedSuperCall.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // FILE: GA.kt diff --git a/compiler/testData/diagnostics/tests/generics/starProjections/invalid.fir.kt b/compiler/testData/diagnostics/tests/generics/starProjections/invalid.fir.kt index 7fa36d8ecf7..f97dbcb6ee0 100644 --- a/compiler/testData/diagnostics/tests/generics/starProjections/invalid.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/starProjections/invalid.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER // FILE: main.kt diff --git a/compiler/testData/diagnostics/tests/generics/starProjections/invalid.kt b/compiler/testData/diagnostics/tests/generics/starProjections/invalid.kt index 40880d0e20f..ff5029bd207 100644 --- a/compiler/testData/diagnostics/tests/generics/starProjections/invalid.kt +++ b/compiler/testData/diagnostics/tests/generics/starProjections/invalid.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER // FILE: main.kt diff --git a/compiler/testData/diagnostics/tests/generics/tpAsReified/CapturedAsReified.fir.kt b/compiler/testData/diagnostics/tests/generics/tpAsReified/CapturedAsReified.fir.kt index 8402c98cef4..8921ee1031c 100644 --- a/compiler/testData/diagnostics/tests/generics/tpAsReified/CapturedAsReified.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/tpAsReified/CapturedAsReified.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A diff --git a/compiler/testData/diagnostics/tests/generics/tpAsReified/CapturedAsReified.kt b/compiler/testData/diagnostics/tests/generics/tpAsReified/CapturedAsReified.kt index 7df95fbe8ed..97b84e5fdb2 100644 --- a/compiler/testData/diagnostics/tests/generics/tpAsReified/CapturedAsReified.kt +++ b/compiler/testData/diagnostics/tests/generics/tpAsReified/CapturedAsReified.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A diff --git a/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.fir.kt b/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.fir.kt index edd4554f33d..c91803b2995 100644 --- a/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class C<reified T> fun id(p: T): T = p diff --git a/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.kt b/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.kt index c8c5d88f04f..d2a85166754 100644 --- a/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.kt +++ b/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class C<reified T> fun id(p: T): T = p diff --git a/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.fir.kt b/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.fir.kt index 8153c980f63..b73c9bec5a2 100644 --- a/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_EXPRESSION inline fun foo() { diff --git a/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.kt b/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.kt index 5fa0d3563d6..eff39527cac 100644 --- a/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.kt +++ b/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_EXPRESSION inline fun foo() { diff --git a/compiler/testData/diagnostics/tests/generics/varProjection/setterNotProjectedOutAssign.fir.kt b/compiler/testData/diagnostics/tests/generics/varProjection/setterNotProjectedOutAssign.fir.kt index 6519e562bfe..b5ebf1f1ca3 100644 --- a/compiler/testData/diagnostics/tests/generics/varProjection/setterNotProjectedOutAssign.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/varProjection/setterNotProjectedOutAssign.fir.kt @@ -1,5 +1,4 @@ // !CHECK_TYPE -// !WITH_NEW_INFERENCE interface Tr { var v: Tr } diff --git a/compiler/testData/diagnostics/tests/generics/varProjection/setterNotProjectedOutAssign.kt b/compiler/testData/diagnostics/tests/generics/varProjection/setterNotProjectedOutAssign.kt index 3a985d9f749..4013acd1a59 100644 --- a/compiler/testData/diagnostics/tests/generics/varProjection/setterNotProjectedOutAssign.kt +++ b/compiler/testData/diagnostics/tests/generics/varProjection/setterNotProjectedOutAssign.kt @@ -1,5 +1,4 @@ // !CHECK_TYPE -// !WITH_NEW_INFERENCE interface Tr { var v: Tr } diff --git a/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutAssign.fir.kt b/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutAssign.fir.kt index e496c211df9..2a9d439e679 100644 --- a/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutAssign.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutAssign.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNREACHABLE_CODE -UNUSED_PARAMETER // !CHECK_TYPE -// !WITH_NEW_INFERENCE // t is unused due to KT-4233 interface Tr { var v: T diff --git a/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutAssign.kt b/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutAssign.kt index d2d740e37ec..be7dcf38e55 100644 --- a/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutAssign.kt +++ b/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutAssign.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNREACHABLE_CODE -UNUSED_PARAMETER // !CHECK_TYPE -// !WITH_NEW_INFERENCE // t is unused due to KT-4233 interface Tr { var v: T diff --git a/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutNoPlusAssign.fir.kt b/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutNoPlusAssign.fir.kt index c63e7486b07..108e8147295 100644 --- a/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutNoPlusAssign.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutNoPlusAssign.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNREACHABLE_CODE -// !WITH_NEW_INFERENCE interface Tr { var v: T } diff --git a/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutNoPlusAssign.kt b/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutNoPlusAssign.kt index b2046304041..f1169423b91 100644 --- a/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutNoPlusAssign.kt +++ b/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutNoPlusAssign.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNREACHABLE_CODE -// !WITH_NEW_INFERENCE interface Tr { var v: T } diff --git a/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.fir.kt b/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.fir.kt index e02c42140fd..885e77f46f2 100644 --- a/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.fir.kt +++ b/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE fun myFun(i : String) {} diff --git a/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt b/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt index dbe5097d6f5..d899b0753e4 100644 --- a/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt +++ b/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE fun myFun(i : String) {} diff --git a/compiler/testData/diagnostics/tests/implicitIntersection.fir.kt b/compiler/testData/diagnostics/tests/implicitIntersection.fir.kt index 603d7123d64..f5f91e1f8ee 100644 --- a/compiler/testData/diagnostics/tests/implicitIntersection.fir.kt +++ b/compiler/testData/diagnostics/tests/implicitIntersection.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // See KT-10244: no intersection types in signatures diff --git a/compiler/testData/diagnostics/tests/implicitIntersection.kt b/compiler/testData/diagnostics/tests/implicitIntersection.kt index 228697fac03..449fd529d9a 100644 --- a/compiler/testData/diagnostics/tests/implicitIntersection.kt +++ b/compiler/testData/diagnostics/tests/implicitIntersection.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // See KT-10244: no intersection types in signatures diff --git a/compiler/testData/diagnostics/tests/implicitNestedIntersection.fir.kt b/compiler/testData/diagnostics/tests/implicitNestedIntersection.fir.kt index 9a7ae4322b3..589b23dff7e 100644 --- a/compiler/testData/diagnostics/tests/implicitNestedIntersection.fir.kt +++ b/compiler/testData/diagnostics/tests/implicitNestedIntersection.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/implicitNestedIntersection.kt b/compiler/testData/diagnostics/tests/implicitNestedIntersection.kt index 02a83df85a8..96e91be70b9 100644 --- a/compiler/testData/diagnostics/tests/implicitNestedIntersection.kt +++ b/compiler/testData/diagnostics/tests/implicitNestedIntersection.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.fir.kt b/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.fir.kt index bacfed58eb4..662ce394de5 100644 --- a/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.fir.kt +++ b/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // MODULE: m1 // FILE: a.kt package a diff --git a/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.kt b/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.kt index 54fe75a775d..03956ea2597 100644 --- a/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.kt +++ b/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // MODULE: m1 // FILE: a.kt package a diff --git a/compiler/testData/diagnostics/tests/imports/ImportOverloadFunctions.fir.kt b/compiler/testData/diagnostics/tests/imports/ImportOverloadFunctions.fir.kt index 3afe8b10396..9999be53404 100644 --- a/compiler/testData/diagnostics/tests/imports/ImportOverloadFunctions.fir.kt +++ b/compiler/testData/diagnostics/tests/imports/ImportOverloadFunctions.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FILE: 1.kt package k diff --git a/compiler/testData/diagnostics/tests/imports/ImportOverloadFunctions.kt b/compiler/testData/diagnostics/tests/imports/ImportOverloadFunctions.kt index d6d091c0325..e2081d0e7db 100644 --- a/compiler/testData/diagnostics/tests/imports/ImportOverloadFunctions.kt +++ b/compiler/testData/diagnostics/tests/imports/ImportOverloadFunctions.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FILE: 1.kt package k diff --git a/compiler/testData/diagnostics/tests/imports/Imports.fir.kt b/compiler/testData/diagnostics/tests/imports/Imports.fir.kt index 592aaf07f9b..16591b14077 100644 --- a/compiler/testData/diagnostics/tests/imports/Imports.fir.kt +++ b/compiler/testData/diagnostics/tests/imports/Imports.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE:a.kt package a diff --git a/compiler/testData/diagnostics/tests/imports/Imports.kt b/compiler/testData/diagnostics/tests/imports/Imports.kt index fdd7ddd18f6..a55745d480b 100644 --- a/compiler/testData/diagnostics/tests/imports/Imports.kt +++ b/compiler/testData/diagnostics/tests/imports/Imports.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE:a.kt package a diff --git a/compiler/testData/diagnostics/tests/imports/twoImportLists.fir.kt b/compiler/testData/diagnostics/tests/imports/twoImportLists.fir.kt index ac3a130affe..f672cbd68a2 100644 --- a/compiler/testData/diagnostics/tests/imports/twoImportLists.fir.kt +++ b/compiler/testData/diagnostics/tests/imports/twoImportLists.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE:a.kt package a diff --git a/compiler/testData/diagnostics/tests/imports/twoImportLists.kt b/compiler/testData/diagnostics/tests/imports/twoImportLists.kt index e9d4ec5ce4a..ac2f6b8ee97 100644 --- a/compiler/testData/diagnostics/tests/imports/twoImportLists.kt +++ b/compiler/testData/diagnostics/tests/imports/twoImportLists.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE:a.kt package a diff --git a/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.fir.kt b/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.fir.kt index 9910f306a43..e0232acad09 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.fir.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a fun foo() { diff --git a/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.kt b/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.kt index aa75c6f6be8..42221848c08 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a fun foo() { diff --git a/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.fir.kt b/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.fir.kt index f1d324fea07..422b9c6c20e 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.fir.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION package d diff --git a/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt b/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt index 25ead5a9f34..2586168dfdc 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION package d diff --git a/compiler/testData/diagnostics/tests/incompleteCode/controlStructuresErrors.fir.kt b/compiler/testData/diagnostics/tests/incompleteCode/controlStructuresErrors.fir.kt index 639b8d15dc2..313c50c5a8b 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/controlStructuresErrors.fir.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/controlStructuresErrors.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test1() { if (rr) { diff --git a/compiler/testData/diagnostics/tests/incompleteCode/controlStructuresErrors.kt b/compiler/testData/diagnostics/tests/incompleteCode/controlStructuresErrors.kt index 8e85b832182..c4f23e769c3 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/controlStructuresErrors.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/controlStructuresErrors.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test1() { if (rr) { diff --git a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.fir.kt b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.fir.kt index a11daee0313..90db98422fb 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.fir.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package bar fun main() { diff --git a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.kt b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.kt index c08815a2914..f5cabf77236 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package bar fun main() { diff --git a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.fir.kt b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.fir.kt index 2094b38ed5a..a0b300bed43 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.fir.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package b fun foo(map: Map) : R = throw Exception() diff --git a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.kt b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.kt index ab24263880b..3bd91b697a5 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package b fun foo(map: Map) : R = throw Exception() diff --git a/compiler/testData/diagnostics/tests/incompleteCode/plusOnTheRight.fir.kt b/compiler/testData/diagnostics/tests/incompleteCode/plusOnTheRight.fir.kt index 7022fa3623b..bd1c7ef0fa7 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/plusOnTheRight.fir.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/plusOnTheRight.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //EA-35646 package a diff --git a/compiler/testData/diagnostics/tests/incompleteCode/plusOnTheRight.kt b/compiler/testData/diagnostics/tests/incompleteCode/plusOnTheRight.kt index 105c52570db..ca4a8354714 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/plusOnTheRight.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/plusOnTheRight.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //EA-35646 package a diff --git a/compiler/testData/diagnostics/tests/incompleteCode/unresolvedArguments.fir.kt b/compiler/testData/diagnostics/tests/incompleteCode/unresolvedArguments.fir.kt index cf5b76944a2..408101f0126 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/unresolvedArguments.fir.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/unresolvedArguments.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //!DIAGNOSTICS: -UNUSED_PARAMETER fun foo(i: Int, t: T) {} diff --git a/compiler/testData/diagnostics/tests/incompleteCode/unresolvedArguments.kt b/compiler/testData/diagnostics/tests/incompleteCode/unresolvedArguments.kt index 4a75d5f5fd9..d0ce762d0c9 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/unresolvedArguments.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/unresolvedArguments.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //!DIAGNOSTICS: -UNUSED_PARAMETER fun foo(i: Int, t: T) {} diff --git a/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.fir.kt b/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.fir.kt index 90f47681aa7..0f70a950cb1 100644 --- a/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun fooT22() : T? { return null } diff --git a/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt b/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt index 37e7f6ca7d1..8a51ba2f890 100644 --- a/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt +++ b/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun fooT22() : T? { return null } diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.fir.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.fir.kt index 0192043f3bc..1ee62f30377 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package f fun g(i: Int, a: Any): List {throw Exception()} diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt index cac79451b19..86daf144206 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package f fun g(i: Int, a: Any): List {throw Exception()} diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.fir.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.fir.kt index 98ffbb92738..c90d9f55e36 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package f fun h(i: Int, a: Any, r: R, f: (Boolean) -> Int) = 1 diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.kt index 24ff15ec54c..c8eff93154e 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package f fun h(i: Int, a: Any, r: R, f: (Boolean) -> Int) = 1 diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.fir.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.fir.kt index 68ddfaa283f..c2116e2279b 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package f fun f(i: Int, c: Collection): List {throw Exception()} diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt index e4bb38a8de6..8a3f2b008e5 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package f fun f(i: Int, c: Collection): List {throw Exception()} diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.fir.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.fir.kt index 3db6dd11b4a..4d3a16f128c 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -CONFLICTING_JVM_DECLARATIONS package f diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt index 50c932000f4..69db5cc44ef 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -CONFLICTING_JVM_DECLARATIONS package f diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/cannotCaptureInProjection.fir.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/cannotCaptureInProjection.fir.kt index 02a88a1740b..38bc9d7d371 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/cannotCaptureInProjection.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/cannotCaptureInProjection.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER // !CHECK_TYPE diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/cannotCaptureInProjection.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/cannotCaptureInProjection.kt index 50b478363d3..5a81b61c0c8 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/cannotCaptureInProjection.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/cannotCaptureInProjection.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER // !CHECK_TYPE diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureForNullableTypes.fir.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureForNullableTypes.fir.kt index 42533c3bfae..55b14ab75f1 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureForNullableTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureForNullableTypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER // !CHECK_TYPE diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureForNullableTypes.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureForNullableTypes.kt index 775986e5020..fbb90ff3508 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureForNullableTypes.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureForNullableTypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER // !CHECK_TYPE diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromNullableTypeVariable.fir.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromNullableTypeVariable.fir.kt index 74680a72759..ee1d61cf97f 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromNullableTypeVariable.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromNullableTypeVariable.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE fun Array.filterNotNull(): List = throw Exception() diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromNullableTypeVariable.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromNullableTypeVariable.kt index 1ea84475a5f..6ec7122de23 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromNullableTypeVariable.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromNullableTypeVariable.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE fun Array.filterNotNull(): List = throw Exception() diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.fir.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.fir.kt index af760e4fdc5..1f98eb469e8 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE fun foo(array: Array>): Array> = array diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.kt index d20e3d6a4ee..5fbbf48caf5 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE fun foo(array: Array>): Array> = array diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.fir.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.fir.kt index c2baf7b9e51..adc3342dd76 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER fun foo(a1: Array, a2: Array): T = null!! diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.kt index c014b688f9f..8473202cc19 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER fun foo(a1: Array, a2: Array): T = null!! diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/kt2872.fir.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/kt2872.fir.kt index 2977fc13931..2840939446f 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/kt2872.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/kt2872.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun Array.foo() {} fun test(array: Array) { diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/kt2872.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/kt2872.kt index 562c08ffc59..d8264cd424e 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/kt2872.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/kt2872.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun Array.foo() {} fun test(array: Array) { diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.fir.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.fir.kt index ab9488a78f9..0ef682bcd9c 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A class B diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.kt index b0762e26070..ac9360ccf02 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A class B diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.fir.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.fir.kt index a06dcfc4b07..5fa78bd038f 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun materialize(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.kt index 9a8d205c222..90b08eebfd3 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun materialize(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.fir.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.fir.kt index 3044cee818f..35a50575020 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun materializeNumber(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.kt index 1092e4d8ec9..82af478d09f 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun materializeNumber(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.fir.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.fir.kt index 400b2680b95..c6002ee7223 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun materialize(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.kt index 541535ac2d9..2984d99ac31 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun materialize(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.fir.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.fir.kt index 9b18874a312..af8675eefe4 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE fun takeFnToAny(fn: () -> Any) {} fun takeFnToUnit(fn: () -> Unit) {} diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.kt index cbf72205d7a..956de346b32 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE fun takeFnToAny(fn: () -> Any) {} fun takeFnToUnit(fn: () -> Unit) {} diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.fir.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.fir.kt index db9d05d735c..ddff40abc7a 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun materialize(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.kt index e5f58302acb..c56c02b7460 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun materialize(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/kt30242.fir.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/kt30242.fir.kt index 3355d127606..7919750eacd 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/kt30242.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/kt30242.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // ISSUE: KT-30242 diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/kt30242.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/kt30242.kt index 964666b4ad1..a696d66ea85 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/kt30242.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/kt30242.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // ISSUE: KT-30242 diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/noCoercion.fir.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/noCoercion.fir.kt index 789e35678ba..54160b77ad3 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/noCoercion.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/noCoercion.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE fun noCoercionLastExpressionUsedAsReturnArgument() { diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/noCoercion.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/noCoercion.kt index b59b8cd762c..fee9612655b 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/noCoercion.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/noCoercion.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE fun noCoercionLastExpressionUsedAsReturnArgument() { diff --git a/compiler/testData/diagnostics/tests/inference/commonSystem/kt31969.kt b/compiler/testData/diagnostics/tests/inference/commonSystem/kt31969.kt index 599c9042acf..0a8aedd9780 100644 --- a/compiler/testData/diagnostics/tests/inference/commonSystem/kt31969.kt +++ b/compiler/testData/diagnostics/tests/inference/commonSystem/kt31969.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE open class View diff --git a/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.fir.kt b/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.fir.kt index 87354f76355..62771517349 100644 --- a/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE fun nullable(): T? = null diff --git a/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.kt b/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.kt index eff7f8de893..aa14bc206ff 100644 --- a/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.kt +++ b/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE fun nullable(): T? = null diff --git a/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.fir.kt b/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.fir.kt index c31d96cdb22..9c629901919 100644 --- a/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package d diff --git a/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.kt b/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.kt index 0c250c622dc..cee1a1d7013 100644 --- a/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.kt +++ b/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package d diff --git a/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.fir.kt b/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.fir.kt index 650d75a29c7..7041d68261b 100644 --- a/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package conflictingSubstitutions //+JDK diff --git a/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.kt b/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.kt index f31cff91a4e..6d70dc89f1c 100644 --- a/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.kt +++ b/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package conflictingSubstitutions //+JDK diff --git a/compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.fir.kt b/compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.fir.kt index 8bf396cd3e6..cd3a4b80909 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class Out diff --git a/compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.kt b/compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.kt index 977e6d5af5b..bec3b059a21 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class Out diff --git a/compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.fir.kt b/compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.fir.kt index 6a20e7b74fd..42f8f9b9907 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package c import java.util.ArrayList diff --git a/compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.kt b/compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.kt index 564011e52c2..9003814c25d 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package c import java.util.ArrayList diff --git a/compiler/testData/diagnostics/tests/inference/constraints/ignoreConstraintFromImplicitInNothing.fir.kt b/compiler/testData/diagnostics/tests/inference/constraints/ignoreConstraintFromImplicitInNothing.fir.kt index 62b443f333a..4f39ac4875b 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/ignoreConstraintFromImplicitInNothing.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/ignoreConstraintFromImplicitInNothing.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/inference/constraints/ignoreConstraintFromImplicitInNothing.kt b/compiler/testData/diagnostics/tests/inference/constraints/ignoreConstraintFromImplicitInNothing.kt index 38b0c794753..8adaa83b7eb 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/ignoreConstraintFromImplicitInNothing.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/ignoreConstraintFromImplicitInNothing.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/inference/constraints/kt6320.fir.kt b/compiler/testData/diagnostics/tests/inference/constraints/kt6320.fir.kt index 377a18614be..c000b8edfe8 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/kt6320.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/kt6320.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // AssertionError in ConstraintSystem(The constraint shouldn't contain different type variables on both sides: Y <: X) diff --git a/compiler/testData/diagnostics/tests/inference/constraints/kt6320.kt b/compiler/testData/diagnostics/tests/inference/constraints/kt6320.kt index 5d86d293f12..f2869dc5e6d 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/kt6320.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/kt6320.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // AssertionError in ConstraintSystem(The constraint shouldn't contain different type variables on both sides: Y <: X) diff --git a/compiler/testData/diagnostics/tests/inference/constraints/kt8879.fir.kt b/compiler/testData/diagnostics/tests/inference/constraints/kt8879.fir.kt index 70ef84c6151..0900f850046 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/kt8879.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/kt8879.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER interface Inv diff --git a/compiler/testData/diagnostics/tests/inference/constraints/kt8879.kt b/compiler/testData/diagnostics/tests/inference/constraints/kt8879.kt index e357d1dc8f5..702f91eca82 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/kt8879.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/kt8879.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER interface Inv diff --git a/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.fir.kt b/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.fir.kt index a64feb0db8c..b83edc82577 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // SKIP_JAVAC // FILE: MySettings.java diff --git a/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.kt b/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.kt index c3217126fad..64059a3760c 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // SKIP_JAVAC // FILE: MySettings.java diff --git a/compiler/testData/diagnostics/tests/inference/constraints/notNullConstraintOnNullableType.fir.kt b/compiler/testData/diagnostics/tests/inference/constraints/notNullConstraintOnNullableType.fir.kt index 907ab33178d..1301e4209bb 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/notNullConstraintOnNullableType.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/notNullConstraintOnNullableType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE interface A diff --git a/compiler/testData/diagnostics/tests/inference/constraints/notNullConstraintOnNullableType.kt b/compiler/testData/diagnostics/tests/inference/constraints/notNullConstraintOnNullableType.kt index 7cb0539a24c..730306295d9 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/notNullConstraintOnNullableType.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/notNullConstraintOnNullableType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE interface A diff --git a/compiler/testData/diagnostics/tests/inference/dependantOnVariance.fir.kt b/compiler/testData/diagnostics/tests/inference/dependantOnVariance.fir.kt index 02030065e69..f67ceac3a16 100644 --- a/compiler/testData/diagnostics/tests/inference/dependantOnVariance.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/dependantOnVariance.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a class MyList(t: T) {} diff --git a/compiler/testData/diagnostics/tests/inference/dependantOnVariance.kt b/compiler/testData/diagnostics/tests/inference/dependantOnVariance.kt index a47d0b24324..b45c3bc600d 100644 --- a/compiler/testData/diagnostics/tests/inference/dependantOnVariance.kt +++ b/compiler/testData/diagnostics/tests/inference/dependantOnVariance.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a class MyList(t: T) {} diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.fir.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.fir.kt index a946ec1bcd7..777d65a76d1 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ExpectedTypeFromCast fun foo() = 1 diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.kt index 7debdb39f03..67a862daf57 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ExpectedTypeFromCast fun foo() = 1 diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.fir.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.fir.kt index a0ef0081b76..20377b3b04f 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ExpectedTypeFromCast fun foo(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.kt index d77ed65040f..7aca4352654 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ExpectedTypeFromCast fun foo(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.fir.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.fir.kt index cb72542a16c..feb05b6775b 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ExpectedTypeFromCast fun foo(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.kt index 88e0d3f9ed5..958a9bd62dd 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ExpectedTypeFromCast fun foo(): T = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.fir.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.fir.kt index 0f25ac22342..ecef54717de 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ExpectedTypeFromCast class X { diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.kt index 0c6b97f790f..baa1cdf33c5 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ExpectedTypeFromCast class X { diff --git a/compiler/testData/diagnostics/tests/inference/findViewById.kt b/compiler/testData/diagnostics/tests/inference/findViewById.kt index 620781ae011..cd085d628ed 100644 --- a/compiler/testData/diagnostics/tests/inference/findViewById.kt +++ b/compiler/testData/diagnostics/tests/inference/findViewById.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // !LANGUAGE: +ExpectedTypeFromCast // !DIAGNOSTICS: -UNUSED_VARIABLE -DEBUG_INFO_LEAKING_THIS diff --git a/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.fir.kt b/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.fir.kt index 4b14922b7a1..17dbcf48d09 100644 --- a/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE fun foo(f: (Y) -> Z, g: (X) -> Y, x: X): Z = f(g(x)) diff --git a/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.kt b/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.kt index 1cf0161c059..ba8576f56e0 100644 --- a/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.kt +++ b/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE fun foo(f: (Y) -> Z, g: (X) -> Y, x: X): Z = f(g(x)) diff --git a/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.fir.kt b/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.fir.kt index 998c43024e6..783a432646c 100644 --- a/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package a diff --git a/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.kt b/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.kt index 593c530fff0..35b58a21d1a 100644 --- a/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.kt +++ b/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package a diff --git a/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.fir.kt b/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.fir.kt index 4f080355f6b..1d68322817f 100644 --- a/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.kt b/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.kt index afbb3233dc7..0fae38e8a42 100644 --- a/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.kt +++ b/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/inference/implicitInvokeInCompanionObjectWithFunctionalArgument.fir.kt b/compiler/testData/diagnostics/tests/inference/implicitInvokeInCompanionObjectWithFunctionalArgument.fir.kt index 46da8700d06..d734cf6654d 100644 --- a/compiler/testData/diagnostics/tests/inference/implicitInvokeInCompanionObjectWithFunctionalArgument.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/implicitInvokeInCompanionObjectWithFunctionalArgument.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/inference/implicitInvokeInCompanionObjectWithFunctionalArgument.kt b/compiler/testData/diagnostics/tests/inference/implicitInvokeInCompanionObjectWithFunctionalArgument.kt index 5a490697679..9ce49029db2 100644 --- a/compiler/testData/diagnostics/tests/inference/implicitInvokeInCompanionObjectWithFunctionalArgument.kt +++ b/compiler/testData/diagnostics/tests/inference/implicitInvokeInCompanionObjectWithFunctionalArgument.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/inference/implicitInvokeInObjectWithFunctionalArgument.fir.kt b/compiler/testData/diagnostics/tests/inference/implicitInvokeInObjectWithFunctionalArgument.fir.kt index cd227b70b35..8ae0d5151f1 100644 --- a/compiler/testData/diagnostics/tests/inference/implicitInvokeInObjectWithFunctionalArgument.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/implicitInvokeInObjectWithFunctionalArgument.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/inference/implicitInvokeInObjectWithFunctionalArgument.kt b/compiler/testData/diagnostics/tests/inference/implicitInvokeInObjectWithFunctionalArgument.kt index f34d2b764c4..bb85a8fa1bd 100644 --- a/compiler/testData/diagnostics/tests/inference/implicitInvokeInObjectWithFunctionalArgument.kt +++ b/compiler/testData/diagnostics/tests/inference/implicitInvokeInObjectWithFunctionalArgument.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/inference/implicitInvokeWithFunctionLiteralArgument.fir.kt b/compiler/testData/diagnostics/tests/inference/implicitInvokeWithFunctionLiteralArgument.fir.kt index 7975f090869..aa4bb150410 100644 --- a/compiler/testData/diagnostics/tests/inference/implicitInvokeWithFunctionLiteralArgument.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/implicitInvokeWithFunctionLiteralArgument.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/inference/implicitInvokeWithFunctionLiteralArgument.kt b/compiler/testData/diagnostics/tests/inference/implicitInvokeWithFunctionLiteralArgument.kt index 4543d049289..ecd2ad7d1f1 100644 --- a/compiler/testData/diagnostics/tests/inference/implicitInvokeWithFunctionLiteralArgument.kt +++ b/compiler/testData/diagnostics/tests/inference/implicitInvokeWithFunctionLiteralArgument.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/inference/kt1293.fir.kt b/compiler/testData/diagnostics/tests/inference/kt1293.fir.kt index eee3c01b0b8..d159302cbac 100644 --- a/compiler/testData/diagnostics/tests/inference/kt1293.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/kt1293.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-1293 Compiler doesn't show error when element of Array is assigned to Int package kt1293 diff --git a/compiler/testData/diagnostics/tests/inference/kt1293.kt b/compiler/testData/diagnostics/tests/inference/kt1293.kt index 87d031e800d..1b61e63d9ee 100644 --- a/compiler/testData/diagnostics/tests/inference/kt1293.kt +++ b/compiler/testData/diagnostics/tests/inference/kt1293.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-1293 Compiler doesn't show error when element of Array is assigned to Int package kt1293 diff --git a/compiler/testData/diagnostics/tests/inference/kt28598.fir.kt b/compiler/testData/diagnostics/tests/inference/kt28598.fir.kt index f58ab2ccf1d..cf57637b45f 100644 --- a/compiler/testData/diagnostics/tests/inference/kt28598.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/kt28598.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !IDIAGNOSTICS: -UNUSED_EXPRESSION fun case_1(a: MutableList?>?>?>?>?>?>?) { diff --git a/compiler/testData/diagnostics/tests/inference/kt28598.kt b/compiler/testData/diagnostics/tests/inference/kt28598.kt index 4e6ed61c7b9..083d76ebd6a 100644 --- a/compiler/testData/diagnostics/tests/inference/kt28598.kt +++ b/compiler/testData/diagnostics/tests/inference/kt28598.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !IDIAGNOSTICS: -UNUSED_EXPRESSION fun case_1(a: MutableList?>?>?>?>?>?>?) { diff --git a/compiler/testData/diagnostics/tests/inference/kt28654.fir.kt b/compiler/testData/diagnostics/tests/inference/kt28654.fir.kt index 246c86b318c..5fedeedb88e 100644 --- a/compiler/testData/diagnostics/tests/inference/kt28654.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/kt28654.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // Related issue: KT-28654 diff --git a/compiler/testData/diagnostics/tests/inference/kt28654.kt b/compiler/testData/diagnostics/tests/inference/kt28654.kt index 87aa044e490..d3dcbde3d44 100644 --- a/compiler/testData/diagnostics/tests/inference/kt28654.kt +++ b/compiler/testData/diagnostics/tests/inference/kt28654.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // Related issue: KT-28654 diff --git a/compiler/testData/diagnostics/tests/inference/kt30405.kt b/compiler/testData/diagnostics/tests/inference/kt30405.kt index eeb542cd06c..a122c529868 100644 --- a/compiler/testData/diagnostics/tests/inference/kt30405.kt +++ b/compiler/testData/diagnostics/tests/inference/kt30405.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // !LANGUAGE: +ExpectedTypeFromCast // !CHECK_TYPE // Issue: KT-30405 diff --git a/compiler/testData/diagnostics/tests/inference/kt32434.kt b/compiler/testData/diagnostics/tests/inference/kt32434.kt index 1dbb488c980..420306b2623 100644 --- a/compiler/testData/diagnostics/tests/inference/kt32434.kt +++ b/compiler/testData/diagnostics/tests/inference/kt32434.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // FULL_JDK -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // Issue: KT-32434 diff --git a/compiler/testData/diagnostics/tests/inference/kt35702.kt b/compiler/testData/diagnostics/tests/inference/kt35702.kt index 3298921cbed..5615830e9ef 100644 --- a/compiler/testData/diagnostics/tests/inference/kt35702.kt +++ b/compiler/testData/diagnostics/tests/inference/kt35702.kt @@ -1,7 +1,6 @@ // FIR_IDENTICAL // !LANGUAGE: +NewInference // !DIAGNOSTICS: -UNCHECKED_CAST -UNUSED_VARIABLE -UNUSED_ANONYMOUS_PARAMETER -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // ISSUE: KT-35702 interface A diff --git a/compiler/testData/diagnostics/tests/inference/kt6175.fir.kt b/compiler/testData/diagnostics/tests/inference/kt6175.fir.kt index ed4b4a4b090..5c070a721cc 100644 --- a/compiler/testData/diagnostics/tests/inference/kt6175.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/kt6175.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER fun foo(body: (R?) -> T): T = fail() diff --git a/compiler/testData/diagnostics/tests/inference/kt6175.kt b/compiler/testData/diagnostics/tests/inference/kt6175.kt index 18728dd16ab..5f359b9039f 100644 --- a/compiler/testData/diagnostics/tests/inference/kt6175.kt +++ b/compiler/testData/diagnostics/tests/inference/kt6175.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER fun foo(body: (R?) -> T): T = fail() diff --git a/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.fir.kt b/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.fir.kt index 266b32d2ef6..f3288b9f04d 100644 --- a/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package h interface A {} diff --git a/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.kt b/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.kt index 0cc066b7744..59f2fc047b4 100644 --- a/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.kt +++ b/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package h interface A {} diff --git a/compiler/testData/diagnostics/tests/inference/noInformationForParameter.fir.kt b/compiler/testData/diagnostics/tests/inference/noInformationForParameter.fir.kt index 293293ec857..56a1b03283d 100644 --- a/compiler/testData/diagnostics/tests/inference/noInformationForParameter.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/noInformationForParameter.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package noInformationForParameter //+JDK diff --git a/compiler/testData/diagnostics/tests/inference/noInformationForParameter.kt b/compiler/testData/diagnostics/tests/inference/noInformationForParameter.kt index f171350c8e0..27256dbee90 100644 --- a/compiler/testData/diagnostics/tests/inference/noInformationForParameter.kt +++ b/compiler/testData/diagnostics/tests/inference/noInformationForParameter.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package noInformationForParameter //+JDK diff --git a/compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.fir.kt b/compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.fir.kt index befb058613f..27b21b764ca 100644 --- a/compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun callAny(arg: Any?) {} diff --git a/compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.kt b/compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.kt index c7f7b8a2b66..5f1095c2065 100644 --- a/compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.kt +++ b/compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun callAny(arg: Any?) {} diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/kt32388.fir.kt b/compiler/testData/diagnostics/tests/inference/nothingType/kt32388.fir.kt index 87f82df7b07..e04bf0a4feb 100644 --- a/compiler/testData/diagnostics/tests/inference/nothingType/kt32388.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/nothingType/kt32388.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun Either.recover(f: (A) -> B): Either = when (this) { is Either.Left -> f(this.a).right() diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/kt32388.kt b/compiler/testData/diagnostics/tests/inference/nothingType/kt32388.kt index e3fb2e1bd72..7ff84193289 100644 --- a/compiler/testData/diagnostics/tests/inference/nothingType/kt32388.kt +++ b/compiler/testData/diagnostics/tests/inference/nothingType/kt32388.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun Either.recover(f: (A) -> B): Either = when (this) { is Either.Left -> f(this.a).right() diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/kt34335.fir.kt b/compiler/testData/diagnostics/tests/inference/nothingType/kt34335.fir.kt index 21e5905dac8..6906a043c27 100644 --- a/compiler/testData/diagnostics/tests/inference/nothingType/kt34335.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/nothingType/kt34335.fir.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +NewInference -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun call(vararg x: Any?) {} diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/kt34335.kt b/compiler/testData/diagnostics/tests/inference/nothingType/kt34335.kt index d4cd160d60e..82d4917eb75 100644 --- a/compiler/testData/diagnostics/tests/inference/nothingType/kt34335.kt +++ b/compiler/testData/diagnostics/tests/inference/nothingType/kt34335.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +NewInference -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun call(vararg x: Any?) {} diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.fir.kt b/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.fir.kt index 419db4e3e21..d4537af5218 100644 --- a/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE fun select2(x: K, y: K): K = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt b/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt index 89ae085cc5f..2c734b6ea6e 100644 --- a/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt +++ b/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE fun select2(x: K, y: K): K = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/notEnoughInformationFromNullabilityConstraint.fir.kt b/compiler/testData/diagnostics/tests/inference/nothingType/notEnoughInformationFromNullabilityConstraint.fir.kt index deb087ffcfd..6b0f2ae6009 100644 --- a/compiler/testData/diagnostics/tests/inference/nothingType/notEnoughInformationFromNullabilityConstraint.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/nothingType/notEnoughInformationFromNullabilityConstraint.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun make(): M? = null diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/notEnoughInformationFromNullabilityConstraint.kt b/compiler/testData/diagnostics/tests/inference/nothingType/notEnoughInformationFromNullabilityConstraint.kt index ceeccea1614..b6590aa510e 100644 --- a/compiler/testData/diagnostics/tests/inference/nothingType/notEnoughInformationFromNullabilityConstraint.kt +++ b/compiler/testData/diagnostics/tests/inference/nothingType/notEnoughInformationFromNullabilityConstraint.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun make(): M? = null diff --git a/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.fir.kt b/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.fir.kt index f8302f0d9b8..f98ff2c781a 100644 --- a/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a import java.util.* diff --git a/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt b/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt index 0bb672e22d9..1380320c6df 100644 --- a/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt +++ b/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a import java.util.* diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.fir.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.fir.kt index ee27bff3f91..f38d9cfd30b 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE interface First { diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.kt index 9c65de5ded1..fa18f6f31af 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE interface First { diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.fir.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.fir.kt index 65380c4fab8..b18392afa36 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE interface Base { diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.kt index bd23b67db6e..2ce11620656 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE interface Base { diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.fir.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.fir.kt index 6e0f6a00d4b..d0bc3b701a7 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE interface Base { diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.kt index 21b2d66a2b5..d0a9c08ebef 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE interface Base { diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.fir.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.fir.kt index f67d9d8df08..ec9ec9090d1 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE interface Base { diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.kt index fb48437117c..80f4c89adb3 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE interface Base { diff --git a/compiler/testData/diagnostics/tests/inference/recursiveCalls/kt23531.fir.kt b/compiler/testData/diagnostics/tests/inference/recursiveCalls/kt23531.fir.kt index 898993914ad..cce62531e2a 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveCalls/kt23531.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveCalls/kt23531.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE class Scope diff --git a/compiler/testData/diagnostics/tests/inference/recursiveCalls/kt23531.kt b/compiler/testData/diagnostics/tests/inference/recursiveCalls/kt23531.kt index 68eeafcea57..02b0b011eaa 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveCalls/kt23531.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveCalls/kt23531.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE class Scope diff --git a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/localFactorial.fir.kt b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/localFactorial.fir.kt index 3cc459f591a..8f1200ca411 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/localFactorial.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/localFactorial.fir.kt @@ -1,5 +1,4 @@ // FIR_IDE_IGNORE -// !WITH_NEW_INFERENCE // See KT-6271 fun foo() { fun fact(n: Int) = { diff --git a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/localFactorial.kt b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/localFactorial.kt index c644c0971a8..a198c606e42 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/localFactorial.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/localFactorial.kt @@ -1,5 +1,4 @@ // FIR_IDE_IGNORE -// !WITH_NEW_INFERENCE // See KT-6271 fun foo() { fun fact(n: Int) = { diff --git a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveFun.fir.kt b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveFun.fir.kt index cc019054899..831c654f61d 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveFun.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveFun.fir.kt @@ -1,5 +1,4 @@ // FIR_IDE_IGNORE -// !WITH_NEW_INFERENCE fun foo() { fun bar() = (fun() = bar()) } diff --git a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveFun.kt b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveFun.kt index f122176d638..956c1e7ffaf 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveFun.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveFun.kt @@ -1,5 +1,4 @@ // FIR_IDE_IGNORE -// !WITH_NEW_INFERENCE fun foo() { fun bar() = (fun() = bar()) } diff --git a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveLambda.fir.kt b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveLambda.fir.kt index 7d557b5e535..3f2ccb269a3 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveLambda.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveLambda.fir.kt @@ -1,5 +1,4 @@ // FIR_IDE_IGNORE -// !WITH_NEW_INFERENCE fun foo() { fun bar() = { bar() diff --git a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveLambda.kt b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveLambda.kt index 56545bcc2df..af8ad14babc 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveLambda.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/recursiveLambda.kt @@ -1,5 +1,4 @@ // FIR_IDE_IGNORE -// !WITH_NEW_INFERENCE fun foo() { fun bar() = { bar() diff --git a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.fir.kt b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.fir.kt index 75149b12bb9..31e9ab5759b 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.fir.kt @@ -1,5 +1,4 @@ // FIR_IDE_IGNORE -// !WITH_NEW_INFERENCE fun foo() { fun bar1() = bar1() diff --git a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt index 2dad1767344..c571f49e90b 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt @@ -1,5 +1,4 @@ // FIR_IDE_IGNORE -// !WITH_NEW_INFERENCE fun foo() { fun bar1() = bar1() diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt1127.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt1127.fir.kt index 7826a33bb55..96b6369f20a 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt1127.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt1127.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-1127 Wrong type computed for Arrays.asList() package d diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt1127.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt1127.kt index 3b72b90e71a..0b1dd4fb676 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt1127.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt1127.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-1127 Wrong type computed for Arrays.asList() package d diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2200.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2200.fir.kt index ba6eafc3e00..9ec2e2eb8a8 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2200.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2200.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE //KT-2200 array(array()) breaks compiler diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2200.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2200.kt index ef64b163801..9667f42ae6e 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2200.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2200.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE //KT-2200 array(array()) breaks compiler diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2283.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2283.fir.kt index 227671a13fc..6f4ea329c99 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2283.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2283.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-2283 Bad diagnostics of failed type inference package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2283.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2283.kt index 661f4fe7f84..6fdebb43d85 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2283.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2283.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-2283 Bad diagnostics of failed type inference package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2286.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2286.fir.kt index 5fd5029ee29..d705c1b79e8 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2286.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2286.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-2286 Improve error message for nullability check failure for extension methods package n diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2286.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2286.kt index b6d6c0ec4e3..64f34a67432 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2286.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2286.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-2286 Improve error message for nullability check failure for extension methods package n diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2445.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2445.fir.kt index 96938cad1ec..9c9d03f21b0 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2445.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2445.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNREACHABLE_CODE //KT-2445 Calling method with function with generic parameter causes compile-time exception package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt index 45cbc5ce470..12e244db875 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNREACHABLE_CODE //KT-2445 Calling method with function with generic parameter causes compile-time exception package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2741.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2741.fir.kt index cef3337b9fa..c1b96c11e6b 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2741.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2741.fir.kt @@ -1,5 +1,4 @@ //KT-2741 Compiler can't infer a type of a function literal parameter when its body contains errors -// !WITH_NEW_INFERENCE package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2741.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2741.kt index d534930ec52..389ea4200be 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2741.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2741.kt @@ -1,5 +1,4 @@ //KT-2741 Compiler can't infer a type of a function literal parameter when its body contains errors -// !WITH_NEW_INFERENCE package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2838.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2838.fir.kt index 7430a30235d..88f5b5daf04 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2838.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2838.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNREACHABLE_CODE //KT-2838 Type inference failed on passing null as a nullable argument package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2838.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2838.kt index 30528f3fab6..495577d6210 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2838.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2838.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNREACHABLE_CODE //KT-2838 Type inference failed on passing null as a nullable argument package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2841.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2841.fir.kt index 34b6397ef08..fdc075d5f4d 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2841.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2841.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2841.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2841.kt index 8fe0c9ffc98..696c4baf97a 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2841.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2841.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it.fir.kt index 076d8c24bad..11e02319aa8 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it.kt index 37ba71be17f..5bf8d23f720 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it_this.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it_this.fir.kt index a42aefcaadf..71b58d2df18 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it_this.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it_this.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it_this.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it_this.kt index c223113c487..d9456233fc7 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it_this.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2841_it_this.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2841_this.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2841_this.fir.kt index e856e2b1b25..d316ef728b8 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2841_this.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2841_this.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2841_this.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2841_this.kt index 8e5e6c574d6..872d1bd28e0 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2841_this.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2841_this.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2883.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2883.fir.kt index 879d4b84eed..39828a9f952 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2883.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2883.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-2883 Type inference fails due to non-Unit value returned package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2883.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2883.kt index 95efc0688bb..0c612239ea4 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2883.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2883.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-2883 Type inference fails due to non-Unit value returned package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt32862_both.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt32862_both.fir.kt index 452faa4aede..202b9502fb0 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt32862_both.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt32862_both.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE interface G { fun build(): G diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt32862_both.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt32862_both.kt index 35470d64a5c..395a604413b 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt32862_both.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt32862_both.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE interface G { fun build(): G diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt32862_none.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt32862_none.fir.kt index 9f6b4b06592..f1f3d017190 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt32862_none.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt32862_none.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE fun foo(s: String) {} fun foo(i: Long) {} diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt32862_none.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt32862_none.kt index 2e4ae2b6767..af1d8278f15 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt32862_none.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt32862_none.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE fun foo(s: String) {} fun foo(i: Long) {} diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt33629.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt33629.fir.kt index fd4634bfece..9eeda35ce50 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt33629.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt33629.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun emptyList(): List = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt33629.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt33629.kt index 44f0512eb4f..759bb1f9a02 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt33629.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt33629.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun emptyList(): List = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt36342.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt36342.fir.kt index a86f711f102..4dda2caa7d2 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt36342.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt36342.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import java.lang.Exception diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt36342.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt36342.kt index c5ac3622711..0a0b62c7b96 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt36342.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt36342.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import java.lang.Exception diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt36342_2.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt36342_2.fir.kt index 9624c28f2a1..f905fc93d25 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt36342_2.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt36342_2.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun id(arg: K): K = arg fun materialize(): M = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt36342_2.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt36342_2.kt index 46346cda080..b384ff74f6c 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt36342_2.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt36342_2.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun id(arg: K): K = arg fun materialize(): M = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt731.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt731.fir.kt index eb259524968..e756bdc8b13 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt731.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt731.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE //KT-731 Missing error from type inference diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt731.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt731.kt index c4e1d0d98e5..f1b25d7420a 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt731.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt731.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE //KT-731 Missing error from type inference diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt742.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt742.fir.kt index 15e81b3b1f5..283620aedcc 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt742.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt742.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-742 Stack overflow in type inference package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt742.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt742.kt index f1d0df486da..f2b4c58dc17 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt742.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt742.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-742 Stack overflow in type inference package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt832.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt832.fir.kt index 892754ed03c..51fd6ed2833 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt832.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt832.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-832 Provide better diagnostics when type inference fails for an expression that returns a function package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt832.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt832.kt index 4e7c917d2fb..38fb0c5550d 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt832.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt832.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-832 Provide better diagnostics when type inference fails for an expression that returns a function package a diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt948.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt948.fir.kt index 4b8a09505af..c264ff4bf26 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt948.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt948.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE //KT-948 Make type inference work with sure()/!! diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt948.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt948.kt index 908c4b90065..2e9d2edba77 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt948.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt948.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE //KT-948 Make type inference work with sure()/!! diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.fir.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.fir.kt index 3bed3f2a2d8..bcd8fb2c80a 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //For testing error messages text see DiagnosticMessageTest.testFunctionPlaceholder package a diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt index 666c2bf038b..ddb429392ef 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //For testing error messages text see DiagnosticMessageTest.testFunctionPlaceholder package a diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.fir.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.fir.kt index 995f30938ea..22d96ff0c70 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.kt index 324921801de..e5898ffe2ab 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.fir.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.fir.kt index 80e64e539ee..f1d7133a179 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package aa fun foo(block: (T)-> R) = block diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.kt index 38b58fa387f..3272c3704a3 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package aa fun foo(block: (T)-> R) = block diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/inferTypeFromUnresolvedArgument.fir.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/inferTypeFromUnresolvedArgument.fir.kt index c7be5251afd..d48ecba5b77 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/inferTypeFromUnresolvedArgument.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/inferTypeFromUnresolvedArgument.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun id2(x: K, s: String): K = x diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/inferTypeFromUnresolvedArgument.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/inferTypeFromUnresolvedArgument.kt index 95f2d3a8dc8..fd0ece028c8 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/inferTypeFromUnresolvedArgument.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/inferTypeFromUnresolvedArgument.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun id2(x: K, s: String): K = x diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.fir.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.fir.kt index 36b993c41cd..c3d614ed0ca 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a fun foo (f: ()->R, r: MutableList) = r.add(f()) diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.kt index 7108a6b6381..fca19ac0b3f 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a fun foo (f: ()->R, r: MutableList) = r.add(f()) diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.fir.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.fir.kt index a3deb300a16..42136d6dd2b 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE class X diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.kt index 44d9ec08cd5..01c63bbcf7e 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE class X diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.fir.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.fir.kt index 5093ee66f47..95a68b2dc1e 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class X operator fun X.iterator(): Iterable = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.kt index 1e6454a861b..ea73d04b5ae 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class X operator fun X.iterator(): Iterable = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/wrongArgumentPassedToLocalExtensionFunction.fir.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/wrongArgumentPassedToLocalExtensionFunction.fir.kt index 216e5d1a791..93d4e5d9140 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/wrongArgumentPassedToLocalExtensionFunction.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/wrongArgumentPassedToLocalExtensionFunction.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // WITH_RUNTIME fun Runnable.test(f: Runnable.(Int) -> Unit) { diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/wrongArgumentPassedToLocalExtensionFunction.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/wrongArgumentPassedToLocalExtensionFunction.kt index b46e39f8f5b..b38f78d7d05 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/wrongArgumentPassedToLocalExtensionFunction.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/wrongArgumentPassedToLocalExtensionFunction.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // WITH_RUNTIME fun Runnable.test(f: Runnable.(Int) -> Unit) { diff --git a/compiler/testData/diagnostics/tests/inference/typeConstructorMismatch.fir.kt b/compiler/testData/diagnostics/tests/inference/typeConstructorMismatch.fir.kt index f56ada63152..4a884cc375a 100644 --- a/compiler/testData/diagnostics/tests/inference/typeConstructorMismatch.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/typeConstructorMismatch.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package typeConstructorMismatch //+JDK diff --git a/compiler/testData/diagnostics/tests/inference/typeConstructorMismatch.kt b/compiler/testData/diagnostics/tests/inference/typeConstructorMismatch.kt index 530718d7a48..5e342cc3707 100644 --- a/compiler/testData/diagnostics/tests/inference/typeConstructorMismatch.kt +++ b/compiler/testData/diagnostics/tests/inference/typeConstructorMismatch.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package typeConstructorMismatch //+JDK diff --git a/compiler/testData/diagnostics/tests/inference/typeInferenceExpectedTypeMismatch.fir.kt b/compiler/testData/diagnostics/tests/inference/typeInferenceExpectedTypeMismatch.fir.kt index 2c64137eb71..ca87b90384e 100644 --- a/compiler/testData/diagnostics/tests/inference/typeInferenceExpectedTypeMismatch.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/typeInferenceExpectedTypeMismatch.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package typeInferenceExpectedTypeMismatch import java.util.* diff --git a/compiler/testData/diagnostics/tests/inference/typeInferenceExpectedTypeMismatch.kt b/compiler/testData/diagnostics/tests/inference/typeInferenceExpectedTypeMismatch.kt index 4a9573ce1aa..631ba119c38 100644 --- a/compiler/testData/diagnostics/tests/inference/typeInferenceExpectedTypeMismatch.kt +++ b/compiler/testData/diagnostics/tests/inference/typeInferenceExpectedTypeMismatch.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package typeInferenceExpectedTypeMismatch import java.util.* diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.fir.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.fir.kt index e9d910c26bf..f1293c38a1c 100644 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a interface A diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt index b0de8d3f355..31dfbeb5d86 100644 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt +++ b/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a interface A diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.fir.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.fir.kt index 133d2feda13..2307f85ecdd 100644 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package s diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.kt index 1eb55cc189a..3b489f54847 100644 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.kt +++ b/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package s diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsIfUnknownParameters.fir.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsIfUnknownParameters.fir.kt index c442f006335..ad98b3e03d2 100644 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsIfUnknownParameters.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsIfUnknownParameters.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package Hello open class Base diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsIfUnknownParameters.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsIfUnknownParameters.kt index 00b070ffaa4..df8715776e8 100644 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsIfUnknownParameters.kt +++ b/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsIfUnknownParameters.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package Hello open class Base diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsToInferTypeParamsSimple.fir.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsToInferTypeParamsSimple.fir.kt index 675483b1ffe..86b194be127 100644 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsToInferTypeParamsSimple.fir.kt +++ b/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsToInferTypeParamsSimple.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a fun foo(v: V, u: U) = u diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsToInferTypeParamsSimple.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsToInferTypeParamsSimple.kt index ceb29636360..fc9857f5a39 100644 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsToInferTypeParamsSimple.kt +++ b/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsToInferTypeParamsSimple.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a fun foo(v: V, u: U) = u diff --git a/compiler/testData/diagnostics/tests/infos/SmartCasts.fir.kt b/compiler/testData/diagnostics/tests/infos/SmartCasts.fir.kt index d5655efe5c9..8f335bd058b 100644 --- a/compiler/testData/diagnostics/tests/infos/SmartCasts.fir.kt +++ b/compiler/testData/diagnostics/tests/infos/SmartCasts.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE open class A() { fun foo() {} } diff --git a/compiler/testData/diagnostics/tests/infos/SmartCasts.kt b/compiler/testData/diagnostics/tests/infos/SmartCasts.kt index fbd3aea3ae8..95b6e033051 100644 --- a/compiler/testData/diagnostics/tests/infos/SmartCasts.kt +++ b/compiler/testData/diagnostics/tests/infos/SmartCasts.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE open class A() { fun foo() {} } diff --git a/compiler/testData/diagnostics/tests/inline/inlineLambdaInDefaultInlineParameterDisabled.fir.kt b/compiler/testData/diagnostics/tests/inline/inlineLambdaInDefaultInlineParameterDisabled.fir.kt index 8a831f8e5c4..dc882c9e78b 100644 --- a/compiler/testData/diagnostics/tests/inline/inlineLambdaInDefaultInlineParameterDisabled.fir.kt +++ b/compiler/testData/diagnostics/tests/inline/inlineLambdaInDefaultInlineParameterDisabled.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NOTHING_TO_INLINE // !LANGUAGE: -InlineDefaultFunctionalParameters diff --git a/compiler/testData/diagnostics/tests/inline/inlineLambdaInDefaultInlineParameterDisabled.kt b/compiler/testData/diagnostics/tests/inline/inlineLambdaInDefaultInlineParameterDisabled.kt index ef3dae6f475..78937d8386c 100644 --- a/compiler/testData/diagnostics/tests/inline/inlineLambdaInDefaultInlineParameterDisabled.kt +++ b/compiler/testData/diagnostics/tests/inline/inlineLambdaInDefaultInlineParameterDisabled.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NOTHING_TO_INLINE // !LANGUAGE: -InlineDefaultFunctionalParameters diff --git a/compiler/testData/diagnostics/tests/inline/kt15410.fir.kt b/compiler/testData/diagnostics/tests/inline/kt15410.fir.kt index b4899954c86..e455a47e3be 100644 --- a/compiler/testData/diagnostics/tests/inline/kt15410.fir.kt +++ b/compiler/testData/diagnostics/tests/inline/kt15410.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER open class Foo protected constructor() diff --git a/compiler/testData/diagnostics/tests/inline/kt15410.kt b/compiler/testData/diagnostics/tests/inline/kt15410.kt index 6bca72641f5..cb4a847079a 100644 --- a/compiler/testData/diagnostics/tests/inline/kt15410.kt +++ b/compiler/testData/diagnostics/tests/inline/kt15410.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER open class Foo protected constructor() diff --git a/compiler/testData/diagnostics/tests/inline/nonLocalReturns/lambdaAsGeneric.fir.kt b/compiler/testData/diagnostics/tests/inline/nonLocalReturns/lambdaAsGeneric.fir.kt index c41c4bee41e..b716fc00100 100644 --- a/compiler/testData/diagnostics/tests/inline/nonLocalReturns/lambdaAsGeneric.fir.kt +++ b/compiler/testData/diagnostics/tests/inline/nonLocalReturns/lambdaAsGeneric.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun box() : String { test { diff --git a/compiler/testData/diagnostics/tests/inline/nonLocalReturns/lambdaAsGeneric.kt b/compiler/testData/diagnostics/tests/inline/nonLocalReturns/lambdaAsGeneric.kt index 80dd51c42ad..35593279205 100644 --- a/compiler/testData/diagnostics/tests/inline/nonLocalReturns/lambdaAsGeneric.kt +++ b/compiler/testData/diagnostics/tests/inline/nonLocalReturns/lambdaAsGeneric.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun box() : String { test { diff --git a/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.fir.kt b/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.fir.kt index 70d9d0e3c08..83de3deb13a 100644 --- a/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.fir.kt +++ b/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Outer { class Nested diff --git a/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.kt b/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.kt index 884c9fb8584..1f9b03b0354 100644 --- a/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.kt +++ b/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Outer { class Nested diff --git a/compiler/testData/diagnostics/tests/j+k/collectorInference.kt b/compiler/testData/diagnostics/tests/j+k/collectorInference.kt index 4cf347e6fb1..8213cac8912 100644 --- a/compiler/testData/diagnostics/tests/j+k/collectorInference.kt +++ b/compiler/testData/diagnostics/tests/j+k/collectorInference.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // !CHECK_TYPE // SKIP_TXT // FULL_JDK diff --git a/compiler/testData/diagnostics/tests/j+k/flexibleNothing.kt b/compiler/testData/diagnostics/tests/j+k/flexibleNothing.kt index 6e2e7b234a1..772e86487ed 100644 --- a/compiler/testData/diagnostics/tests/j+k/flexibleNothing.kt +++ b/compiler/testData/diagnostics/tests/j+k/flexibleNothing.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // FILE: TestClass.java import org.jetbrains.annotations.Nullable; diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/classTypeParameterInferredFromArgument.fir.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/classTypeParameterInferredFromArgument.fir.kt index 07814a5a1a4..35220c8e3c5 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/classTypeParameterInferredFromArgument.fir.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/classTypeParameterInferredFromArgument.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/classTypeParameterInferredFromArgument.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/classTypeParameterInferredFromArgument.kt index 1a7ee22adb6..9087463f034 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/classTypeParameterInferredFromArgument.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/classTypeParameterInferredFromArgument.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/innerClass.fir.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/innerClass.fir.kt index 1012262d2c3..7e51219511e 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/innerClass.fir.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/innerClass.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: Outer.java diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/innerClass.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/innerClass.kt index 15182060056..8f9c486a20f 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/innerClass.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/innerClass.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: Outer.java diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/noClassTypeParametersInvParameter.fir.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/noClassTypeParametersInvParameter.fir.kt index 0045756feac..e3c016cefd3 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/noClassTypeParametersInvParameter.fir.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/noClassTypeParametersInvParameter.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: A.java public class A { diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/noClassTypeParametersInvParameter.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/noClassTypeParametersInvParameter.kt index 5e3b91186d8..95a10a3920f 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/noClassTypeParametersInvParameter.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/noClassTypeParametersInvParameter.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: A.java public class A { diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.fir.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.fir.kt index eee0e6ef4dd..86affa593ef 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.fir.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: C.java // See KT-10410 diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.kt index cee6eaeff2b..3a68bcaef9e 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: C.java // See KT-10410 diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCall.fir.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCall.fir.kt index 06556bae449..caf94fd0cf9 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCall.fir.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCall.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCall.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCall.kt index 852545278fe..936fd195aaf 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCall.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCall.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.fir.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.fir.kt index 39e676b31ea..56b2b0ef877 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.fir.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.kt index c9235bef874..573a1bfb21d 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructorWithMultipleBounds.fir.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructorWithMultipleBounds.fir.kt index fad33b8fb85..1cde74d7c72 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructorWithMultipleBounds.fir.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructorWithMultipleBounds.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import java.io.Serializable; diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructorWithMultipleBounds.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructorWithMultipleBounds.kt index ec44ac464fe..b35b271babe 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructorWithMultipleBounds.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructorWithMultipleBounds.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import java.io.Serializable; diff --git a/compiler/testData/diagnostics/tests/j+k/sam/enhancedSamConstructor.fir.kt b/compiler/testData/diagnostics/tests/j+k/sam/enhancedSamConstructor.fir.kt index 64cd635b035..cd09789325d 100644 --- a/compiler/testData/diagnostics/tests/j+k/sam/enhancedSamConstructor.fir.kt +++ b/compiler/testData/diagnostics/tests/j+k/sam/enhancedSamConstructor.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/j+k/sam/enhancedSamConstructor.kt b/compiler/testData/diagnostics/tests/j+k/sam/enhancedSamConstructor.kt index ba1e8518705..304f29bfd10 100644 --- a/compiler/testData/diagnostics/tests/j+k/sam/enhancedSamConstructor.kt +++ b/compiler/testData/diagnostics/tests/j+k/sam/enhancedSamConstructor.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/j+k/samByProjectedType/genericInReturnType.fir.kt b/compiler/testData/diagnostics/tests/j+k/samByProjectedType/genericInReturnType.fir.kt index 8c4c5b28435..78a05f02662 100644 --- a/compiler/testData/diagnostics/tests/j+k/samByProjectedType/genericInReturnType.fir.kt +++ b/compiler/testData/diagnostics/tests/j+k/samByProjectedType/genericInReturnType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: EventListener.java public interface EventListener { diff --git a/compiler/testData/diagnostics/tests/j+k/samByProjectedType/genericInReturnType.kt b/compiler/testData/diagnostics/tests/j+k/samByProjectedType/genericInReturnType.kt index 9b13f34945a..89228862837 100644 --- a/compiler/testData/diagnostics/tests/j+k/samByProjectedType/genericInReturnType.kt +++ b/compiler/testData/diagnostics/tests/j+k/samByProjectedType/genericInReturnType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: EventListener.java public interface EventListener { diff --git a/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.fir.kt b/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.fir.kt index 992af681e14..70543008bc0 100644 --- a/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.fir.kt +++ b/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.kt b/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.kt index c4bdfdd1563..c7c0d347ef4 100644 --- a/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.kt +++ b/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/kt13401.fir.kt b/compiler/testData/diagnostics/tests/kt13401.fir.kt index ff746e0535d..f195c6b5397 100644 --- a/compiler/testData/diagnostics/tests/kt13401.fir.kt +++ b/compiler/testData/diagnostics/tests/kt13401.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // See KT-13401: SOE in VarianceChecker diff --git a/compiler/testData/diagnostics/tests/kt13401.kt b/compiler/testData/diagnostics/tests/kt13401.kt index e9ccffb6966..80333d3389c 100644 --- a/compiler/testData/diagnostics/tests/kt13401.kt +++ b/compiler/testData/diagnostics/tests/kt13401.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // See KT-13401: SOE in VarianceChecker diff --git a/compiler/testData/diagnostics/tests/kt310.fir.kt b/compiler/testData/diagnostics/tests/kt310.fir.kt index 9e95191526c..738c832ccec 100644 --- a/compiler/testData/diagnostics/tests/kt310.fir.kt +++ b/compiler/testData/diagnostics/tests/kt310.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun f(c: LongRange): Int { return c.start() diff --git a/compiler/testData/diagnostics/tests/kt310.kt b/compiler/testData/diagnostics/tests/kt310.kt index a1670061adf..a392d2adeea 100644 --- a/compiler/testData/diagnostics/tests/kt310.kt +++ b/compiler/testData/diagnostics/tests/kt310.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun f(c: LongRange): Int { return c.start() diff --git a/compiler/testData/diagnostics/tests/library/Collections.fir.kt b/compiler/testData/diagnostics/tests/library/Collections.fir.kt index 27a12114e35..45371a280a8 100644 --- a/compiler/testData/diagnostics/tests/library/Collections.fir.kt +++ b/compiler/testData/diagnostics/tests/library/Collections.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package collections fun testCollection(c: Collection, t: T) { diff --git a/compiler/testData/diagnostics/tests/library/Collections.kt b/compiler/testData/diagnostics/tests/library/Collections.kt index a34229efccd..007383e65ae 100644 --- a/compiler/testData/diagnostics/tests/library/Collections.kt +++ b/compiler/testData/diagnostics/tests/library/Collections.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package collections fun testCollection(c: Collection, t: T) { diff --git a/compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.fir.kt b/compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.fir.kt index a708c8dc640..328e56c4402 100644 --- a/compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.fir.kt +++ b/compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.fir.kt @@ -1,3 +1,2 @@ -// !WITH_NEW_INFERENCE annotation class A(val a: IntArray = arrayOf(1)) annotation class B(val a: IntArray = intArrayOf(1)) diff --git a/compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.kt b/compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.kt index 855b8c22283..5be111bbe0a 100644 --- a/compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.kt +++ b/compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.kt @@ -1,3 +1,2 @@ -// !WITH_NEW_INFERENCE annotation class A(val a: IntArray = arrayOf(1)) annotation class B(val a: IntArray = intArrayOf(1)) diff --git a/compiler/testData/diagnostics/tests/multimodule/duplicateClass/sameClassNameDifferentPackages.fir.kt b/compiler/testData/diagnostics/tests/multimodule/duplicateClass/sameClassNameDifferentPackages.fir.kt index 4105d6291d3..dddd623b059 100644 --- a/compiler/testData/diagnostics/tests/multimodule/duplicateClass/sameClassNameDifferentPackages.fir.kt +++ b/compiler/testData/diagnostics/tests/multimodule/duplicateClass/sameClassNameDifferentPackages.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // MODULE: m1 // FILE: a.kt diff --git a/compiler/testData/diagnostics/tests/multimodule/duplicateClass/sameClassNameDifferentPackages.kt b/compiler/testData/diagnostics/tests/multimodule/duplicateClass/sameClassNameDifferentPackages.kt index bbbfcb18a17..1f2f734b1b4 100644 --- a/compiler/testData/diagnostics/tests/multimodule/duplicateClass/sameClassNameDifferentPackages.kt +++ b/compiler/testData/diagnostics/tests/multimodule/duplicateClass/sameClassNameDifferentPackages.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // MODULE: m1 // FILE: a.kt diff --git a/compiler/testData/diagnostics/tests/multimodule/duplicateMethod/classVsFunctionGenericsInParamsMismatch.fir.kt b/compiler/testData/diagnostics/tests/multimodule/duplicateMethod/classVsFunctionGenericsInParamsMismatch.fir.kt index ef0f3eb4599..702ed9cbb7f 100644 --- a/compiler/testData/diagnostics/tests/multimodule/duplicateMethod/classVsFunctionGenericsInParamsMismatch.fir.kt +++ b/compiler/testData/diagnostics/tests/multimodule/duplicateMethod/classVsFunctionGenericsInParamsMismatch.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // MODULE: m1 // FILE: a.kt package p diff --git a/compiler/testData/diagnostics/tests/multimodule/duplicateMethod/classVsFunctionGenericsInParamsMismatch.kt b/compiler/testData/diagnostics/tests/multimodule/duplicateMethod/classVsFunctionGenericsInParamsMismatch.kt index c0be64d357b..dc2df929564 100644 --- a/compiler/testData/diagnostics/tests/multimodule/duplicateMethod/classVsFunctionGenericsInParamsMismatch.kt +++ b/compiler/testData/diagnostics/tests/multimodule/duplicateMethod/classVsFunctionGenericsInParamsMismatch.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // MODULE: m1 // FILE: a.kt package p diff --git a/compiler/testData/diagnostics/tests/multiplatform/namedArguments.fir.kt b/compiler/testData/diagnostics/tests/multiplatform/namedArguments.fir.kt index 9a064ec275d..be5be893aa0 100644 --- a/compiler/testData/diagnostics/tests/multiplatform/namedArguments.fir.kt +++ b/compiler/testData/diagnostics/tests/multiplatform/namedArguments.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +MultiPlatformProjects // MODULE: m1-common // FILE: common.kt diff --git a/compiler/testData/diagnostics/tests/multiplatform/namedArguments.kt b/compiler/testData/diagnostics/tests/multiplatform/namedArguments.kt index 37790ce62e4..40d0d70dca6 100644 --- a/compiler/testData/diagnostics/tests/multiplatform/namedArguments.kt +++ b/compiler/testData/diagnostics/tests/multiplatform/namedArguments.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +MultiPlatformProjects // MODULE: m1-common // FILE: common.kt diff --git a/compiler/testData/diagnostics/tests/namedArguments/disallowForSamAdapterConstructor.kt b/compiler/testData/diagnostics/tests/namedArguments/disallowForSamAdapterConstructor.kt index 28775d449d4..50ce3608e59 100644 --- a/compiler/testData/diagnostics/tests/namedArguments/disallowForSamAdapterConstructor.kt +++ b/compiler/testData/diagnostics/tests/namedArguments/disallowForSamAdapterConstructor.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // FILE: test/J.java package test; diff --git a/compiler/testData/diagnostics/tests/namedArguments/disallowForSamAdapterFunction.kt b/compiler/testData/diagnostics/tests/namedArguments/disallowForSamAdapterFunction.kt index 2ae3fc32ac4..7eac2b2d950 100644 --- a/compiler/testData/diagnostics/tests/namedArguments/disallowForSamAdapterFunction.kt +++ b/compiler/testData/diagnostics/tests/namedArguments/disallowForSamAdapterFunction.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // FILE: test/J.java package test; diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/AssertNotNull.fir.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/AssertNotNull.fir.kt index cf7143619e3..802373b198f 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/AssertNotNull.fir.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/AssertNotNull.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE fun main() { diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/AssertNotNull.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/AssertNotNull.kt index 1500e1a030a..54ec6a905b4 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/AssertNotNull.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/AssertNotNull.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE fun main() { diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/InfixCallNullability.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/InfixCallNullability.kt index 36e6c2d8c91..6ed9d7f262c 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/InfixCallNullability.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/InfixCallNullability.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE class A() { operator infix fun plus(i : Int) {} operator fun unaryMinus() {} diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2146.fir.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2146.fir.kt index 89a349c22ad..760026300e9 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2146.fir.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2146.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-2146 Nullability casts in when. package kt2146 diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2146.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2146.kt index a074aeecdb6..019137965eb 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2146.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2146.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-2146 Nullability casts in when. package kt2146 diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2164.fir.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2164.fir.kt index 4ee20cf434b..4ea68036dba 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2164.fir.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2164.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-2164 !! does not propagate nullability information package kt2164 diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2164.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2164.kt index 0e4193fc611..af0be5af601 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2164.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2164.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-2164 !! does not propagate nullability information package kt2164 diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2216.fir.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2216.fir.kt index 854e2281788..de02af4ab72 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2216.fir.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2216.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -DEBUG_INFO_SMARTCAST //KT-2216 Nullability of a value determined in function parameter computation doesn't pass to code following package kt2216 diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2216.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2216.kt index 4db26fe8a4f..a3ef6f94083 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2216.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2216.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -DEBUG_INFO_SMARTCAST //KT-2216 Nullability of a value determined in function parameter computation doesn't pass to code following package kt2216 diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt30734.fir.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt30734.fir.kt index 25ea6b526a8..d9ef44e524f 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt30734.fir.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt30734.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // !LANGUAGE: +NewInference // Issue: KT-30734 diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt30734.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt30734.kt index 459974779ca..53a1579a429 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt30734.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt30734.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // !LANGUAGE: +NewInference // Issue: KT-30734 diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/unnecessaryNotNullAssertion.fir.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/unnecessaryNotNullAssertion.fir.kt index b5f9e05f811..35f2d87663e 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/unnecessaryNotNullAssertion.fir.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/unnecessaryNotNullAssertion.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER, -SENSELESS_COMPARISON, -DEBUG_INFO_SMARTCAST fun takeNotNull(s: String) {} diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/unnecessaryNotNullAssertion.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/unnecessaryNotNullAssertion.kt index a1e9a09a30d..01c1b825896 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/unnecessaryNotNullAssertion.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/unnecessaryNotNullAssertion.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER, -SENSELESS_COMPARISON, -DEBUG_INFO_SMARTCAST fun takeNotNull(s: String) {} diff --git a/compiler/testData/diagnostics/tests/nullableTypes/nullAssertOnTypeWithNullableUpperBound.fir.kt b/compiler/testData/diagnostics/tests/nullableTypes/nullAssertOnTypeWithNullableUpperBound.fir.kt index fcce0275ffd..2b51253a6c2 100644 --- a/compiler/testData/diagnostics/tests/nullableTypes/nullAssertOnTypeWithNullableUpperBound.fir.kt +++ b/compiler/testData/diagnostics/tests/nullableTypes/nullAssertOnTypeWithNullableUpperBound.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(t: T): T { if (t != null) { return t!! diff --git a/compiler/testData/diagnostics/tests/nullableTypes/nullAssertOnTypeWithNullableUpperBound.kt b/compiler/testData/diagnostics/tests/nullableTypes/nullAssertOnTypeWithNullableUpperBound.kt index d8c27d1374f..4c5a76add3e 100644 --- a/compiler/testData/diagnostics/tests/nullableTypes/nullAssertOnTypeWithNullableUpperBound.kt +++ b/compiler/testData/diagnostics/tests/nullableTypes/nullAssertOnTypeWithNullableUpperBound.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(t: T): T { if (t != null) { return t!! diff --git a/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterPlatform.fir.kt b/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterPlatform.fir.kt index 13ee4dbdf08..677a141c099 100644 --- a/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterPlatform.fir.kt +++ b/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterPlatform.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterPlatform.kt b/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterPlatform.kt index 718554dae0d..c32c02d4fc2 100644 --- a/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterPlatform.kt +++ b/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterPlatform.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterSimple.fir.kt b/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterSimple.fir.kt index ac2ee3313fc..d6669bb5619 100644 --- a/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterSimple.fir.kt +++ b/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterSimple.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun foo(x: String) {} diff --git a/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterSimple.kt b/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterSimple.kt index bf7b67381db..a5887a15523 100644 --- a/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterSimple.kt +++ b/compiler/testData/diagnostics/tests/nullableTypes/nullableArgumentToNonNullParameterSimple.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun foo(x: String) {} diff --git a/compiler/testData/diagnostics/tests/nullableTypes/safeCallOnTypeWithNullableUpperBound.fir.kt b/compiler/testData/diagnostics/tests/nullableTypes/safeCallOnTypeWithNullableUpperBound.fir.kt index 75356611a22..848be3e88cc 100644 --- a/compiler/testData/diagnostics/tests/nullableTypes/safeCallOnTypeWithNullableUpperBound.fir.kt +++ b/compiler/testData/diagnostics/tests/nullableTypes/safeCallOnTypeWithNullableUpperBound.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(t: T): String? { if (t != null) { return t?.toString() diff --git a/compiler/testData/diagnostics/tests/nullableTypes/safeCallOnTypeWithNullableUpperBound.kt b/compiler/testData/diagnostics/tests/nullableTypes/safeCallOnTypeWithNullableUpperBound.kt index 27b11f14094..219d05ab2ef 100644 --- a/compiler/testData/diagnostics/tests/nullableTypes/safeCallOnTypeWithNullableUpperBound.kt +++ b/compiler/testData/diagnostics/tests/nullableTypes/safeCallOnTypeWithNullableUpperBound.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(t: T): String? { if (t != null) { return t?.toString() diff --git a/compiler/testData/diagnostics/tests/numbers/characterIsNotANumber.fir.kt b/compiler/testData/diagnostics/tests/numbers/characterIsNotANumber.fir.kt index 754458888ea..2f38bbbce5a 100644 --- a/compiler/testData/diagnostics/tests/numbers/characterIsNotANumber.fir.kt +++ b/compiler/testData/diagnostics/tests/numbers/characterIsNotANumber.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(n: Number) = n fun test() { diff --git a/compiler/testData/diagnostics/tests/numbers/characterIsNotANumber.kt b/compiler/testData/diagnostics/tests/numbers/characterIsNotANumber.kt index a8b30693cef..03a89ca0fd5 100644 --- a/compiler/testData/diagnostics/tests/numbers/characterIsNotANumber.kt +++ b/compiler/testData/diagnostics/tests/numbers/characterIsNotANumber.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(n: Number) = n fun test() { diff --git a/compiler/testData/diagnostics/tests/numbers/doublesInSimpleConstraints.fir.kt b/compiler/testData/diagnostics/tests/numbers/doublesInSimpleConstraints.fir.kt index 6e531829f0f..256de007afa 100644 --- a/compiler/testData/diagnostics/tests/numbers/doublesInSimpleConstraints.fir.kt +++ b/compiler/testData/diagnostics/tests/numbers/doublesInSimpleConstraints.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package a diff --git a/compiler/testData/diagnostics/tests/numbers/doublesInSimpleConstraints.kt b/compiler/testData/diagnostics/tests/numbers/doublesInSimpleConstraints.kt index 1502aa288b7..f59be6be1fa 100644 --- a/compiler/testData/diagnostics/tests/numbers/doublesInSimpleConstraints.kt +++ b/compiler/testData/diagnostics/tests/numbers/doublesInSimpleConstraints.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package a diff --git a/compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.fir.kt b/compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.fir.kt index ace8eca8e5a..a89a29ad123 100644 --- a/compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.fir.kt +++ b/compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a fun foo(i: Int) = i diff --git a/compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.kt b/compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.kt index 44ca2aa9717..4f87a343ddf 100644 --- a/compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.kt +++ b/compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a fun foo(i: Int) = i diff --git a/compiler/testData/diagnostics/tests/numbers/numbersInSimpleConstraints.fir.kt b/compiler/testData/diagnostics/tests/numbers/numbersInSimpleConstraints.fir.kt index aa669f9dca7..2ab2d63d285 100644 --- a/compiler/testData/diagnostics/tests/numbers/numbersInSimpleConstraints.fir.kt +++ b/compiler/testData/diagnostics/tests/numbers/numbersInSimpleConstraints.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package a diff --git a/compiler/testData/diagnostics/tests/numbers/numbersInSimpleConstraints.kt b/compiler/testData/diagnostics/tests/numbers/numbersInSimpleConstraints.kt index 49ea728d052..f5574644cd0 100644 --- a/compiler/testData/diagnostics/tests/numbers/numbersInSimpleConstraints.kt +++ b/compiler/testData/diagnostics/tests/numbers/numbersInSimpleConstraints.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package a diff --git a/compiler/testData/diagnostics/tests/objects/kt5527.fir.kt b/compiler/testData/diagnostics/tests/objects/kt5527.fir.kt index de95c8a8022..87e02797099 100644 --- a/compiler/testData/diagnostics/tests/objects/kt5527.fir.kt +++ b/compiler/testData/diagnostics/tests/objects/kt5527.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE object Boo {} diff --git a/compiler/testData/diagnostics/tests/objects/kt5527.kt b/compiler/testData/diagnostics/tests/objects/kt5527.kt index 0a8853e73f2..6b5ba7195b6 100644 --- a/compiler/testData/diagnostics/tests/objects/kt5527.kt +++ b/compiler/testData/diagnostics/tests/objects/kt5527.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE object Boo {} diff --git a/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModAssignOperatorConventions.fir.kt b/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModAssignOperatorConventions.fir.kt index f64bd1bdf0d..f328d45217c 100644 --- a/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModAssignOperatorConventions.fir.kt +++ b/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModAssignOperatorConventions.fir.kt @@ -1,5 +1,4 @@ // !LANGUAGE: -ProhibitOperatorMod -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class OldAndNew { diff --git a/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModAssignOperatorConventions.kt b/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModAssignOperatorConventions.kt index 8ca2e1cec73..33f4e01ae10 100644 --- a/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModAssignOperatorConventions.kt +++ b/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModAssignOperatorConventions.kt @@ -1,5 +1,4 @@ // !LANGUAGE: -ProhibitOperatorMod -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class OldAndNew { diff --git a/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModOperatorConventions.fir.kt b/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModOperatorConventions.fir.kt index 2b1cd615b4c..f02f145bcc5 100644 --- a/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModOperatorConventions.fir.kt +++ b/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModOperatorConventions.fir.kt @@ -1,5 +1,4 @@ // !LANGUAGE: -ProhibitOperatorMod -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class OldAndNew { diff --git a/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModOperatorConventions.kt b/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModOperatorConventions.kt index 8ec787522ff..7e6bb91ceaf 100644 --- a/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModOperatorConventions.kt +++ b/compiler/testData/diagnostics/tests/operatorRem/DeprecatedModOperatorConventions.kt @@ -1,5 +1,4 @@ // !LANGUAGE: -ProhibitOperatorMod -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class OldAndNew { diff --git a/compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.fir.kt b/compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.fir.kt index 3c5b319096e..f219481b102 100644 --- a/compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.fir.kt +++ b/compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.fir.kt @@ -1,5 +1,4 @@ // !LANGUAGE: -ProhibitOperatorMod -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object OldMod { diff --git a/compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.kt b/compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.kt index a644c9bebd7..588abdb08f5 100644 --- a/compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.kt +++ b/compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.kt @@ -1,5 +1,4 @@ // !LANGUAGE: -ProhibitOperatorMod -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object OldMod { diff --git a/compiler/testData/diagnostics/tests/operatorsOverloading/kt11300.fir.kt b/compiler/testData/diagnostics/tests/operatorsOverloading/kt11300.fir.kt index bf731458499..a1b04c1bf0e 100644 --- a/compiler/testData/diagnostics/tests/operatorsOverloading/kt11300.fir.kt +++ b/compiler/testData/diagnostics/tests/operatorsOverloading/kt11300.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A { operator fun get(x: Int): Int = x diff --git a/compiler/testData/diagnostics/tests/operatorsOverloading/kt11300.kt b/compiler/testData/diagnostics/tests/operatorsOverloading/kt11300.kt index 336e7b3ca7b..a46a695d85a 100644 --- a/compiler/testData/diagnostics/tests/operatorsOverloading/kt11300.kt +++ b/compiler/testData/diagnostics/tests/operatorsOverloading/kt11300.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A { operator fun get(x: Int): Int = x diff --git a/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.fir.kt b/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.fir.kt index 4b6ff721930..63b6c07acf1 100644 --- a/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.fir.kt +++ b/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-13330 AssertionError: Illegal resolved call to variable with invoke fun foo(exec: (String.() -> Unit)?) = "".exec() // is test data tag here diff --git a/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.kt b/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.kt index 7d17e513ad6..f15c3745d4b 100644 --- a/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.kt +++ b/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-13330 AssertionError: Illegal resolved call to variable with invoke fun foo(exec: (String.() -> Unit)?) = "".exec<caret>() // is test data tag here diff --git a/compiler/testData/diagnostics/tests/overload/defaultParameters.fir.kt b/compiler/testData/diagnostics/tests/overload/defaultParameters.fir.kt index 5b7b7f84d11..5e871e83bc6 100644 --- a/compiler/testData/diagnostics/tests/overload/defaultParameters.fir.kt +++ b/compiler/testData/diagnostics/tests/overload/defaultParameters.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/overload/defaultParameters.kt b/compiler/testData/diagnostics/tests/overload/defaultParameters.kt index abc3d7231bc..d1829c687f1 100644 --- a/compiler/testData/diagnostics/tests/overload/defaultParameters.kt +++ b/compiler/testData/diagnostics/tests/overload/defaultParameters.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/overload/kt2493.fir.kt b/compiler/testData/diagnostics/tests/overload/kt2493.fir.kt index 40c426b7fe4..6e72ebd2b2e 100644 --- a/compiler/testData/diagnostics/tests/overload/kt2493.fir.kt +++ b/compiler/testData/diagnostics/tests/overload/kt2493.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface A interface B diff --git a/compiler/testData/diagnostics/tests/overload/kt2493.kt b/compiler/testData/diagnostics/tests/overload/kt2493.kt index 73424902928..17d6b03bbf9 100644 --- a/compiler/testData/diagnostics/tests/overload/kt2493.kt +++ b/compiler/testData/diagnostics/tests/overload/kt2493.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface A interface B diff --git a/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/withNothing.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/withNothing.fir.kt index 8ca71dcd74b..a865c4e99a7 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/withNothing.fir.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/withNothing.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE // SKIP_JAVAC diff --git a/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/withNothing.kt b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/withNothing.kt index eec363d673e..ae03227f7a7 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/withNothing.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/withNothing.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE // SKIP_JAVAC diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.fir.kt index 5cce6cae9c7..6c1b45fc4f2 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.fir.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE interface Foo diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.kt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.kt index 4a719283223..c3ce3e75b6b 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE interface Foo diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/visitor.kt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/visitor.kt index 83ea7decc29..eef0913d8ec 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/methodCall/visitor.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/visitor.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // FILE: p/Visitor.java package p; diff --git a/compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter/methodTypeParameter.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter/methodTypeParameter.fir.kt index 689e6e31ab5..2951967aafc 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter/methodTypeParameter.fir.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter/methodTypeParameter.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: A.java import org.jetbrains.annotations.NotNull; diff --git a/compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter/methodTypeParameter.kt b/compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter/methodTypeParameter.kt index fd07ab11be7..5b16e5c9bfa 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter/methodTypeParameter.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter/methodTypeParameter.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: A.java import org.jetbrains.annotations.NotNull; diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/arithmetic.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/arithmetic.fir.kt index 18c9e60b888..f88b686e612 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/arithmetic.fir.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/arithmetic.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/arithmetic.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/arithmetic.kt index 8f89d89fa9f..9ecf7821f1a 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/arithmetic.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/arithmetic.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/assignToVar.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/assignToVar.fir.kt index a59e1eda6f7..4dd0494b0ce 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/assignToVar.fir.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/assignToVar.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/assignToVar.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/assignToVar.kt index bcc125ee286..712431e8132 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/assignToVar.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/assignToVar.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/conditions.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/conditions.fir.kt index d08d7080d4a..6b8cf402706 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/conditions.fir.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/conditions.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION // FILE: J.java diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/conditions.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/conditions.kt index cda8720e916..551d125f87d 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/conditions.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/conditions.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION // FILE: J.java diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/dataFlowInfo.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/dataFlowInfo.fir.kt index a32ba52480c..aae0923b786 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/dataFlowInfo.fir.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/dataFlowInfo.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // FILE: J.java diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/dataFlowInfo.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/dataFlowInfo.kt index 8af77c1813a..bb8ff0a9c87 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/dataFlowInfo.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/dataFlowInfo.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // FILE: J.java diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/defaultParameters.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/defaultParameters.fir.kt index 1ef043f66e2..9c884b34a28 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/defaultParameters.fir.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/defaultParameters.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // FILE: J.java diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/defaultParameters.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/defaultParameters.kt index 6d74135a4b6..4c6d2fc62aa 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/defaultParameters.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/defaultParameters.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // FILE: J.java diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/delegation.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/delegation.fir.kt index 2a16ec3d803..0f3f372bcce 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/delegation.fir.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/delegation.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/delegation.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/delegation.kt index 6b878d86363..5970a02c277 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/delegation.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/delegation.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/passToJava.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/passToJava.fir.kt index e0b27d2fd0a..44750a4acb1 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/passToJava.fir.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/passToJava.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/passToJava.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/passToJava.kt index c2367edb4df..33465a257df 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/passToJava.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/passToJava.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/throw.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/throw.fir.kt index 2755f518ced..40cffe7a8ca 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/throw.fir.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/throw.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/throw.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/throw.kt index 87f626a5219..df4f6c14145 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/throw.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/throw.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java import org.jetbrains.annotations.*; diff --git a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/arrays.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/rawTypes/arrays.fir.kt index adf22ababc0..a3d40416ffb 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/arrays.fir.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/rawTypes/arrays.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/arrays.kt b/compiler/testData/diagnostics/tests/platformTypes/rawTypes/arrays.kt index 578f1093a57..15d84f068b1 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/arrays.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/rawTypes/arrays.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.fir.kt index 761b2b25bbd..c0f9db1c7b8 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.fir.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.kt b/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.kt index cb4a5be6f32..c6653eac642 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.fir.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.fir.kt index 8091a2cabdf..f6f10a935c6 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.fir.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE val x get() = foo() val y get() = bar() diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.kt index 686ff76a21d..50b2d297578 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE val x get() = foo() val y get() = bar() diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/nullAsNothing.fir.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/nullAsNothing.fir.kt index d43acd3a5f7..d0efc02d6d9 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/nullAsNothing.fir.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/nullAsNothing.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE val x get() = null val y get() = null!! diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/nullAsNothing.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/nullAsNothing.kt index c8bd54ea24f..c9c42e8cf62 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/nullAsNothing.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/nullAsNothing.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE val x get() = null val y get() = null!! diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/objectExpression.fir.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/objectExpression.fir.kt index e56fd8d69f4..10d85197bca 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/objectExpression.fir.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/objectExpression.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE object Outer { private var x diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/objectExpression.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/objectExpression.kt index fed89a4295e..8e707b06ff6 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/objectExpression.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/objectExpression.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE object Outer { private var x diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.fir.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.fir.kt index dadfa97842d..758371ab934 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.fir.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt index 748b1512262..8da2453ec26 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.fir.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.fir.kt index 68531f82a31..6d800786d9a 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.fir.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: -ShortSyntaxForPropertyGetters // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt index f238f196290..fdce8c4da00 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: -ShortSyntaxForPropertyGetters // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.fir.kt b/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.fir.kt index ee8c478f187..6cf18760663 100644 --- a/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.fir.kt +++ b/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -UNREACHABLE_CODE -// !WITH_NEW_INFERENCE class A { class B { diff --git a/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.kt b/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.kt index e6119f16e33..b2e09756ffe 100644 --- a/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.kt +++ b/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -UNREACHABLE_CODE -// !WITH_NEW_INFERENCE class A { class B { diff --git a/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.fir.kt b/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.fir.kt index 3d99787f9d9..37517d4e75f 100644 --- a/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.fir.kt +++ b/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.fir.kt @@ -1,2 +1 @@ -// !WITH_NEW_INFERENCE val unwrapped = some<sdf()()::unwrap diff --git a/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt b/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt index 42784851b6e..2fb84b035c7 100644 --- a/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt +++ b/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt @@ -1,2 +1 @@ -// !WITH_NEW_INFERENCE val unwrapped = some<sdf()()Any>::unwrap diff --git a/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.fir.kt b/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.fir.kt index c413fd0249e..a24577bee4e 100644 --- a/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.fir.kt +++ b/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE val unwrapped = some.<cabc$Wrapper<out Any>::unwrap diff --git a/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.kt b/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.kt index 18db3c8cb6e..9f5270292cf 100644 --- a/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.kt +++ b/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE val unwrapped = some.<cabc$WrapperAny>::unwrap diff --git a/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.fir.kt b/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.fir.kt index 86c7ff9bf37..69e0247fd63 100644 --- a/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.fir.kt +++ b/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun import() { import a.* } diff --git a/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.kt b/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.kt index fd4898166c0..65a0b43d879 100644 --- a/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.kt +++ b/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun import() { import a.* } diff --git a/compiler/testData/diagnostics/tests/regressions/Jet81.fir.kt b/compiler/testData/diagnostics/tests/regressions/Jet81.fir.kt index d7fbd05f526..83cab2c3fef 100644 --- a/compiler/testData/diagnostics/tests/regressions/Jet81.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/Jet81.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // JET-81 Assertion fails when processing self-referring anonymous objects diff --git a/compiler/testData/diagnostics/tests/regressions/Jet81.kt b/compiler/testData/diagnostics/tests/regressions/Jet81.kt index d557e34dd63..a6663d65dd2 100644 --- a/compiler/testData/diagnostics/tests/regressions/Jet81.kt +++ b/compiler/testData/diagnostics/tests/regressions/Jet81.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // JET-81 Assertion fails when processing self-referring anonymous objects diff --git a/compiler/testData/diagnostics/tests/regressions/OutProjections.fir.kt b/compiler/testData/diagnostics/tests/regressions/OutProjections.fir.kt index 48dbe3206e1..7f0fb514060 100644 --- a/compiler/testData/diagnostics/tests/regressions/OutProjections.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/OutProjections.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class Point() { } diff --git a/compiler/testData/diagnostics/tests/regressions/OutProjections.kt b/compiler/testData/diagnostics/tests/regressions/OutProjections.kt index ce685827dcc..531c2b0f4ba 100644 --- a/compiler/testData/diagnostics/tests/regressions/OutProjections.kt +++ b/compiler/testData/diagnostics/tests/regressions/OutProjections.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class Point() { } diff --git a/compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.fir.kt b/compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.fir.kt index d404428b921..d9cbd608db7 100644 --- a/compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun main() { val a : Int? = null; var v = 1 diff --git a/compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.kt b/compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.kt index 4391781a4f1..6465489194a 100644 --- a/compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.kt +++ b/compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun main() { val a : Int? = null; var v = 1 diff --git a/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.fir.kt b/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.fir.kt index 84aaf3d524e..b6638f51169 100644 --- a/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun test(a: Int, b: Boolean) { diff --git a/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.kt b/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.kt index 65b023f7c13..3cf1f5044ff 100644 --- a/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.kt +++ b/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun test(a: Int, b: Boolean) { diff --git a/compiler/testData/diagnostics/tests/regressions/ea72837.fir.kt b/compiler/testData/diagnostics/tests/regressions/ea72837.fir.kt index 62428aab796..fe4dad1f4b8 100644 --- a/compiler/testData/diagnostics/tests/regressions/ea72837.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/ea72837.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun g(x: T) = 1 fun h(x: () -> Unit) = 1 diff --git a/compiler/testData/diagnostics/tests/regressions/ea72837.kt b/compiler/testData/diagnostics/tests/regressions/ea72837.kt index 173635e8d04..80a9e4777bb 100644 --- a/compiler/testData/diagnostics/tests/regressions/ea72837.kt +++ b/compiler/testData/diagnostics/tests/regressions/ea72837.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun g(x: T) = 1 fun h(x: () -> Unit) = 1 diff --git a/compiler/testData/diagnostics/tests/regressions/itselfAsUpperBoundLocal.fir.kt b/compiler/testData/diagnostics/tests/regressions/itselfAsUpperBoundLocal.fir.kt index 83a5dfd4d0b..f4481fc4ebc 100644 --- a/compiler/testData/diagnostics/tests/regressions/itselfAsUpperBoundLocal.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/itselfAsUpperBoundLocal.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun bar() { fun T?> foo() {} foo() diff --git a/compiler/testData/diagnostics/tests/regressions/itselfAsUpperBoundLocal.kt b/compiler/testData/diagnostics/tests/regressions/itselfAsUpperBoundLocal.kt index 6407878e67b..31f6359da71 100644 --- a/compiler/testData/diagnostics/tests/regressions/itselfAsUpperBoundLocal.kt +++ b/compiler/testData/diagnostics/tests/regressions/itselfAsUpperBoundLocal.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun bar() { fun <T: T?> foo() {} foo() diff --git a/compiler/testData/diagnostics/tests/regressions/kt10243.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt10243.fir.kt index eb1e3b5304f..e28c3623f31 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt10243.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt10243.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE val f: Boolean = true private fun doUpdateRegularTasks() { try { diff --git a/compiler/testData/diagnostics/tests/regressions/kt10243.kt b/compiler/testData/diagnostics/tests/regressions/kt10243.kt index 0845815e599..c5f5ce0b938 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt10243.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt10243.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE val f: Boolean = true private fun doUpdateRegularTasks() { try { diff --git a/compiler/testData/diagnostics/tests/regressions/kt10843.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt10843.fir.kt index 9f41a1e530c..b756a3e5eb6 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt10843.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt10843.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // See EA-76890 / KT-10843: NPE during analysis fun lambda(x : Int?) = x?.let l { diff --git a/compiler/testData/diagnostics/tests/regressions/kt10843.kt b/compiler/testData/diagnostics/tests/regressions/kt10843.kt index c209aad4428..797327290cb 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt10843.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt10843.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // See EA-76890 / KT-10843: NPE during analysis fun lambda(x : Int?) = x?.let l { diff --git a/compiler/testData/diagnostics/tests/regressions/kt11979.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt11979.fir.kt index ad796b0d6e2..4d137bb0afe 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt11979.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt11979.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE interface Bar { diff --git a/compiler/testData/diagnostics/tests/regressions/kt11979.kt b/compiler/testData/diagnostics/tests/regressions/kt11979.kt index 2a9334a113f..aca2c7e8184 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt11979.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt11979.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE interface Bar { diff --git a/compiler/testData/diagnostics/tests/regressions/kt12898.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt12898.fir.kt index f54ea71e143..c62673ba5f2 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt12898.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt12898.fir.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +NewInference -// !WITH_NEW_INFERENCE interface B { val t: T diff --git a/compiler/testData/diagnostics/tests/regressions/kt12898.kt b/compiler/testData/diagnostics/tests/regressions/kt12898.kt index c974e06e263..8e77087ea6c 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt12898.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt12898.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +NewInference -// !WITH_NEW_INFERENCE interface B { val t: T diff --git a/compiler/testData/diagnostics/tests/regressions/kt13685.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt13685.fir.kt index eaa4343fca8..6e0fa3730e0 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt13685.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt13685.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNREACHABLE_CODE fun foo() { diff --git a/compiler/testData/diagnostics/tests/regressions/kt13685.kt b/compiler/testData/diagnostics/tests/regressions/kt13685.kt index 8bc4030ed4c..baef6a303b4 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt13685.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt13685.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNREACHABLE_CODE fun foo() { diff --git a/compiler/testData/diagnostics/tests/regressions/kt1489_1728.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt1489_1728.fir.kt index 450b0be92c7..ad47b7a20ed 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt1489_1728.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt1489_1728.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package kt606_dependents //KT-1489 Code analyzer fails with assertion diff --git a/compiler/testData/diagnostics/tests/regressions/kt1489_1728.kt b/compiler/testData/diagnostics/tests/regressions/kt1489_1728.kt index af180e6e67f..f15bdb3d45e 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt1489_1728.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt1489_1728.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package kt606_dependents //KT-1489 Code analyzer fails with assertion diff --git a/compiler/testData/diagnostics/tests/regressions/kt24488.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt24488.fir.kt index b4eb7957a51..0d7c8420d68 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt24488.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt24488.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // SKIP_TXT class Bar { diff --git a/compiler/testData/diagnostics/tests/regressions/kt24488.kt b/compiler/testData/diagnostics/tests/regressions/kt24488.kt index 03710b2c651..09e9fea9cea 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt24488.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt24488.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // SKIP_TXT class Bar { diff --git a/compiler/testData/diagnostics/tests/regressions/kt251.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt251.fir.kt index a2e921aeb0c..a4ab77ebd2a 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt251.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt251.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A() { var x: Int = 0 get() = "s" diff --git a/compiler/testData/diagnostics/tests/regressions/kt251.kt b/compiler/testData/diagnostics/tests/regressions/kt251.kt index d176a2ec39b..4a2f6c53c68 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt251.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt251.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A() { var x: Int = 0 get() = "s" diff --git a/compiler/testData/diagnostics/tests/regressions/kt282.kt b/compiler/testData/diagnostics/tests/regressions/kt282.kt index b8c0744fcec..a51b1ae8b72 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt282.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt282.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // KT-282 Nullability in extension functions and in binary calls class Set { diff --git a/compiler/testData/diagnostics/tests/regressions/kt312.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt312.fir.kt index 55c6122115e..735790dc2c6 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt312.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt312.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-312 Nullability problem when a nullable version of a generic type is returned fun Array.safeGet(index : Int) : T? { diff --git a/compiler/testData/diagnostics/tests/regressions/kt312.kt b/compiler/testData/diagnostics/tests/regressions/kt312.kt index 3a9d5e87cc1..10975743dc2 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt312.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt312.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-312 Nullability problem when a nullable version of a generic type is returned fun Array.safeGet(index : Int) : T? { diff --git a/compiler/testData/diagnostics/tests/regressions/kt328.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt328.fir.kt index 566fd637ba5..e6c6003c1a7 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt328.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt328.fir.kt @@ -1,5 +1,4 @@ // COMPARE_WITH_LIGHT_TREE -// !WITH_NEW_INFERENCE //KT-328 Local function in function literals cause exceptions fun bar1() = { diff --git a/compiler/testData/diagnostics/tests/regressions/kt328.kt b/compiler/testData/diagnostics/tests/regressions/kt328.kt index 92c0521be4a..0b29be62287 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt328.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt328.kt @@ -1,5 +1,4 @@ // COMPARE_WITH_LIGHT_TREE -// !WITH_NEW_INFERENCE //KT-328 Local function in function literals cause exceptions fun bar1() = { diff --git a/compiler/testData/diagnostics/tests/regressions/kt352.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt352.fir.kt index ba34d4d076c..293c30b4192 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt352.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt352.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-352 Function variable declaration type isn't checked inside a function body package kt352 diff --git a/compiler/testData/diagnostics/tests/regressions/kt352.kt b/compiler/testData/diagnostics/tests/regressions/kt352.kt index 80cc37de7aa..4449b509b11 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt352.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt352.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-352 Function variable declaration type isn't checked inside a function body package kt352 diff --git a/compiler/testData/diagnostics/tests/regressions/kt353.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt353.fir.kt index 86054faac9e..4533391638b 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt353.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt353.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-353 Generic type argument inference sometimes doesn't work interface A { diff --git a/compiler/testData/diagnostics/tests/regressions/kt353.kt b/compiler/testData/diagnostics/tests/regressions/kt353.kt index fa8ddba128d..adb137b882d 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt353.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt353.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-353 Generic type argument inference sometimes doesn't work interface A { diff --git a/compiler/testData/diagnostics/tests/regressions/kt5362.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt5362.fir.kt index c1fc5dadfbc..25a5b46b0e0 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt5362.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt5362.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-5362 Compiler crashes on access to extension method from nested class class Outer { class Nested{ diff --git a/compiler/testData/diagnostics/tests/regressions/kt5362.kt b/compiler/testData/diagnostics/tests/regressions/kt5362.kt index 34fbca34c61..01590fb2bfe 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt5362.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt5362.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-5362 Compiler crashes on access to extension method from nested class class Outer { class Nested{ diff --git a/compiler/testData/diagnostics/tests/regressions/kt557.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt557.fir.kt index c24e96f737d..e1f6c4fb228 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt557.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt557.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-557 Wrong type inference near sure extension function fun T?.sure() : T = this!! diff --git a/compiler/testData/diagnostics/tests/regressions/kt557.kt b/compiler/testData/diagnostics/tests/regressions/kt557.kt index 69c28808b02..3f8fec24bb6 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt557.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt557.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-557 Wrong type inference near sure extension function fun T?.sure() : T = this!! diff --git a/compiler/testData/diagnostics/tests/regressions/kt7804.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt7804.fir.kt index 653d5ad4902..b8d0740f8ea 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt7804.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt7804.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See also KT-7804 (Wrong type inference of kotlin.Any? was for 'a' without explicit type) fun foo(a: T) = a diff --git a/compiler/testData/diagnostics/tests/regressions/kt7804.kt b/compiler/testData/diagnostics/tests/regressions/kt7804.kt index 272a5ff8555..4f2a17dfefb 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt7804.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt7804.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See also KT-7804 (Wrong type inference of kotlin.Any? was for 'a' without explicit type) fun foo(a: T) = a diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType.fir.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType.fir.kt index b4a948e98ac..7e9749c5768 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // !LANGUAGE: -DslMarkerOnFunctionTypeReceiver @Target(AnnotationTarget.TYPE) diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType.kt index a797d631928..a606a5b45a6 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // !LANGUAGE: -DslMarkerOnFunctionTypeReceiver @Target(AnnotationTarget.TYPE) diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType_1_4.fir.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType_1_4.fir.kt index 8ee13aff80d..ee9222f6e0e 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType_1_4.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType_1_4.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !LANGUAGE: +DslMarkerOnFunctionTypeReceiver -// !WITH_NEW_INFERENCE @Target(AnnotationTarget.TYPE) @DslMarker diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType_1_4.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType_1_4.kt index 30b8565f613..da1020399d7 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType_1_4.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType_1_4.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !LANGUAGE: +DslMarkerOnFunctionTypeReceiver -// !WITH_NEW_INFERENCE @Target(AnnotationTarget.TYPE) @DslMarker diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/dslMarkerWithTypealiasRecursion.fir.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/dslMarkerWithTypealiasRecursion.fir.kt index ac479bd5be8..1a9fac5a9ca 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/dslMarkerWithTypealiasRecursion.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/dslMarkerWithTypealiasRecursion.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE @DslMarker @Target(AnnotationTarget.CLASS, AnnotationTarget.TYPEALIAS) diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/dslMarkerWithTypealiasRecursion.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/dslMarkerWithTypealiasRecursion.kt index 82127f4206c..0448706e1a1 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/dslMarkerWithTypealiasRecursion.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/dslMarkerWithTypealiasRecursion.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE @DslMarker @Target(AnnotationTarget.CLASS, AnnotationTarget.TYPEALIAS) diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/markersIntersection.fir.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/markersIntersection.fir.kt index 8eb2a6ceed0..8d2c9493f41 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/markersIntersection.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/markersIntersection.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER @DslMarker @Target(AnnotationTarget.TYPE) diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/markersIntersection.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/markersIntersection.kt index 775a0300d13..4e5850e0a7c 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/markersIntersection.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/markersIntersection.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER @DslMarker @Target(AnnotationTarget.TYPE) diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/substitutedReceiverAnnotatedType.fir.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/substitutedReceiverAnnotatedType.fir.kt index ab79d02f572..71215b5040b 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/substitutedReceiverAnnotatedType.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/substitutedReceiverAnnotatedType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER @DslMarker @Target(AnnotationTarget.TYPE) diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/substitutedReceiverAnnotatedType.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/substitutedReceiverAnnotatedType.kt index d65adb64d78..bdd29eee30e 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/substitutedReceiverAnnotatedType.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/substitutedReceiverAnnotatedType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER @DslMarker @Target(AnnotationTarget.TYPE) diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers.fir.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers.fir.kt index 62179bd9710..06932e37d76 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER @DslMarker @Target(AnnotationTarget.TYPE) diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers.kt index 266905762c6..a6a5b859604 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER @DslMarker @Target(AnnotationTarget.TYPE) diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers2.fir.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers2.fir.kt index cb6b70fbac7..5b4eac008c3 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers2.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers2.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER @DslMarker @Target(AnnotationTarget.TYPE) diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers2.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers2.kt index 70127848792..f53d6b57913 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers2.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/threeImplicitReceivers2.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER @DslMarker @Target(AnnotationTarget.TYPE) diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.fir.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.fir.kt index dd8b318e300..f7f25bfef65 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun Int.invoke(i: Int, a: Any) {} diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.kt index 3b22fe99ffa..7f4d131807e 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun Int.invoke(i: Int, a: Any) {} diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/typeInferenceErrorForInvoke.fir.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/typeInferenceErrorForInvoke.fir.kt index 1d4a539deb1..89ad9545277 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/typeInferenceErrorForInvoke.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/typeInferenceErrorForInvoke.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/typeInferenceErrorForInvoke.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/typeInferenceErrorForInvoke.kt index 4896965ae74..d82833dbd5a 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/typeInferenceErrorForInvoke.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/typeInferenceErrorForInvoke.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER class A diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.fir.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.fir.kt index 5ee43224bcf..ec1e39472a0 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE operator fun String.invoke(i: Int) {} diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.kt index 6ebc3151730..7cf9720bfb3 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE operator fun String.invoke(i: Int) {} diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.fir.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.fir.kt index 7e64054a47e..c443b26b513 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test1() { 1. (fun String.(i: Int) = i )(1) diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.kt index 46c92d47f0c..d5780d57811 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test1() { 1. (fun String.(i: Int) = i )(1) diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverTypeForInvoke.fir.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverTypeForInvoke.fir.kt index e8d87240b9e..b529ad4ce2f 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverTypeForInvoke.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverTypeForInvoke.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun String.invoke(i: Int) {} diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverTypeForInvoke.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverTypeForInvoke.kt index 895b56c673b..3ddec244424 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverTypeForInvoke.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverTypeForInvoke.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun String.invoke(i: Int) {} diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.fir.kt b/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.fir.kt index 8e0ac8d2ca4..acc7042275d 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE class A diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.kt b/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.kt index 14ba82c59c0..8fd35158d2a 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE class A diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.fir.kt b/compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.fir.kt index ac3698b8b5b..dc70817fa31 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun Int.invoke(a: Int) {} diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.kt b/compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.kt index aa925573843..1f3154bc543 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun Int.invoke(a: Int) {} diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/implicitInvokeAfterSafeCall.fir.kt b/compiler/testData/diagnostics/tests/resolve/invoke/implicitInvokeAfterSafeCall.fir.kt index 2902fef2d90..1b9ebbf5fdf 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/implicitInvokeAfterSafeCall.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/implicitInvokeAfterSafeCall.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // Test case 1: additional receiver, generic invoke diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/implicitInvokeAfterSafeCall.kt b/compiler/testData/diagnostics/tests/resolve/invoke/implicitInvokeAfterSafeCall.kt index f84dc1d32da..31f66e74615 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/implicitInvokeAfterSafeCall.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/implicitInvokeAfterSafeCall.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // Test case 1: additional receiver, generic invoke diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/invokeOnVariableWithExtensionFunctionType.fir.kt b/compiler/testData/diagnostics/tests/resolve/invoke/invokeOnVariableWithExtensionFunctionType.fir.kt index 71ca8ad03e3..120f937c13c 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/invokeOnVariableWithExtensionFunctionType.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/invokeOnVariableWithExtensionFunctionType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: 1.kt package fooIsExtension diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/invokeOnVariableWithExtensionFunctionType.kt b/compiler/testData/diagnostics/tests/resolve/invoke/invokeOnVariableWithExtensionFunctionType.kt index 68269dfac25..bed94c1770a 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/invokeOnVariableWithExtensionFunctionType.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/invokeOnVariableWithExtensionFunctionType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: 1.kt package fooIsExtension diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/reportFunctionExpectedWhenOneInvokeExist.fir.kt b/compiler/testData/diagnostics/tests/resolve/invoke/reportFunctionExpectedWhenOneInvokeExist.fir.kt index e6edf1f1c3e..b1638a6ce7d 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/reportFunctionExpectedWhenOneInvokeExist.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/reportFunctionExpectedWhenOneInvokeExist.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun Int.invoke() {} diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/reportFunctionExpectedWhenOneInvokeExist.kt b/compiler/testData/diagnostics/tests/resolve/invoke/reportFunctionExpectedWhenOneInvokeExist.kt index ddf18776e96..df775fab1f3 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/reportFunctionExpectedWhenOneInvokeExist.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/reportFunctionExpectedWhenOneInvokeExist.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun Int.invoke() {} diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/wrongInvokeExtension.fir.kt b/compiler/testData/diagnostics/tests/resolve/invoke/wrongInvokeExtension.fir.kt index 840f30c16fe..ece2c87afc2 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/wrongInvokeExtension.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/wrongInvokeExtension.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class B diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/wrongInvokeExtension.kt b/compiler/testData/diagnostics/tests/resolve/invoke/wrongInvokeExtension.kt index 49ccf408f0f..f8fa864b150 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/wrongInvokeExtension.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/wrongInvokeExtension.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class B diff --git a/compiler/testData/diagnostics/tests/resolve/kt36264.fir.kt b/compiler/testData/diagnostics/tests/resolve/kt36264.fir.kt index 351bb9506df..ab4ec9489f7 100644 --- a/compiler/testData/diagnostics/tests/resolve/kt36264.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/kt36264.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER interface A diff --git a/compiler/testData/diagnostics/tests/resolve/kt36264.kt b/compiler/testData/diagnostics/tests/resolve/kt36264.kt index 065737f95a8..1772355390e 100644 --- a/compiler/testData/diagnostics/tests/resolve/kt36264.kt +++ b/compiler/testData/diagnostics/tests/resolve/kt36264.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER interface A diff --git a/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.fir.kt b/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.fir.kt index f416eb22b4d..0a6893c8b7d 100644 --- a/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package h fun foo(i: Int) = i diff --git a/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.kt b/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.kt index b9c4e349144..dc52e245f20 100644 --- a/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.kt +++ b/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package h fun foo(i: Int) = i diff --git a/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.fir.kt b/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.fir.kt index 3e04edb2149..74b8670b80a 100644 --- a/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class ResolutionCandidate class ResolutionTask(val candidate: ResolutionCandidate) diff --git a/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.kt b/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.kt index a97dcea49d9..dd4f7d0b20c 100644 --- a/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.kt +++ b/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class ResolutionCandidate class ResolutionTask(val candidate: ResolutionCandidate) diff --git a/compiler/testData/diagnostics/tests/resolve/newLineLambda.fir.kt b/compiler/testData/diagnostics/tests/resolve/newLineLambda.fir.kt index c29c5f54f67..2a7655bfd2e 100644 --- a/compiler/testData/diagnostics/tests/resolve/newLineLambda.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/newLineLambda.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun noArgs() {} diff --git a/compiler/testData/diagnostics/tests/resolve/newLineLambda.kt b/compiler/testData/diagnostics/tests/resolve/newLineLambda.kt index 0dc3e618af1..4d1e59efc31 100644 --- a/compiler/testData/diagnostics/tests/resolve/newLineLambda.kt +++ b/compiler/testData/diagnostics/tests/resolve/newLineLambda.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun noArgs() {} diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/allLambdas.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/allLambdas.fir.kt index 0806faef8dc..cdb0bf42b2b 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/allLambdas.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/allLambdas.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object X1 diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/allLambdas.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/allLambdas.kt index 730b30478cd..720d82682d6 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/allLambdas.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/allLambdas.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object X1 diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.fir.kt index 10d4e2c32e4..bfcf957196d 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE interface A { fun foo(x: T) diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt index d79b377d9d7..b0ccc400d48 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE interface A { fun foo(x: T) diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.fir.kt index 16482cbb981..520acd5367f 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface AutoCloseable interface Closeable : AutoCloseable diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.kt index d11483dff2a..660db038f41 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface AutoCloseable interface Closeable : AutoCloseable diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.fir.kt index a0bfa633ac6..bf767d349d9 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_NEW_INFERENCE open class A(val value: T) diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.kt index 2737c6b7d8a..1fbb7b61944 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_NEW_INFERENCE open class A(val value: T) diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670_compat.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670_compat.fir.kt index 17b204a21cf..085f867a73d 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670_compat.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670_compat.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_OLD_INFERENCE open class A(val value: T) diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670_compat.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670_compat.kt index 187c04c7a18..7479fd3db5b 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670_compat.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670_compat.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_OLD_INFERENCE open class A(val value: T) diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.fir.kt index f54ca2ce975..7f99d37bbde 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.kt index 38cf41b468d..c25bea63184 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758_compat.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758_compat.fir.kt index b488722cef2..11bff181787 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758_compat.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758_compat.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_OLD_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758_compat.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758_compat.kt index d3726df733a..522128fc864 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758_compat.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758_compat.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_OLD_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/originalExamples.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/originalExamples.fir.kt index 9d84149bd57..aee74593c05 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/originalExamples.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/originalExamples.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object Right diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/originalExamples.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/originalExamples.kt index 1123643b69f..3f4980a13c6 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/originalExamples.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/originalExamples.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER object Right diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.fir.kt index a757322ceaf..a9b8e646898 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.kt index 32ff8d7df0b..c61a06997d6 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.fir.kt index ef9e1f8de6e..5fceb00561e 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_OLD_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.kt index fbf05b27471..2ae1cbf0c8a 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_OLD_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/withVariance.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/withVariance.fir.kt index f59daaf9445..885323d75e4 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/withVariance.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/withVariance.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE object X1 object X2 diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/withVariance.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/withVariance.kt index f73fc338e57..c91b1261e50 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/withVariance.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/withVariance.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE object X1 object X2 diff --git a/compiler/testData/diagnostics/tests/resolve/resolveWithSpecifiedFunctionLiteralWithId.kt b/compiler/testData/diagnostics/tests/resolve/resolveWithSpecifiedFunctionLiteralWithId.kt index 7244f734de2..77a09c57370 100644 --- a/compiler/testData/diagnostics/tests/resolve/resolveWithSpecifiedFunctionLiteralWithId.kt +++ b/compiler/testData/diagnostics/tests/resolve/resolveWithSpecifiedFunctionLiteralWithId.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE //If this test hangs, it means something is broken. package a diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/constantsInIf.fir.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/constantsInIf.fir.kt index 4929b83062d..14892d14db1 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/constantsInIf.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/constantsInIf.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -USELESS_ELVIS fun test() { diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/constantsInIf.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/constantsInIf.kt index ce19ae7b491..d38b8386b33 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/constantsInIf.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/constantsInIf.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -USELESS_ELVIS fun test() { diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/elvisAsCall.fir.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/elvisAsCall.fir.kt index 575c13f78ca..ecc4fe08214 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/elvisAsCall.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/elvisAsCall.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a interface A diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/elvisAsCall.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/elvisAsCall.kt index 6860fc3c516..862a731981c 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/elvisAsCall.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/elvisAsCall.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a interface A diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/exclExclAsCall.fir.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/exclExclAsCall.fir.kt index 29cee2c9fb8..9ab0c68ba6d 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/exclExclAsCall.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/exclExclAsCall.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a interface A diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/exclExclAsCall.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/exclExclAsCall.kt index 39388b96d04..1db39ad5555 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/exclExclAsCall.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/exclExclAsCall.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package a interface A diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.fir.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.fir.kt index c3fb5a6fcac..d552ecf374c 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE interface A diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.kt index 6462bff9bcd..11c23dfe05d 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE interface A diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.fir.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.fir.kt index 5af75bc0fb8..d4fb89d436f 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package b fun bar(i: Int) = i diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.kt index 9fecfc44b98..2c4d876bcec 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package b fun bar(i: Int) = i diff --git a/compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.fir.kt b/compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.fir.kt index 1e3a572e7c2..070fda67ea9 100644 --- a/compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun foo(t: T) = t diff --git a/compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.kt b/compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.kt index 9e73278a30e..613a6e6d025 100644 --- a/compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.kt +++ b/compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun foo(t: T) = t diff --git a/compiler/testData/diagnostics/tests/resolve/wrongReceiver.fir.kt b/compiler/testData/diagnostics/tests/resolve/wrongReceiver.fir.kt index ad2ea727ea5..d774c27cb25 100644 --- a/compiler/testData/diagnostics/tests/resolve/wrongReceiver.fir.kt +++ b/compiler/testData/diagnostics/tests/resolve/wrongReceiver.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package some class A() diff --git a/compiler/testData/diagnostics/tests/resolve/wrongReceiver.kt b/compiler/testData/diagnostics/tests/resolve/wrongReceiver.kt index 29afef1bca2..3207307bb62 100644 --- a/compiler/testData/diagnostics/tests/resolve/wrongReceiver.kt +++ b/compiler/testData/diagnostics/tests/resolve/wrongReceiver.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package some class A() diff --git a/compiler/testData/diagnostics/tests/safeCall.kt b/compiler/testData/diagnostics/tests/safeCall.kt index 3c822ca8f69..0a95578f330 100644 --- a/compiler/testData/diagnostics/tests/safeCall.kt +++ b/compiler/testData/diagnostics/tests/safeCall.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE fun f(s: String, action: (String.() -> Unit)?) { s.foo().bar().action() diff --git a/compiler/testData/diagnostics/tests/scopes/inheritance/methodsPriority.fir.kt b/compiler/testData/diagnostics/tests/scopes/inheritance/methodsPriority.fir.kt index 90e14f46766..a947edfa09e 100644 --- a/compiler/testData/diagnostics/tests/scopes/inheritance/methodsPriority.fir.kt +++ b/compiler/testData/diagnostics/tests/scopes/inheritance/methodsPriority.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: A.java public class A { diff --git a/compiler/testData/diagnostics/tests/scopes/inheritance/methodsPriority.kt b/compiler/testData/diagnostics/tests/scopes/inheritance/methodsPriority.kt index e969432d437..e5638ff3996 100644 --- a/compiler/testData/diagnostics/tests/scopes/inheritance/methodsPriority.kt +++ b/compiler/testData/diagnostics/tests/scopes/inheritance/methodsPriority.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: A.java public class A { diff --git a/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_after.fir.kt b/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_after.fir.kt index ac919c10d97..3d9630ec372 100644 --- a/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_after.fir.kt +++ b/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_after.fir.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ProhibitVisibilityOfNestedClassifiersFromSupertypesOfCompanion -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: J.java diff --git a/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_after.kt b/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_after.kt index 44224abe785..e35db78959c 100644 --- a/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_after.kt +++ b/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_after.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ProhibitVisibilityOfNestedClassifiersFromSupertypesOfCompanion -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: J.java diff --git a/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_before.fir.kt b/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_before.fir.kt index a4f8219498e..3e7feacf559 100644 --- a/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_before.fir.kt +++ b/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_before.fir.kt @@ -1,5 +1,4 @@ // !LANGUAGE: -ProhibitVisibilityOfNestedClassifiersFromSupertypesOfCompanion -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: J.java diff --git a/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_before.kt b/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_before.kt index fa1f16a60f9..16443216653 100644 --- a/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_before.kt +++ b/compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject/inheritFromContainingClass_before.kt @@ -1,5 +1,4 @@ // !LANGUAGE: -ProhibitVisibilityOfNestedClassifiersFromSupertypesOfCompanion -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: J.java diff --git a/compiler/testData/diagnostics/tests/scopes/inheritance/statics/localVsStatic.fir.kt b/compiler/testData/diagnostics/tests/scopes/inheritance/statics/localVsStatic.fir.kt index 38debd27bef..eca87ded82f 100644 --- a/compiler/testData/diagnostics/tests/scopes/inheritance/statics/localVsStatic.fir.kt +++ b/compiler/testData/diagnostics/tests/scopes/inheritance/statics/localVsStatic.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: A.java public class A { diff --git a/compiler/testData/diagnostics/tests/scopes/inheritance/statics/localVsStatic.kt b/compiler/testData/diagnostics/tests/scopes/inheritance/statics/localVsStatic.kt index 912bd91a5c3..b4be8f60f25 100644 --- a/compiler/testData/diagnostics/tests/scopes/inheritance/statics/localVsStatic.kt +++ b/compiler/testData/diagnostics/tests/scopes/inheritance/statics/localVsStatic.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: A.java public class A { diff --git a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/nonSuperCallConstructor.fir.kt b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/nonSuperCallConstructor.fir.kt index 2ab8196cd5d..1a1fc5669b5 100644 --- a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/nonSuperCallConstructor.fir.kt +++ b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/nonSuperCallConstructor.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER open class A protected constructor(x: Int) { diff --git a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/nonSuperCallConstructor.kt b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/nonSuperCallConstructor.kt index f467938fb1b..65fb3936ae6 100644 --- a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/nonSuperCallConstructor.kt +++ b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/nonSuperCallConstructor.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER open class A protected constructor(x: Int) { diff --git a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.fir.kt b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.fir.kt index 3eb7d22c743..442e01b09da 100644 --- a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.fir.kt +++ b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: abc/A.java package abc; public class A { diff --git a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.kt b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.kt index 11b9330481e..4775674e343 100644 --- a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.kt +++ b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: abc/A.java package abc; public class A { diff --git a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/unstableSmartCast.fir.kt b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/unstableSmartCast.fir.kt index afa407fe22f..de47b4d7ce6 100644 --- a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/unstableSmartCast.fir.kt +++ b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/unstableSmartCast.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE open class BaseOuter { protected fun foo() = 1 diff --git a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/unstableSmartCast.kt b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/unstableSmartCast.kt index b16e095a26a..980f769fc71 100644 --- a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/unstableSmartCast.kt +++ b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/unstableSmartCast.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE open class BaseOuter { protected fun foo() = 1 diff --git a/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.fir.kt b/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.fir.kt index 07592296bd7..710474c204b 100644 --- a/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.fir.kt +++ b/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // NI_EXPECTED_FILE class A(x: Int) { diff --git a/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.kt b/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.kt index b364924b1de..9b43b8ab38b 100644 --- a/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.kt +++ b/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // NI_EXPECTED_FILE class A(x: Int) { diff --git a/compiler/testData/diagnostics/tests/secondaryConstructors/generics2.fir.kt b/compiler/testData/diagnostics/tests/secondaryConstructors/generics2.fir.kt index 47870e18ba1..45c826f81ce 100644 --- a/compiler/testData/diagnostics/tests/secondaryConstructors/generics2.fir.kt +++ b/compiler/testData/diagnostics/tests/secondaryConstructors/generics2.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE open class B(x: R1, y: R2) class A0 { diff --git a/compiler/testData/diagnostics/tests/secondaryConstructors/generics2.kt b/compiler/testData/diagnostics/tests/secondaryConstructors/generics2.kt index aaa496a9499..2d8c42d330b 100644 --- a/compiler/testData/diagnostics/tests/secondaryConstructors/generics2.kt +++ b/compiler/testData/diagnostics/tests/secondaryConstructors/generics2.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE open class B(x: R1, y: R2) class A0 { diff --git a/compiler/testData/diagnostics/tests/secondaryConstructors/kt6993.fir.kt b/compiler/testData/diagnostics/tests/secondaryConstructors/kt6993.fir.kt index 4dfe5fc198e..b2a42af09d4 100644 --- a/compiler/testData/diagnostics/tests/secondaryConstructors/kt6993.fir.kt +++ b/compiler/testData/diagnostics/tests/secondaryConstructors/kt6993.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE class X(val t: T) { constructor(t: T, i: Int) : this(i) } diff --git a/compiler/testData/diagnostics/tests/secondaryConstructors/kt6993.kt b/compiler/testData/diagnostics/tests/secondaryConstructors/kt6993.kt index 868a5611a31..7c2f119757a 100644 --- a/compiler/testData/diagnostics/tests/secondaryConstructors/kt6993.kt +++ b/compiler/testData/diagnostics/tests/secondaryConstructors/kt6993.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE class X(val t: T) { constructor(t: T, i: Int) : this(i) } diff --git a/compiler/testData/diagnostics/tests/secondaryConstructors/return.fir.kt b/compiler/testData/diagnostics/tests/secondaryConstructors/return.fir.kt index 0e9f792a643..9fb85b4e5ee 100644 --- a/compiler/testData/diagnostics/tests/secondaryConstructors/return.fir.kt +++ b/compiler/testData/diagnostics/tests/secondaryConstructors/return.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A { init { return diff --git a/compiler/testData/diagnostics/tests/secondaryConstructors/return.kt b/compiler/testData/diagnostics/tests/secondaryConstructors/return.kt index 28315408a5a..e176b17792d 100644 --- a/compiler/testData/diagnostics/tests/secondaryConstructors/return.kt +++ b/compiler/testData/diagnostics/tests/secondaryConstructors/return.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class A { init { return diff --git a/compiler/testData/diagnostics/tests/secondaryConstructors/thisNonExisting.kt b/compiler/testData/diagnostics/tests/secondaryConstructors/thisNonExisting.kt index 23dee119533..f6e55f4d73f 100644 --- a/compiler/testData/diagnostics/tests/secondaryConstructors/thisNonExisting.kt +++ b/compiler/testData/diagnostics/tests/secondaryConstructors/thisNonExisting.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE class A { constructor(x: Int) {} diff --git a/compiler/testData/diagnostics/tests/smartCasts/alwaysNull.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/alwaysNull.fir.kt index b99e0b8be40..2db01d2ff39 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/alwaysNull.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/alwaysNull.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(): String { var s: String? s = null diff --git a/compiler/testData/diagnostics/tests/smartCasts/alwaysNull.kt b/compiler/testData/diagnostics/tests/smartCasts/alwaysNull.kt index 9e1d6a96f66..d382f90bc92 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/alwaysNull.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/alwaysNull.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(): String { var s: String? s = null diff --git a/compiler/testData/diagnostics/tests/smartCasts/alwaysNullWithJava.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/alwaysNullWithJava.fir.kt index 8e2f08fde2b..f731335719b 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/alwaysNullWithJava.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/alwaysNullWithJava.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: My.java public class My { diff --git a/compiler/testData/diagnostics/tests/smartCasts/alwaysNullWithJava.kt b/compiler/testData/diagnostics/tests/smartCasts/alwaysNullWithJava.kt index 6c6fd41b8cf..27f1855b0ed 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/alwaysNullWithJava.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/alwaysNullWithJava.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: My.java public class My { diff --git a/compiler/testData/diagnostics/tests/smartCasts/castchecks/variables.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/castchecks/variables.fir.kt index 2553f583b3e..cb1d9c85e32 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/castchecks/variables.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/castchecks/variables.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +SafeCastCheckBoundSmartCasts interface SomeClass { val data: Any? diff --git a/compiler/testData/diagnostics/tests/smartCasts/castchecks/variables.kt b/compiler/testData/diagnostics/tests/smartCasts/castchecks/variables.kt index b9e005b3ca9..02a71f401b9 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/castchecks/variables.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/castchecks/variables.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +SafeCastCheckBoundSmartCasts interface SomeClass { val data: Any? diff --git a/compiler/testData/diagnostics/tests/smartCasts/comparisonUnderAnd.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/comparisonUnderAnd.fir.kt index 7cb7444019d..ed3be9ec261 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/comparisonUnderAnd.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/comparisonUnderAnd.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(x : String?, y : String?) { if (y != null && x == y) { // Both not null diff --git a/compiler/testData/diagnostics/tests/smartCasts/comparisonUnderAnd.kt b/compiler/testData/diagnostics/tests/smartCasts/comparisonUnderAnd.kt index 3f386d860d5..3c76fa5cefd 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/comparisonUnderAnd.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/comparisonUnderAnd.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(x : String?, y : String?) { if (y != null && x == y) { // Both not null diff --git a/compiler/testData/diagnostics/tests/smartCasts/complexComparison.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/complexComparison.fir.kt index aa9eca4af42..60a8f9e3aea 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/complexComparison.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/complexComparison.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(x: String?, y: String?, z: String?, w: String?) { if (x != null && y != null && (x == z || y == z)) z.length diff --git a/compiler/testData/diagnostics/tests/smartCasts/complexComparison.kt b/compiler/testData/diagnostics/tests/smartCasts/complexComparison.kt index bed56cb0280..88ca7ecf7e3 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/complexComparison.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/complexComparison.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(x: String?, y: String?, z: String?, w: String?) { if (x != null && y != null && (x == z || y == z)) z.length diff --git a/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.fir.kt index cbce948f70f..dd4184904de 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +BooleanElvisBoundSmartCasts // See KT-20752 diff --git a/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.kt b/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.kt index 788f7950c63..dec370ba256 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +BooleanElvisBoundSmartCasts // See KT-20752 diff --git a/compiler/testData/diagnostics/tests/smartCasts/elvisExprNotNull.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/elvisExprNotNull.fir.kt index 5f6122d1c34..e3125bc9c89 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/elvisExprNotNull.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/elvisExprNotNull.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(s: Any?): String { val t = when { // To resolve: String U Nothing? = String? diff --git a/compiler/testData/diagnostics/tests/smartCasts/elvisExprNotNull.kt b/compiler/testData/diagnostics/tests/smartCasts/elvisExprNotNull.kt index 64769d9391d..3c6ccd65658 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/elvisExprNotNull.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/elvisExprNotNull.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(s: Any?): String { val t = when { // To resolve: String U Nothing? = String? diff --git a/compiler/testData/diagnostics/tests/smartCasts/explicitDefaultGetter.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/explicitDefaultGetter.fir.kt index 9b688c538ed..8260ab810b9 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/explicitDefaultGetter.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/explicitDefaultGetter.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class ExplicitAccessorForAnnotation { val tt: String? = "good" get diff --git a/compiler/testData/diagnostics/tests/smartCasts/explicitDefaultGetter.kt b/compiler/testData/diagnostics/tests/smartCasts/explicitDefaultGetter.kt index 30710c6791b..82fc66eb9e4 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/explicitDefaultGetter.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/explicitDefaultGetter.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class ExplicitAccessorForAnnotation { val tt: String? = "good" get diff --git a/compiler/testData/diagnostics/tests/smartCasts/inference/intersectionTypes.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/inference/intersectionTypes.fir.kt index 4a40d9e72ff..e178b19097c 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/inference/intersectionTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/inference/intersectionTypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package a diff --git a/compiler/testData/diagnostics/tests/smartCasts/inference/intersectionTypes.kt b/compiler/testData/diagnostics/tests/smartCasts/inference/intersectionTypes.kt index 02f9cd386a5..ebe4201b4c2 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/inference/intersectionTypes.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/inference/intersectionTypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE package a diff --git a/compiler/testData/diagnostics/tests/smartCasts/inference/kt25432.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/inference/kt25432.fir.kt index 0349104af9f..fad47bd5e27 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/inference/kt25432.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/inference/kt25432.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // ISSUE: KT-25432 class Data(val s: T) diff --git a/compiler/testData/diagnostics/tests/smartCasts/inference/kt25432.kt b/compiler/testData/diagnostics/tests/smartCasts/inference/kt25432.kt index 1899bc29b10..b2d3ee0c6b8 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/inference/kt25432.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/inference/kt25432.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // ISSUE: KT-25432 class Data(val s: T) diff --git a/compiler/testData/diagnostics/tests/smartCasts/inference/kt29767.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/inference/kt29767.fir.kt index ea2aa47e601..f9e4a0bac51 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/inference/kt29767.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/inference/kt29767.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // ISSUE: KT-29767 fun test(a: MutableList?) { diff --git a/compiler/testData/diagnostics/tests/smartCasts/inference/kt29767.kt b/compiler/testData/diagnostics/tests/smartCasts/inference/kt29767.kt index ccf8d6892a2..a74e92e5c06 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/inference/kt29767.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/inference/kt29767.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // ISSUE: KT-29767 fun test(a: MutableList?) { diff --git a/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/flexibleTypes.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/flexibleTypes.fir.kt index d39c76a1bd0..7a7b58fac91 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/flexibleTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/flexibleTypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: A.java public interface A { diff --git a/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/flexibleTypes.kt b/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/flexibleTypes.kt index cc13a0c6bc4..c01162d7617 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/flexibleTypes.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/flexibleTypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: A.java public interface A { diff --git a/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/unstableSmartCast.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/unstableSmartCast.fir.kt index 5f772e95754..e6af93cd7ea 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/unstableSmartCast.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/unstableSmartCast.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE interface A { diff --git a/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/unstableSmartCast.kt b/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/unstableSmartCast.kt index ac1fb2d44fb..e8db585a64d 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/unstableSmartCast.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/unstableSmartCast.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE interface A { diff --git a/compiler/testData/diagnostics/tests/smartCasts/kt10444.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/kt10444.fir.kt index 97af8b97801..4845fcb6bf3 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/kt10444.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/kt10444.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // KT-10444 Do not ignore smart (unchecked) casts to the same classifier diff --git a/compiler/testData/diagnostics/tests/smartCasts/kt10444.kt b/compiler/testData/diagnostics/tests/smartCasts/kt10444.kt index bf336d36415..3ab7acc1663 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/kt10444.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/kt10444.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // KT-10444 Do not ignore smart (unchecked) casts to the same classifier diff --git a/compiler/testData/diagnostics/tests/smartCasts/kt2865.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/kt2865.fir.kt index 901cbc1fb40..d2054b445df 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/kt2865.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/kt2865.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE operator fun MutableMap.set(k: K, v: V) {} fun foo(a: MutableMap, x: String?) { diff --git a/compiler/testData/diagnostics/tests/smartCasts/kt2865.kt b/compiler/testData/diagnostics/tests/smartCasts/kt2865.kt index ec7305cbef6..e5ce6450bff 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/kt2865.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/kt2865.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE operator fun MutableMap.set(k: K, v: V) {} fun foo(a: MutableMap, x: String?) { diff --git a/compiler/testData/diagnostics/tests/smartCasts/kt30826.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/kt30826.fir.kt index e61914a5daf..4973743f7e7 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/kt30826.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/kt30826.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // Issue: KT-30826 interface I1 diff --git a/compiler/testData/diagnostics/tests/smartCasts/kt30826.kt b/compiler/testData/diagnostics/tests/smartCasts/kt30826.kt index e501dc31090..6435ab642ee 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/kt30826.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/kt30826.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // Issue: KT-30826 interface I1 diff --git a/compiler/testData/diagnostics/tests/smartCasts/kt30927.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/kt30927.fir.kt index c6d8c192664..041e7943e43 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/kt30927.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/kt30927.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION -// !WITH_NEW_INFERENCE // !CHECK_TYPE fun case_0() { diff --git a/compiler/testData/diagnostics/tests/smartCasts/kt30927.kt b/compiler/testData/diagnostics/tests/smartCasts/kt30927.kt index 6d6c6e044c2..4caf76f6d28 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/kt30927.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/kt30927.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION -// !WITH_NEW_INFERENCE // !CHECK_TYPE fun case_0() { diff --git a/compiler/testData/diagnostics/tests/smartCasts/lambdaArgumentWithBoundWithoutType.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/lambdaArgumentWithBoundWithoutType.fir.kt index ab39cb96649..999430d18c2 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/lambdaArgumentWithBoundWithoutType.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/lambdaArgumentWithBoundWithoutType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface Foo interface Bar : Foo diff --git a/compiler/testData/diagnostics/tests/smartCasts/lambdaArgumentWithBoundWithoutType.kt b/compiler/testData/diagnostics/tests/smartCasts/lambdaArgumentWithBoundWithoutType.kt index f4d231d2d0f..0e6ac8e12f0 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/lambdaArgumentWithBoundWithoutType.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/lambdaArgumentWithBoundWithoutType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE interface Foo interface Bar : Foo diff --git a/compiler/testData/diagnostics/tests/smartCasts/localFunChanges.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/localFunChanges.fir.kt index 65a464945d2..a844c9e3207 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/localFunChanges.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/localFunChanges.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun trans(n: Int, f: () -> Boolean) = if (f()) n else null fun foo() { diff --git a/compiler/testData/diagnostics/tests/smartCasts/localFunChanges.kt b/compiler/testData/diagnostics/tests/smartCasts/localFunChanges.kt index c999b0d0786..c3d6717fdb1 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/localFunChanges.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/localFunChanges.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun trans(n: Int, f: () -> Boolean) = if (f()) n else null fun foo() { diff --git a/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/captured.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/captured.fir.kt index e720d23fd1e..6b8fea6295e 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/captured.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/captured.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE abstract class Runnable { abstract fun run() } diff --git a/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/captured.kt b/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/captured.kt index 3a212020d76..c3db758b8cd 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/captured.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/captured.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE abstract class Runnable { abstract fun run() } diff --git a/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/exclexcl.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/exclexcl.fir.kt index 3fd3429e133..2a0533ed8bb 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/exclexcl.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/exclexcl.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE abstract class Runnable { abstract fun run() } diff --git a/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/exclexcl.kt b/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/exclexcl.kt index 0ab702ecc3d..7cd2a3f5ae9 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/exclexcl.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/objectLiterals/exclexcl.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE abstract class Runnable { abstract fun run() } diff --git a/compiler/testData/diagnostics/tests/smartCasts/propertyToNotNull.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/propertyToNotNull.fir.kt index a7f7a154349..f14a192a0df 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/propertyToNotNull.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/propertyToNotNull.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class Immutable(val x: String?) { fun foo(): String { if (x != null) return x diff --git a/compiler/testData/diagnostics/tests/smartCasts/propertyToNotNull.kt b/compiler/testData/diagnostics/tests/smartCasts/propertyToNotNull.kt index 412d720a42b..ea7b2718112 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/propertyToNotNull.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/propertyToNotNull.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class Immutable(val x: String?) { fun foo(): String { if (x != null) return x diff --git a/compiler/testData/diagnostics/tests/smartCasts/publicVals/delegate.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/publicVals/delegate.fir.kt index e589ef8a50a..ee146be949d 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/publicVals/delegate.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/publicVals/delegate.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import kotlin.reflect.KProperty class Delegate { diff --git a/compiler/testData/diagnostics/tests/smartCasts/publicVals/delegate.kt b/compiler/testData/diagnostics/tests/smartCasts/publicVals/delegate.kt index db465a5178c..c7a0cc99951 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/publicVals/delegate.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/publicVals/delegate.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import kotlin.reflect.KProperty class Delegate { diff --git a/compiler/testData/diagnostics/tests/smartCasts/safecalls/anotherVal.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/safecalls/anotherVal.fir.kt index d66fc29153c..64abd35132c 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/safecalls/anotherVal.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/safecalls/anotherVal.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun calc(x: List?, y: Int?): Int { x?.get(y!! - 1) diff --git a/compiler/testData/diagnostics/tests/smartCasts/safecalls/anotherVal.kt b/compiler/testData/diagnostics/tests/smartCasts/safecalls/anotherVal.kt index a8da3729430..cf6b51ea559 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/safecalls/anotherVal.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/safecalls/anotherVal.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun calc(x: List?, y: Int?): Int { x?.get(y!! - 1) diff --git a/compiler/testData/diagnostics/tests/smartCasts/safecalls/falseSecondArgument.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/safecalls/falseSecondArgument.fir.kt index f86d085ad71..06912594cf7 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/safecalls/falseSecondArgument.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/safecalls/falseSecondArgument.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun calc(x: List?, y: Int?): Int { x?.subList(y!! - 1, y) diff --git a/compiler/testData/diagnostics/tests/smartCasts/safecalls/falseSecondArgument.kt b/compiler/testData/diagnostics/tests/smartCasts/safecalls/falseSecondArgument.kt index 3a975a23af6..c122355fb57 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/safecalls/falseSecondArgument.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/safecalls/falseSecondArgument.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun calc(x: List?, y: Int?): Int { x?.subList(y!! - 1, y) diff --git a/compiler/testData/diagnostics/tests/smartCasts/safecalls/receiverAndChainFalse.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/safecalls/receiverAndChainFalse.fir.kt index 149459a15ca..c76caf13a39 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/safecalls/receiverAndChainFalse.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/safecalls/receiverAndChainFalse.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(x: String): String? = x diff --git a/compiler/testData/diagnostics/tests/smartCasts/safecalls/receiverAndChainFalse.kt b/compiler/testData/diagnostics/tests/smartCasts/safecalls/receiverAndChainFalse.kt index 7adff29007f..62085019793 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/safecalls/receiverAndChainFalse.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/safecalls/receiverAndChainFalse.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(x: String): String? = x diff --git a/compiler/testData/diagnostics/tests/smartCasts/typeInComparison.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/typeInComparison.fir.kt index d2481f8146e..06d697dbb9d 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/typeInComparison.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/typeInComparison.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(): Int { val x: Any? = null val y = 2 diff --git a/compiler/testData/diagnostics/tests/smartCasts/typeInComparison.kt b/compiler/testData/diagnostics/tests/smartCasts/typeInComparison.kt index eefbcaff5b2..0d6d059b265 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/typeInComparison.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/typeInComparison.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(): Int { val x: Any? = null val y = 2 diff --git a/compiler/testData/diagnostics/tests/smartCasts/variables/ifNullAssignment.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/variables/ifNullAssignment.fir.kt index 6cf1fc73b07..ee7a1e9b940 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/variables/ifNullAssignment.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/variables/ifNullAssignment.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See KT-13468, KT-13765 fun basic(): String { diff --git a/compiler/testData/diagnostics/tests/smartCasts/variables/ifNullAssignment.kt b/compiler/testData/diagnostics/tests/smartCasts/variables/ifNullAssignment.kt index 0f0bd5b8dbf..7ca923d2eb0 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/variables/ifNullAssignment.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/variables/ifNullAssignment.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See KT-13468, KT-13765 fun basic(): String { diff --git a/compiler/testData/diagnostics/tests/smartCasts/variables/lambdaBetweenArguments.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/variables/lambdaBetweenArguments.fir.kt index 470ad17d171..da5b098c670 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/variables/lambdaBetweenArguments.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/variables/lambdaBetweenArguments.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun foo(x: Int, f: () -> Unit, y: Int) {} diff --git a/compiler/testData/diagnostics/tests/smartCasts/variables/lambdaBetweenArguments.kt b/compiler/testData/diagnostics/tests/smartCasts/variables/lambdaBetweenArguments.kt index c966f96e050..c80306e473d 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/variables/lambdaBetweenArguments.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/variables/lambdaBetweenArguments.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER fun foo(x: Int, f: () -> Unit, y: Int) {} diff --git a/compiler/testData/diagnostics/tests/smartCasts/variables/property.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/variables/property.fir.kt index a98e9f3fe82..77f5ef0e154 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/variables/property.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/variables/property.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class MyClass(var p: String?) fun bar(s: String): Int { diff --git a/compiler/testData/diagnostics/tests/smartCasts/variables/property.kt b/compiler/testData/diagnostics/tests/smartCasts/variables/property.kt index 1b734d49bd8..751bffeea33 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/variables/property.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/variables/property.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class MyClass(var p: String?) fun bar(s: String): Int { diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/assignment.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/assignment.fir.kt index bf4e3e6e11e..d9d81830f51 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/assignment.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/assignment.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo() { var v: String? = null v.length diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/assignment.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/assignment.kt index c3ee5db2cc0..fc8eaf4e00d 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/assignment.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/assignment.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo() { var v: String? = null v.length diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/boundInitializerWrong.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/boundInitializerWrong.fir.kt index 07ee21341b6..73fd3227a42 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/boundInitializerWrong.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/boundInitializerWrong.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-15792 and related fun foo() { diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/boundInitializerWrong.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/boundInitializerWrong.kt index 49b7e95df7f..c6478189d1b 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/boundInitializerWrong.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/boundInitializerWrong.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-15792 and related fun foo() { diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEach.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEach.fir.kt index e3f6e3cce53..e6496ca82c4 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEach.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEach.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE data class SomeObject(val n: SomeObject?) { fun doSomething() {} fun next(): SomeObject? = n diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEach.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEach.kt index 3506cfcb632..99460ce9520 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEach.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEach.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE data class SomeObject(val n: SomeObject?) { fun doSomething() {} fun next(): SomeObject? = n diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithBreak.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithBreak.fir.kt index 21b0471ef68..c6b7644e93b 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithBreak.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithBreak.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE data class SomeObject(val n: SomeObject?) { fun doSomething() {} fun next(): SomeObject? = n diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithBreak.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithBreak.kt index 7516bcd91d0..89510103255 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithBreak.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithBreak.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE data class SomeObject(val n: SomeObject?) { fun doSomething() {} fun next(): SomeObject? = n diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithContinue.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithContinue.fir.kt index 81441d3d79c..edba4fb2a97 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithContinue.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithContinue.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE data class SomeObject(val n: SomeObject?) { fun doSomething() {} fun next(): SomeObject? = n diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithContinue.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithContinue.kt index 2a779baae76..540dc379650 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithContinue.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/forEachWithContinue.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE data class SomeObject(val n: SomeObject?) { fun doSomething() {} fun next(): SomeObject? = n diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initInTryReturnInCatch.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initInTryReturnInCatch.fir.kt index 6885f08f2de..6aec92ff47a 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initInTryReturnInCatch.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initInTryReturnInCatch.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // JAVAC_EXPECTED_FILE // See also KT-10735 fun test() { diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initInTryReturnInCatch.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initInTryReturnInCatch.kt index a591436706c..00d2269a78e 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initInTryReturnInCatch.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initInTryReturnInCatch.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // JAVAC_EXPECTED_FILE // See also KT-10735 fun test() { diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.fir.kt index 0b14f9a664a..b1bbc823964 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo() { var v: String? = "xyz" // It is possible in principle to provide smart cast here diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt index 3bf5394913e..567d8290789 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo() { var v: String? = "xyz" // It is possible in principle to provide smart cast here diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.fir.kt index 169ccfa437c..a4e834e56b9 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(arg: Int?): Int { var i = arg if (i != null && i++ == 5) { diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.kt index cac789a2e71..1cc64980ac5 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(arg: Int?): Int { var i = arg if (i != null && i++ == 5) { diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/postfixNotnullClassIncrement.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/postfixNotnullClassIncrement.fir.kt index b7520e5f0b1..e30d81bdc68 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/postfixNotnullClassIncrement.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/postfixNotnullClassIncrement.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class MyClass operator fun MyClass.inc(): MyClass { return null!! } diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/postfixNotnullClassIncrement.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/postfixNotnullClassIncrement.kt index b23cf17ff87..9596d64a6d8 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/postfixNotnullClassIncrement.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/postfixNotnullClassIncrement.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class MyClass operator fun MyClass.inc(): MyClass { return null!! } diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/prefixNotnullClassIncrement.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/prefixNotnullClassIncrement.fir.kt index 9193fee27ef..0f48fd3aade 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/prefixNotnullClassIncrement.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/prefixNotnullClassIncrement.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class MyClass operator fun MyClass.inc(): MyClass { return null!! } diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/prefixNotnullClassIncrement.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/prefixNotnullClassIncrement.kt index f31b9849399..85c2e48241a 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/prefixNotnullClassIncrement.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/prefixNotnullClassIncrement.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class MyClass operator fun MyClass.inc(): MyClass { return null!! } diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/unnecessaryWithMap.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/unnecessaryWithMap.fir.kt index 2383d0367d1..5c1d3cd0bd3 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/unnecessaryWithMap.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/unnecessaryWithMap.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun create(): Map = null!! diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/unnecessaryWithMap.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/unnecessaryWithMap.kt index 696a1d23866..913020fcebd 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/unnecessaryWithMap.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/unnecessaryWithMap.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun create(): Map = null!! diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varCapturedInInlineClosure.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varCapturedInInlineClosure.fir.kt index 009054c8de9..2eeb814a921 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varCapturedInInlineClosure.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varCapturedInInlineClosure.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See also KT-7186 fun IntArray.forEachIndexed( op: (i: Int, value: Int) -> Unit) { diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varCapturedInInlineClosure.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varCapturedInInlineClosure.kt index 91cfdaff869..921a5beb588 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varCapturedInInlineClosure.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varCapturedInInlineClosure.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See also KT-7186 fun IntArray.forEachIndexed( op: (i: Int, value: Int) -> Unit) { diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varIntNull.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varIntNull.fir.kt index 078a6734872..521e424a20c 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varIntNull.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varIntNull.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(): Int { var i: Int? = 42 i = null diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varIntNull.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varIntNull.kt index a23c1b027c9..cc8df087fd7 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varIntNull.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varIntNull.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(): Int { var i: Int? = 42 i = null diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varNull.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varNull.fir.kt index 73fbbe41bbd..3f294a50215 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varNull.fir.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varNull.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(): Int { var s: String? = "abc" s = null diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varNull.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varNull.kt index 91ed7e8410d..2977569c52f 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varNull.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varNull.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(): Int { var s: String? = "abc" s = null diff --git a/compiler/testData/diagnostics/tests/substitutions/starProjections.fir.kt b/compiler/testData/diagnostics/tests/substitutions/starProjections.fir.kt index 70d7a52c781..5738953c8c6 100644 --- a/compiler/testData/diagnostics/tests/substitutions/starProjections.fir.kt +++ b/compiler/testData/diagnostics/tests/substitutions/starProjections.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE interface A> { diff --git a/compiler/testData/diagnostics/tests/substitutions/starProjections.kt b/compiler/testData/diagnostics/tests/substitutions/starProjections.kt index 185071aec6e..be80ee9407f 100644 --- a/compiler/testData/diagnostics/tests/substitutions/starProjections.kt +++ b/compiler/testData/diagnostics/tests/substitutions/starProjections.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE interface A> { diff --git a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.fir.kt b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.fir.kt index bbe6bcc0bbf..b381cd916ee 100644 --- a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.fir.kt +++ b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: foo.kt package foo diff --git a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt index cae112dc688..1a775a5d913 100644 --- a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt +++ b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: foo.kt package foo diff --git a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.fir.kt b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.fir.kt index 92fd0a5ef67..5bd52843497 100644 --- a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -CONFLICTING_JVM_DECLARATIONS -UNUSED_PARAMETER fun f1(l: List1): T {throw Exception()} // ERROR type here fun f1(l: List2): T {throw Exception()} // ERROR type here diff --git a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.kt b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.kt index b4462ae3337..6f3a22c6407 100644 --- a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.kt +++ b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -CONFLICTING_JVM_DECLARATIONS -UNUSED_PARAMETER fun f1(l: List1): T {throw Exception()} // ERROR type here fun f1(l: List2): T {throw Exception()} // ERROR type here diff --git a/compiler/testData/diagnostics/tests/subtyping/localClasses.fir.kt b/compiler/testData/diagnostics/tests/subtyping/localClasses.fir.kt index 9e1ef9ad01b..50d9f5e2078 100644 --- a/compiler/testData/diagnostics/tests/subtyping/localClasses.fir.kt +++ b/compiler/testData/diagnostics/tests/subtyping/localClasses.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER package p diff --git a/compiler/testData/diagnostics/tests/subtyping/localClasses.kt b/compiler/testData/diagnostics/tests/subtyping/localClasses.kt index 8f116ad0686..c26c039cf5e 100644 --- a/compiler/testData/diagnostics/tests/subtyping/localClasses.kt +++ b/compiler/testData/diagnostics/tests/subtyping/localClasses.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER package p diff --git a/compiler/testData/diagnostics/tests/subtyping/nestedIntoLocalClasses.fir.kt b/compiler/testData/diagnostics/tests/subtyping/nestedIntoLocalClasses.fir.kt index 272f03cc3ad..be1a3dbcd12 100644 --- a/compiler/testData/diagnostics/tests/subtyping/nestedIntoLocalClasses.fir.kt +++ b/compiler/testData/diagnostics/tests/subtyping/nestedIntoLocalClasses.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER package p diff --git a/compiler/testData/diagnostics/tests/subtyping/nestedIntoLocalClasses.kt b/compiler/testData/diagnostics/tests/subtyping/nestedIntoLocalClasses.kt index 53d549c771c..8c120f25fa6 100644 --- a/compiler/testData/diagnostics/tests/subtyping/nestedIntoLocalClasses.kt +++ b/compiler/testData/diagnostics/tests/subtyping/nestedIntoLocalClasses.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER package p diff --git a/compiler/testData/diagnostics/tests/subtyping/nestedLocalClasses.fir.kt b/compiler/testData/diagnostics/tests/subtyping/nestedLocalClasses.fir.kt index ace431c0c07..3ca77160403 100644 --- a/compiler/testData/diagnostics/tests/subtyping/nestedLocalClasses.fir.kt +++ b/compiler/testData/diagnostics/tests/subtyping/nestedLocalClasses.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER package p diff --git a/compiler/testData/diagnostics/tests/subtyping/nestedLocalClasses.kt b/compiler/testData/diagnostics/tests/subtyping/nestedLocalClasses.kt index ec238c908a8..96f77f0a5c0 100644 --- a/compiler/testData/diagnostics/tests/subtyping/nestedLocalClasses.kt +++ b/compiler/testData/diagnostics/tests/subtyping/nestedLocalClasses.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER package p diff --git a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/InnerClassInGeneric.fir.kt b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/InnerClassInGeneric.fir.kt index 2b796b31498..bd0bbc059e5 100644 --- a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/InnerClassInGeneric.fir.kt +++ b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/InnerClassInGeneric.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: KotlinFile.kt fun foo(javaClass: JavaClass): Int { val inner = javaClass.createInner() diff --git a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/InnerClassInGeneric.kt b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/InnerClassInGeneric.kt index 9577f65917d..8060cdab343 100644 --- a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/InnerClassInGeneric.kt +++ b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/InnerClassInGeneric.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: KotlinFile.kt fun foo(javaClass: JavaClass): Int { val inner = javaClass.createInner() diff --git a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/NoNamedArgsAllowed.kt b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/NoNamedArgsAllowed.kt index f91a4e7d6ae..4104cae1d8b 100644 --- a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/NoNamedArgsAllowed.kt +++ b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/NoNamedArgsAllowed.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // FILE: KotlinFile.kt fun foo(javaClass: JavaClass) { javaClass.doSomething(p = 1) { diff --git a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/ParameterTypeAnnotation.kt b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/ParameterTypeAnnotation.kt index a5080f928f4..32fd3132948 100644 --- a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/ParameterTypeAnnotation.kt +++ b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/ParameterTypeAnnotation.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // FILE: KotlinFile.kt fun foo(javaInterface: JavaInterface) { javaInterface.doIt(null) { } diff --git a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/Private.fir.kt b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/Private.fir.kt index 96af786732e..b5028a18676 100644 --- a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/Private.fir.kt +++ b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/Private.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: KotlinFile.kt fun foo(javaClass: JavaClass) { javaClass.doSomething { } diff --git a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/Private.kt b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/Private.kt index 9de8a5382e9..1d1f9804e89 100644 --- a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/Private.kt +++ b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/Private.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: KotlinFile.kt fun foo(javaClass: JavaClass) { javaClass.doSomething { } diff --git a/compiler/testData/diagnostics/tests/targetedBuiltIns/concurrentMapRemove.fir.kt b/compiler/testData/diagnostics/tests/targetedBuiltIns/concurrentMapRemove.fir.kt index 17fca7ffac3..eb6adfc0c34 100644 --- a/compiler/testData/diagnostics/tests/targetedBuiltIns/concurrentMapRemove.fir.kt +++ b/compiler/testData/diagnostics/tests/targetedBuiltIns/concurrentMapRemove.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FULL_JDK import java.util.concurrent.* diff --git a/compiler/testData/diagnostics/tests/targetedBuiltIns/concurrentMapRemove.kt b/compiler/testData/diagnostics/tests/targetedBuiltIns/concurrentMapRemove.kt index a241bdce431..23ac45b6830 100644 --- a/compiler/testData/diagnostics/tests/targetedBuiltIns/concurrentMapRemove.kt +++ b/compiler/testData/diagnostics/tests/targetedBuiltIns/concurrentMapRemove.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FULL_JDK import java.util.concurrent.* diff --git a/compiler/testData/diagnostics/tests/targetedBuiltIns/mutableMapRemove.fir.kt b/compiler/testData/diagnostics/tests/targetedBuiltIns/mutableMapRemove.fir.kt index 486557a4fce..bf126b412d9 100644 --- a/compiler/testData/diagnostics/tests/targetedBuiltIns/mutableMapRemove.fir.kt +++ b/compiler/testData/diagnostics/tests/targetedBuiltIns/mutableMapRemove.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -PARAMETER_NAME_CHANGED_ON_OVERRIDE -// !WITH_NEW_INFERENCE // FULL_JDK class KotlinMap1 : java.util.AbstractMap() { diff --git a/compiler/testData/diagnostics/tests/targetedBuiltIns/mutableMapRemove.kt b/compiler/testData/diagnostics/tests/targetedBuiltIns/mutableMapRemove.kt index 40016362b96..b0a4a912026 100644 --- a/compiler/testData/diagnostics/tests/targetedBuiltIns/mutableMapRemove.kt +++ b/compiler/testData/diagnostics/tests/targetedBuiltIns/mutableMapRemove.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -PARAMETER_NAME_CHANGED_ON_OVERRIDE -// !WITH_NEW_INFERENCE // FULL_JDK class KotlinMap1 : java.util.AbstractMap() { diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.fir.kt b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.fir.kt index 533cd0a0fe3..1cf25b6a047 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.fir.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE open class GenericBaseClass { open fun foo(x: T): T = x open fun ambiguous(x: T): T = x diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.kt b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.kt index 1843a358cba..1f3c2ecde08 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE open class GenericBaseClass { open fun foo(x: T): T = x open fun ambiguous(x: T): T = x diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.fir.kt b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.fir.kt index b1737bd4527..a66da2b01ac 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.fir.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // Ambiguity between fun and callable property open class BaseWithCallableProp { diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.kt b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.kt index 39b17224993..46f00d11e68 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // Ambiguity between fun and callable property open class BaseWithCallableProp { diff --git a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingInReturnPosition.fir.kt b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingInReturnPosition.fir.kt index 3c98b57eacf..d7962a6e56e 100644 --- a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingInReturnPosition.fir.kt +++ b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingInReturnPosition.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -UNCHECKED_CAST -// !WITH_NEW_INFERENCE // SKIP_TXT // Issue: KT-20849 diff --git a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingInReturnPosition.kt b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingInReturnPosition.kt index 1a8c99b9c79..a0a8bf37a92 100644 --- a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingInReturnPosition.kt +++ b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingInReturnPosition.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -UNCHECKED_CAST -// !WITH_NEW_INFERENCE // SKIP_TXT // Issue: KT-20849 diff --git a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingOnDelegates.fir.kt b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingOnDelegates.fir.kt index 836fdbb4e77..1dd40d52c65 100644 --- a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingOnDelegates.fir.kt +++ b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingOnDelegates.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNCHECKED_CAST -// !WITH_NEW_INFERENCE // WITH_RUNTIME // WITH_REFLECT // SKIP_TXT diff --git a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingOnDelegates.kt b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingOnDelegates.kt index c21d0bbe30b..113f8b69116 100644 --- a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingOnDelegates.kt +++ b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingOnDelegates.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNCHECKED_CAST -// !WITH_NEW_INFERENCE // WITH_RUNTIME // WITH_REFLECT // SKIP_TXT diff --git a/compiler/testData/diagnostics/tests/typealias/boundViolationInTypeAliasConstructor.fir.kt b/compiler/testData/diagnostics/tests/typealias/boundViolationInTypeAliasConstructor.fir.kt index 121f705be3a..7699ca8a113 100644 --- a/compiler/testData/diagnostics/tests/typealias/boundViolationInTypeAliasConstructor.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/boundViolationInTypeAliasConstructor.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class Num(val x: T) typealias N = Num diff --git a/compiler/testData/diagnostics/tests/typealias/boundViolationInTypeAliasConstructor.kt b/compiler/testData/diagnostics/tests/typealias/boundViolationInTypeAliasConstructor.kt index 9e236b31464..7bd2a7f3130 100644 --- a/compiler/testData/diagnostics/tests/typealias/boundViolationInTypeAliasConstructor.kt +++ b/compiler/testData/diagnostics/tests/typealias/boundViolationInTypeAliasConstructor.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE class Num(val x: T) typealias N = Num diff --git a/compiler/testData/diagnostics/tests/typealias/boundsViolationInDeepTypeAliasExpansion.fir.kt b/compiler/testData/diagnostics/tests/typealias/boundsViolationInDeepTypeAliasExpansion.fir.kt index c868b92be74..a597dc04782 100644 --- a/compiler/testData/diagnostics/tests/typealias/boundsViolationInDeepTypeAliasExpansion.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/boundsViolationInDeepTypeAliasExpansion.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER class TColl> diff --git a/compiler/testData/diagnostics/tests/typealias/boundsViolationInDeepTypeAliasExpansion.kt b/compiler/testData/diagnostics/tests/typealias/boundsViolationInDeepTypeAliasExpansion.kt index fcf532a4be2..ad38c5b85db 100644 --- a/compiler/testData/diagnostics/tests/typealias/boundsViolationInDeepTypeAliasExpansion.kt +++ b/compiler/testData/diagnostics/tests/typealias/boundsViolationInDeepTypeAliasExpansion.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER class TColl> diff --git a/compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasExpansion.fir.kt b/compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasExpansion.fir.kt index 5b2b448a9dd..0f44913f3b9 100644 --- a/compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasExpansion.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasExpansion.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER class Num diff --git a/compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasExpansion.kt b/compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasExpansion.kt index 66998fd9bfe..0abf9708a82 100644 --- a/compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasExpansion.kt +++ b/compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasExpansion.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER class Num diff --git a/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructor.fir.kt b/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructor.fir.kt index 3fd7f4dd2ba..470c1e142c6 100644 --- a/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructor.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructor.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Outer { diff --git a/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructor.kt b/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructor.kt index 3a8bc36da99..70599f8c1fa 100644 --- a/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructor.kt +++ b/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructor.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Outer { diff --git a/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructorInSupertypes.fir.kt b/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructorInSupertypes.fir.kt index 6a5c43d9c55..556d3a92904 100644 --- a/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructorInSupertypes.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructorInSupertypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package test typealias OI = Outer.Inner diff --git a/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructorInSupertypes.kt b/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructorInSupertypes.kt index dc9e4b2b674..d4afb618214 100644 --- a/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructorInSupertypes.kt +++ b/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructorInSupertypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE package test typealias OI = Outer.Inner diff --git a/compiler/testData/diagnostics/tests/typealias/innerTypeAliasConstructor.fir.kt b/compiler/testData/diagnostics/tests/typealias/innerTypeAliasConstructor.fir.kt index f2e054d434f..cd666e9285d 100644 --- a/compiler/testData/diagnostics/tests/typealias/innerTypeAliasConstructor.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/innerTypeAliasConstructor.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -TOPLEVEL_TYPEALIASES_ONLY class Pair(val x: X, val y: Y) diff --git a/compiler/testData/diagnostics/tests/typealias/innerTypeAliasConstructor.kt b/compiler/testData/diagnostics/tests/typealias/innerTypeAliasConstructor.kt index 9aec6936a4f..9280bcf6801 100644 --- a/compiler/testData/diagnostics/tests/typealias/innerTypeAliasConstructor.kt +++ b/compiler/testData/diagnostics/tests/typealias/innerTypeAliasConstructor.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -TOPLEVEL_TYPEALIASES_ONLY class Pair(val x: X, val y: Y) diff --git a/compiler/testData/diagnostics/tests/typealias/noApproximationInTypeAliasArgumentSubstitution.fir.kt b/compiler/testData/diagnostics/tests/typealias/noApproximationInTypeAliasArgumentSubstitution.fir.kt index b0081a293f8..c41acf2623a 100644 --- a/compiler/testData/diagnostics/tests/typealias/noApproximationInTypeAliasArgumentSubstitution.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/noApproximationInTypeAliasArgumentSubstitution.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE typealias Array2D = Array> diff --git a/compiler/testData/diagnostics/tests/typealias/noApproximationInTypeAliasArgumentSubstitution.kt b/compiler/testData/diagnostics/tests/typealias/noApproximationInTypeAliasArgumentSubstitution.kt index b8651e1dfaf..32f344d14c4 100644 --- a/compiler/testData/diagnostics/tests/typealias/noApproximationInTypeAliasArgumentSubstitution.kt +++ b/compiler/testData/diagnostics/tests/typealias/noApproximationInTypeAliasArgumentSubstitution.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE typealias Array2D = Array> diff --git a/compiler/testData/diagnostics/tests/typealias/starProjection.fir.kt b/compiler/testData/diagnostics/tests/typealias/starProjection.fir.kt index 76e97407452..e67d269d8e7 100644 --- a/compiler/testData/diagnostics/tests/typealias/starProjection.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/starProjection.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE typealias A = Map typealias B = A<*> diff --git a/compiler/testData/diagnostics/tests/typealias/starProjection.kt b/compiler/testData/diagnostics/tests/typealias/starProjection.kt index 0d651e014e8..7f7c9699cd5 100644 --- a/compiler/testData/diagnostics/tests/typealias/starProjection.kt +++ b/compiler/testData/diagnostics/tests/typealias/starProjection.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE typealias A = Map typealias B = A<*> diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorCrazyProjections.fir.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorCrazyProjections.fir.kt index 2ea38ab934a..1556957f654 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorCrazyProjections.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorCrazyProjections.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Bound(val x: X, val y: Y) diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorCrazyProjections.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorCrazyProjections.kt index 516e50eea4b..d2065df10ff 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorCrazyProjections.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorCrazyProjections.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Bound(val x: X, val y: Y) diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.fir.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.fir.kt index 4218c8cbba6..2a132cb3675 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class C diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.kt index 9f37e11bee7..a933b076bb8 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class C diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjectionInSupertypes.fir.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjectionInSupertypes.fir.kt index 4db0b2a98f2..1f0cafbc552 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjectionInSupertypes.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjectionInSupertypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE open class C typealias CStar = C<*> diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjectionInSupertypes.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjectionInSupertypes.kt index 0084edb6950..e56fc7f9b41 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjectionInSupertypes.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjectionInSupertypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE open class C typealias CStar = C<*> diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.fir.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.fir.kt index 66d0fdbedec..be9f51d529f 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Num(val x: Tn) diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.kt index 3b9fb834740..e7d0847dba5 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Num(val x: Tn) diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.fir.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.fir.kt index f2b5bafefc9..3f0becf950c 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE interface Ref { diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt index 4525dcbbad5..dab82144ff6 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE interface Ref { diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.fir.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.fir.kt index b49ee36fb07..fff41b71315 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Foo diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt index b7e1a1389a5..b4c59136b8e 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Foo diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorWrongVisibility.fir.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorWrongVisibility.fir.kt index 79aee5579fc..525bef71b3a 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorWrongVisibility.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorWrongVisibility.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE open class MyClass private constructor(val x: Int) { diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorWrongVisibility.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorWrongVisibility.kt index d70ce56fb86..30fd030cf60 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorWrongVisibility.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorWrongVisibility.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE open class MyClass private constructor(val x: Int) { diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasObjectWithInvoke.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasObjectWithInvoke.kt index 96b227857fc..597451ddc1a 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasObjectWithInvoke.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasObjectWithInvoke.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE object ObjectWithInvoke { diff --git a/compiler/testData/diagnostics/tests/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.fir.kt b/compiler/testData/diagnostics/tests/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.fir.kt index 4d9f140bfed..6082beca0e4 100644 --- a/compiler/testData/diagnostics/tests/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.fir.kt +++ b/compiler/testData/diagnostics/tests/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Pair(val x1: T1, val x2: T2) diff --git a/compiler/testData/diagnostics/tests/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.kt b/compiler/testData/diagnostics/tests/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.kt index 969cd7036c7..3c8e33aad33 100644 --- a/compiler/testData/diagnostics/tests/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.kt +++ b/compiler/testData/diagnostics/tests/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Pair(val x1: T1, val x2: T2) diff --git a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/conversionOfSignedToUnsigned.fir.kt b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/conversionOfSignedToUnsigned.fir.kt index 0503e7a49ec..3634de0816a 100644 --- a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/conversionOfSignedToUnsigned.fir.kt +++ b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/conversionOfSignedToUnsigned.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // FILE: annotation.kt diff --git a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/conversionOfSignedToUnsigned.kt b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/conversionOfSignedToUnsigned.kt index 1fdf84bdf72..50bf2b5a160 100644 --- a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/conversionOfSignedToUnsigned.kt +++ b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/conversionOfSignedToUnsigned.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // FILE: annotation.kt diff --git a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.fir.kt b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.fir.kt index 360bb907206..41652b12938 100644 --- a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.fir.kt +++ b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE // !CHECK_TYPE -// !WITH_NEW_INFERENCE // Here we mostly trying to fix behaviour in order to track changes in inference rules for unsigned types later diff --git a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.kt b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.kt index 021a76d7ccc..6f552fbd67d 100644 --- a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.kt +++ b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE // !CHECK_TYPE -// !WITH_NEW_INFERENCE // Here we mostly trying to fix behaviour in order to track changes in inference rules for unsigned types later diff --git a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.fir.kt b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.fir.kt index e03a172049a..fd93faf34f0 100644 --- a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.fir.kt +++ b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE fun takeUByte(u: UByte) {} fun takeUShort(u: UShort) {} diff --git a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.kt b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.kt index d6670de366b..67c0488a20c 100644 --- a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.kt +++ b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE fun takeUByte(u: UByte) {} fun takeUShort(u: UShort) {} diff --git a/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.fir.kt b/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.fir.kt index 1e596f43ef7..c482750f53f 100644 --- a/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.fir.kt +++ b/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS:-UNUSED_PARAMETER // KT-9883 prohibit using spread operator for nullable value diff --git a/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.kt b/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.kt index 405e452a716..56f99761caf 100644 --- a/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.kt +++ b/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS:-UNUSED_PARAMETER // KT-9883 prohibit using spread operator for nullable value diff --git a/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.fir.kt b/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.fir.kt index 86691dfabc5..33cd8b7db07 100644 --- a/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.fir.kt +++ b/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.fir.kt @@ -1,6 +1,5 @@ // !LANGUAGE: -AllowAssigningArrayElementsToVarargsInNamedFormForFunctions // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE @Retention(AnnotationRetention.SOURCE) @Target(AnnotationTarget.EXPRESSION) diff --git a/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.kt b/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.kt index 94171687179..800c844b1a0 100644 --- a/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.kt +++ b/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.kt @@ -1,6 +1,5 @@ // !LANGUAGE: -AllowAssigningArrayElementsToVarargsInNamedFormForFunctions // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE @Retention(AnnotationRetention.SOURCE) @Target(AnnotationTarget.EXPRESSION) diff --git a/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_4.fir.kt b/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_4.fir.kt index 63fd72c7599..6cd1a2cee0e 100644 --- a/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_4.fir.kt +++ b/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_4.fir.kt @@ -1,6 +1,5 @@ // !LANGUAGE: +AllowAssigningArrayElementsToVarargsInNamedFormForFunctions // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE @Retention(AnnotationRetention.SOURCE) @Target(AnnotationTarget.EXPRESSION) diff --git a/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_4.kt b/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_4.kt index 24dd6e14800..b153550462a 100644 --- a/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_4.kt +++ b/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_4.kt @@ -1,6 +1,5 @@ // !LANGUAGE: +AllowAssigningArrayElementsToVarargsInNamedFormForFunctions // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE @Retention(AnnotationRetention.SOURCE) @Target(AnnotationTarget.EXPRESSION) diff --git a/compiler/testData/diagnostics/tests/varargs/assigningArraysToVarargsInAnnotations.fir.kt b/compiler/testData/diagnostics/tests/varargs/assigningArraysToVarargsInAnnotations.fir.kt index 7b1615467ed..1d53272c657 100644 --- a/compiler/testData/diagnostics/tests/varargs/assigningArraysToVarargsInAnnotations.fir.kt +++ b/compiler/testData/diagnostics/tests/varargs/assigningArraysToVarargsInAnnotations.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ArrayLiteralsInAnnotations, +AssigningArraysToVarargsInNamedFormInAnnotations // FILE: JavaAnn.java diff --git a/compiler/testData/diagnostics/tests/varargs/assigningArraysToVarargsInAnnotations.kt b/compiler/testData/diagnostics/tests/varargs/assigningArraysToVarargsInAnnotations.kt index c74b302baae..9dfd03c0423 100644 --- a/compiler/testData/diagnostics/tests/varargs/assigningArraysToVarargsInAnnotations.kt +++ b/compiler/testData/diagnostics/tests/varargs/assigningArraysToVarargsInAnnotations.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ArrayLiteralsInAnnotations, +AssigningArraysToVarargsInNamedFormInAnnotations // FILE: JavaAnn.java diff --git a/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.fir.kt b/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.fir.kt index 4349a317c6c..c63c7ae3818 100644 --- a/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.fir.kt +++ b/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.fir.kt @@ -1,6 +1,5 @@ // !LANGUAGE: +AssigningArraysToVarargsInNamedFormInAnnotations, +ProhibitAssigningSingleElementsToVarargsInNamedForm -AllowAssigningArrayElementsToVarargsInNamedFormForFunctions // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE fun foo(vararg s: Int) {} diff --git a/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.kt b/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.kt index 6fe42670ea9..9417213e3de 100644 --- a/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.kt +++ b/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.kt @@ -1,6 +1,5 @@ // !LANGUAGE: +AssigningArraysToVarargsInNamedFormInAnnotations, +ProhibitAssigningSingleElementsToVarargsInNamedForm -AllowAssigningArrayElementsToVarargsInNamedFormForFunctions // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE fun foo(vararg s: Int) {} diff --git a/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.fir.kt b/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.fir.kt index af7880ac0f1..4155e2a6116 100644 --- a/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.fir.kt +++ b/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.fir.kt @@ -1,6 +1,5 @@ // !LANGUAGE: +AssigningArraysToVarargsInNamedFormInAnnotations, -ProhibitAssigningSingleElementsToVarargsInNamedForm -AllowAssigningArrayElementsToVarargsInNamedFormForFunctions // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE fun foo(vararg s: Int) {} diff --git a/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.kt b/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.kt index 19e64a41598..c27c3492786 100644 --- a/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.kt +++ b/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.kt @@ -1,6 +1,5 @@ // !LANGUAGE: +AssigningArraysToVarargsInNamedFormInAnnotations, -ProhibitAssigningSingleElementsToVarargsInNamedForm -AllowAssigningArrayElementsToVarargsInNamedFormForFunctions // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE fun foo(vararg s: Int) {} diff --git a/compiler/testData/diagnostics/tests/varargs/noAssigningArraysToVarargsFeature.fir.kt b/compiler/testData/diagnostics/tests/varargs/noAssigningArraysToVarargsFeature.fir.kt index 8381c0b7e0c..f4ba6202a74 100644 --- a/compiler/testData/diagnostics/tests/varargs/noAssigningArraysToVarargsFeature.fir.kt +++ b/compiler/testData/diagnostics/tests/varargs/noAssigningArraysToVarargsFeature.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ArrayLiteralsInAnnotations, -AssigningArraysToVarargsInNamedFormInAnnotations -AllowAssigningArrayElementsToVarargsInNamedFormForFunctions // FILE: JavaAnn.java diff --git a/compiler/testData/diagnostics/tests/varargs/noAssigningArraysToVarargsFeature.kt b/compiler/testData/diagnostics/tests/varargs/noAssigningArraysToVarargsFeature.kt index a3279d56229..c9e446d7eaa 100644 --- a/compiler/testData/diagnostics/tests/varargs/noAssigningArraysToVarargsFeature.kt +++ b/compiler/testData/diagnostics/tests/varargs/noAssigningArraysToVarargsFeature.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +ArrayLiteralsInAnnotations, -AssigningArraysToVarargsInNamedFormInAnnotations -AllowAssigningArrayElementsToVarargsInNamedFormForFunctions // FILE: JavaAnn.java diff --git a/compiler/testData/diagnostics/tests/when/BranchBypassVal.fir.kt b/compiler/testData/diagnostics/tests/when/BranchBypassVal.fir.kt index a2d147b56da..fedb6a293e5 100644 --- a/compiler/testData/diagnostics/tests/when/BranchBypassVal.fir.kt +++ b/compiler/testData/diagnostics/tests/when/BranchBypassVal.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * diff --git a/compiler/testData/diagnostics/tests/when/BranchBypassVal.kt b/compiler/testData/diagnostics/tests/when/BranchBypassVal.kt index 2c368c2f65d..2b289f9d1a4 100644 --- a/compiler/testData/diagnostics/tests/when/BranchBypassVal.kt +++ b/compiler/testData/diagnostics/tests/when/BranchBypassVal.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * diff --git a/compiler/testData/diagnostics/tests/when/BranchBypassVar.fir.kt b/compiler/testData/diagnostics/tests/when/BranchBypassVar.fir.kt index b082ea2311e..7803b81ff76 100644 --- a/compiler/testData/diagnostics/tests/when/BranchBypassVar.fir.kt +++ b/compiler/testData/diagnostics/tests/when/BranchBypassVar.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * diff --git a/compiler/testData/diagnostics/tests/when/BranchBypassVar.kt b/compiler/testData/diagnostics/tests/when/BranchBypassVar.kt index 6b89cbd0051..d20cdcaa1e1 100644 --- a/compiler/testData/diagnostics/tests/when/BranchBypassVar.kt +++ b/compiler/testData/diagnostics/tests/when/BranchBypassVar.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * diff --git a/compiler/testData/diagnostics/tests/when/When.fir.kt b/compiler/testData/diagnostics/tests/when/When.fir.kt index 3340e3c95ea..d9b6955b9bb 100644 --- a/compiler/testData/diagnostics/tests/when/When.fir.kt +++ b/compiler/testData/diagnostics/tests/when/When.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * diff --git a/compiler/testData/diagnostics/tests/when/When.kt b/compiler/testData/diagnostics/tests/when/When.kt index 21e0f1b59bf..a04cb887c8f 100644 --- a/compiler/testData/diagnostics/tests/when/When.kt +++ b/compiler/testData/diagnostics/tests/when/When.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * diff --git a/compiler/testData/diagnostics/tests/when/kt10439.fir.kt b/compiler/testData/diagnostics/tests/when/kt10439.fir.kt index 87de67c97e7..7ca836e618b 100644 --- a/compiler/testData/diagnostics/tests/when/kt10439.fir.kt +++ b/compiler/testData/diagnostics/tests/when/kt10439.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * diff --git a/compiler/testData/diagnostics/tests/when/kt10439.kt b/compiler/testData/diagnostics/tests/when/kt10439.kt index 45ee0a3a834..fafc694ac4d 100644 --- a/compiler/testData/diagnostics/tests/when/kt10439.kt +++ b/compiler/testData/diagnostics/tests/when/kt10439.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * diff --git a/compiler/testData/diagnostics/tests/when/kt10809.fir.kt b/compiler/testData/diagnostics/tests/when/kt10809.fir.kt index 6765d688134..8003826d118 100644 --- a/compiler/testData/diagnostics/tests/when/kt10809.fir.kt +++ b/compiler/testData/diagnostics/tests/when/kt10809.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -DEBUG_INFO_SMARTCAST // NI_EXPECTED_FILE /* diff --git a/compiler/testData/diagnostics/tests/when/kt10809.kt b/compiler/testData/diagnostics/tests/when/kt10809.kt index d7ae441fdfb..84dfd3c3d05 100644 --- a/compiler/testData/diagnostics/tests/when/kt10809.kt +++ b/compiler/testData/diagnostics/tests/when/kt10809.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER -DEBUG_INFO_SMARTCAST // NI_EXPECTED_FILE /* diff --git a/compiler/testData/diagnostics/tests/when/kt9929.fir.kt b/compiler/testData/diagnostics/tests/when/kt9929.fir.kt index 74a98288213..5a70d7b868b 100644 --- a/compiler/testData/diagnostics/tests/when/kt9929.fir.kt +++ b/compiler/testData/diagnostics/tests/when/kt9929.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE val test: Int = if (true) { when (2) { 1 -> 1 diff --git a/compiler/testData/diagnostics/tests/when/kt9929.kt b/compiler/testData/diagnostics/tests/when/kt9929.kt index 5ca2059e1ee..cd78501d239 100644 --- a/compiler/testData/diagnostics/tests/when/kt9929.kt +++ b/compiler/testData/diagnostics/tests/when/kt9929.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE val test: Int = if (true) { when (2) { 1 -> 1 diff --git a/compiler/testData/diagnostics/tests/when/kt9972.fir.kt b/compiler/testData/diagnostics/tests/when/kt9972.fir.kt index cccc3ce4314..12843090fd3 100644 --- a/compiler/testData/diagnostics/tests/when/kt9972.fir.kt +++ b/compiler/testData/diagnostics/tests/when/kt9972.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * diff --git a/compiler/testData/diagnostics/tests/when/kt9972.kt b/compiler/testData/diagnostics/tests/when/kt9972.kt index 591722f3354..dba27d433bc 100644 --- a/compiler/testData/diagnostics/tests/when/kt9972.kt +++ b/compiler/testData/diagnostics/tests/when/kt9972.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * diff --git a/compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.fir.kt b/compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.fir.kt index 027c1ea2405..cdc33d4cf7f 100644 --- a/compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.fir.kt +++ b/compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * diff --git a/compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.kt b/compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.kt index dba42c833c9..bd085494344 100644 --- a/compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.kt +++ b/compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * diff --git a/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.fir.kt b/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.fir.kt index f48235d51ab..9ed176bd000 100644 --- a/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.fir.kt +++ b/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) diff --git a/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.kt b/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.kt index 3c96278cbf4..9edc89979ca 100644 --- a/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.kt +++ b/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) diff --git a/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.fir.kt b/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.fir.kt index e9f408fbd5c..f74066d400b 100644 --- a/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.fir.kt +++ b/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.fir.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +VariableDeclarationInWhenSubject -// !WITH_NEW_INFERENCE fun foo(s1: Int, s2: Int) = s1 + s2 diff --git a/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.kt b/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.kt index 8aa1fd66c3b..198e47e358c 100644 --- a/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.kt +++ b/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +VariableDeclarationInWhenSubject -// !WITH_NEW_INFERENCE fun foo(s1: Int, s2: Int) = s1 + s2 diff --git a/compiler/testData/diagnostics/testsWithStdLib/ArrayOfNothing.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/ArrayOfNothing.fir.kt index aceb78c572e..5965caa70c1 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/ArrayOfNothing.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/ArrayOfNothing.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -UNCHECKED_CAST -USELESS_CAST // !LANGUAGE: +ProhibitNonReifiedArraysAsReifiedTypeArguments -// !WITH_NEW_INFERENCE class A fun test1( diff --git a/compiler/testData/diagnostics/testsWithStdLib/ArrayOfNothing.kt b/compiler/testData/diagnostics/testsWithStdLib/ArrayOfNothing.kt index 4e5c11e9958..24fe9880e02 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/ArrayOfNothing.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/ArrayOfNothing.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -UNCHECKED_CAST -USELESS_CAST // !LANGUAGE: +ProhibitNonReifiedArraysAsReifiedTypeArguments -// !WITH_NEW_INFERENCE class A fun test1( diff --git a/compiler/testData/diagnostics/testsWithStdLib/addAllProjection.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/addAllProjection.fir.kt index 808ca550b9c..6b45cf7601d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/addAllProjection.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/addAllProjection.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(mc: MutableCollection) { mc.addAll(mc) diff --git a/compiler/testData/diagnostics/testsWithStdLib/addAllProjection.kt b/compiler/testData/diagnostics/testsWithStdLib/addAllProjection.kt index b84f5e7c54e..4aeeff61812 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/addAllProjection.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/addAllProjection.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun test(mc: MutableCollection) { mc.addAll(mc) diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationApplicability/suppressOnFunctionReference.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationApplicability/suppressOnFunctionReference.fir.kt index a5d2bdf8807..0ea87e691e2 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationApplicability/suppressOnFunctionReference.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationApplicability/suppressOnFunctionReference.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See KT-15839 val x = "1".let(@Suppress("DEPRECATION") Integer::parseInt) diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationApplicability/suppressOnFunctionReference.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationApplicability/suppressOnFunctionReference.kt index 5a5c919edf5..59f075bd98f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationApplicability/suppressOnFunctionReference.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationApplicability/suppressOnFunctionReference.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See KT-15839 val x = "1".let(@Suppress("DEPRECATION") Integer::parseInt) diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationParameters/valueArrayAndOtherDefault.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationParameters/valueArrayAndOtherDefault.fir.kt index 07ca5e7b209..967766a3da7 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationParameters/valueArrayAndOtherDefault.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationParameters/valueArrayAndOtherDefault.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // FILE: A.java diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationParameters/valueArrayAndOtherDefault.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationParameters/valueArrayAndOtherDefault.kt index ee2422d2d7e..391b0ab62c5 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationParameters/valueArrayAndOtherDefault.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationParameters/valueArrayAndOtherDefault.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // FILE: A.java diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/javaAnnotationWithVarargArgument.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/javaAnnotationWithVarargArgument.fir.kt index 7a5f9cd9e05..d4e15bea6bd 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/javaAnnotationWithVarargArgument.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/javaAnnotationWithVarargArgument.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: A.java public @interface A { diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/javaAnnotationWithVarargArgument.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/javaAnnotationWithVarargArgument.kt index ae79a26a374..f41ac41f44d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/javaAnnotationWithVarargArgument.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/javaAnnotationWithVarargArgument.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: A.java public @interface A { diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/kotlinAnnotationWithVarargArgument.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/kotlinAnnotationWithVarargArgument.fir.kt index e40d885f3df..69b0f7f3e92 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/kotlinAnnotationWithVarargArgument.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/kotlinAnnotationWithVarargArgument.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE annotation class B(vararg val args: String) diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/kotlinAnnotationWithVarargArgument.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/kotlinAnnotationWithVarargArgument.kt index b6c06233464..67b5cc03b1f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/kotlinAnnotationWithVarargArgument.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/kotlinAnnotationWithVarargArgument.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE annotation class B(vararg val args: String) diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsInVariance.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsInVariance.fir.kt index 3a442cbe244..f2066aeea10 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsInVariance.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsInVariance.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import kotlin.reflect.KClass diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsInVariance.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsInVariance.kt index a5d59fbb61a..3db186e15ad 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsInVariance.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsInVariance.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import kotlin.reflect.KClass diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsOutVariance.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsOutVariance.fir.kt index d7c81d3d00a..4d6f137d15f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsOutVariance.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsOutVariance.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import kotlin.reflect.KClass diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsOutVariance.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsOutVariance.kt index 50c73321702..b56f6a6e25f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsOutVariance.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsOutVariance.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import kotlin.reflect.KClass diff --git a/compiler/testData/diagnostics/testsWithStdLib/assert/cast.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/assert/cast.fir.kt index b7bddc0ecd4..bb6ff23f751 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/assert/cast.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/assert/cast.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !IGNORE_DATA_FLOW_IN_ASSERT // SKIP_TXT // WITH_RUNTIME diff --git a/compiler/testData/diagnostics/testsWithStdLib/assert/cast.kt b/compiler/testData/diagnostics/testsWithStdLib/assert/cast.kt index 5210167b086..5385aa77265 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/assert/cast.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/assert/cast.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !IGNORE_DATA_FLOW_IN_ASSERT // SKIP_TXT // WITH_RUNTIME diff --git a/compiler/testData/diagnostics/testsWithStdLib/assert/safeCall.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/assert/safeCall.fir.kt index 5049110bfc8..909e8e8154d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/assert/safeCall.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/assert/safeCall.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !IGNORE_DATA_FLOW_IN_ASSERT // SKIP_TXT // WITH_RUNTIME diff --git a/compiler/testData/diagnostics/testsWithStdLib/assert/safeCall.kt b/compiler/testData/diagnostics/testsWithStdLib/assert/safeCall.kt index eca2c5f8a5d..1af96ff29fa 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/assert/safeCall.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/assert/safeCall.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !IGNORE_DATA_FLOW_IN_ASSERT // SKIP_TXT // WITH_RUNTIME diff --git a/compiler/testData/diagnostics/testsWithStdLib/cast/AsInsideIn.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/cast/AsInsideIn.fir.kt index 7ed4970bc2f..77716460e9d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/cast/AsInsideIn.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/cast/AsInsideIn.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See also KT-10386 interface A class B : A diff --git a/compiler/testData/diagnostics/testsWithStdLib/cast/AsInsideIn.kt b/compiler/testData/diagnostics/testsWithStdLib/cast/AsInsideIn.kt index 5936a24c965..616e3154749 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/cast/AsInsideIn.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/cast/AsInsideIn.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // See also KT-10386 interface A class B : A diff --git a/compiler/testData/diagnostics/testsWithStdLib/commonCollections.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/commonCollections.fir.kt index b9f33297b7a..0f699920a13 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/commonCollections.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/commonCollections.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import java.util.* fun foo() { diff --git a/compiler/testData/diagnostics/testsWithStdLib/commonCollections.kt b/compiler/testData/diagnostics/testsWithStdLib/commonCollections.kt index f5f8a67df88..405a0c71626 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/commonCollections.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/commonCollections.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import java.util.* fun foo() { diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/deeplyNested.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/deeplyNested.fir.kt index 1f82b4ed9df..8c50697b594 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/deeplyNested.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/deeplyNested.fir.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/deeplyNested.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/deeplyNested.kt index d16f7b0f3d8..e90d2f1664e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/deeplyNested.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/deeplyNested.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/externalArguments.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/externalArguments.fir.kt index de95bc6b4e1..7bf2d8b1a94 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/externalArguments.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/externalArguments.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/externalArguments.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/externalArguments.kt index 81a0eccec94..3104228db12 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/externalArguments.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/externalArguments.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectingInfo.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectingInfo.fir.kt index 989afc2c66e..791ee5ed247 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectingInfo.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectingInfo.fir.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectingInfo.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectingInfo.kt index e9ca68cd1d5..a2ec7f07bde 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectingInfo.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectingInfo.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectionTypes.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectionTypes.fir.kt index 7f17a0cdb27..bbf0af51250 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectionTypes.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectionTypes.fir.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectionTypes.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectionTypes.kt index 72a7ff346dd..409bd49e579 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectionTypes.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/intersectionTypes.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/nullabilitySmartcastWhenNullability.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/nullabilitySmartcastWhenNullability.fir.kt index b155a85fe99..eb2f895dda9 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/nullabilitySmartcastWhenNullability.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/nullabilitySmartcastWhenNullability.fir.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/nullabilitySmartcastWhenNullability.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/nullabilitySmartcastWhenNullability.kt index 247bcf9074c..c6fe19ee38e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/nullabilitySmartcastWhenNullability.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/nullabilitySmartcastWhenNullability.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/andOperator.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/andOperator.fir.kt index e6851cbd1d1..068a42a58d0 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/andOperator.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/andOperator.fir.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/andOperator.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/andOperator.kt index 38ba78827b5..5ea59c8689e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/andOperator.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/andOperator.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/equalsOperator.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/equalsOperator.fir.kt index 2d4b9aefc56..28c6d4d5972 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/equalsOperator.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/equalsOperator.fir.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/equalsOperator.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/equalsOperator.kt index d5f7fcf1987..75dc03156f1 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/equalsOperator.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/equalsOperator.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/orOperator.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/orOperator.fir.kt index efcabeeb5ee..07fd4078f63 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/orOperator.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/orOperator.fir.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/orOperator.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/orOperator.kt index 42ea9a96433..075411d5042 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/orOperator.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/operatorsTests/orOperator.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/receiver.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/receiver.fir.kt index e26d902954e..bf485ab0d1e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/receiver.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/receiver.fir.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/receiver.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/receiver.kt index 5e506a0f54a..db562fd8342 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/receiver.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/receiver.kt @@ -1,7 +1,6 @@ // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.fir.kt index f829ef04e8f..a17fc61bc2f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.fir.kt @@ -1,6 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Controller { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.kt index 713a118f9a8..3052e6f85c5 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.kt @@ -1,6 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Controller { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.fir.kt index da066ee810a..c4e148f9937 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !USE_EXPERIMENTAL: kotlin.RequiresOptIn -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE @file:OptIn(ExperimentalTypeInference::class) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.kt index ffdda40308c..7910630ece8 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !USE_EXPERIMENTAL: kotlin.RequiresOptIn -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE @file:OptIn(ExperimentalTypeInference::class) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.fir.kt index 7811e1ce8ef..68b1292130c 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !USE_EXPERIMENTAL: kotlin.RequiresOptIn -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE @file:OptIn(ExperimentalTypeInference::class) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.kt index 0b971c8be82..115445a6c11 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !USE_EXPERIMENTAL: kotlin.RequiresOptIn -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE @file:OptIn(ExperimentalTypeInference::class) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/incorrectCalls.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/incorrectCalls.fir.kt index 955a0c766fd..5b01943415f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/incorrectCalls.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/incorrectCalls.fir.kt @@ -1,6 +1,5 @@ // !USE_EXPERIMENTAL: kotlin.RequiresOptIn // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @file:OptIn(ExperimentalTypeInference::class) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/incorrectCalls.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/incorrectCalls.kt index befdfa9876a..b4312f8d92f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/incorrectCalls.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/incorrectCalls.kt @@ -1,6 +1,5 @@ // !USE_EXPERIMENTAL: kotlin.RequiresOptIn // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @file:OptIn(ExperimentalTypeInference::class) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.fir.kt index b80ff0e4fd0..8a07eff2f12 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.fir.kt @@ -1,6 +1,5 @@ // !LANGUAGE: -ExperimentalBuilderInference // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE class Builder { suspend fun add(t: T) {} diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.kt index 37c751dc857..72ef1eedcd3 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.kt @@ -1,6 +1,5 @@ // !LANGUAGE: -ExperimentalBuilderInference // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE class Builder { suspend fun add(t: T) {} diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.fir.kt index 523cb3de6ed..c0705a2b7e2 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // SKIP_TXT class StateMachine internal constructor() { fun getInputStub(): Q = null as Q diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.kt index 4bcfe8fe294..de07074bac2 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // SKIP_TXT class StateMachine internal constructor() { fun getInputStub(): Q = null as Q diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.fir.kt index 08380daa150..f6cbc1ccaf2 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.fir.kt @@ -1,6 +1,5 @@ // !USE_EXPERIMENTAL: kotlin.RequiresOptIn // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE import kotlin.experimental.ExperimentalTypeInference diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt index f6cf08db1ce..93fd5d45844 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt @@ -1,6 +1,5 @@ // !USE_EXPERIMENTAL: kotlin.RequiresOptIn // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE import kotlin.experimental.ExperimentalTypeInference diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedSuspendCallInsideLambda.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedSuspendCallInsideLambda.kt index 3ef76e7bb0c..606812dcfda 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedSuspendCallInsideLambda.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedSuspendCallInsideLambda.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE suspend fun wrapUp2() { withContext { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.fir.kt index ad6c02c3c56..1b8a0640c3d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.fir.kt @@ -1,6 +1,5 @@ // !USE_EXPERIMENTAL: kotlin.RequiresOptIn // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE @file:OptIn(ExperimentalTypeInference::class) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.kt index 44a15134fcc..b569bff1a4e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.kt @@ -1,6 +1,5 @@ // !USE_EXPERIMENTAL: kotlin.RequiresOptIn // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE @file:OptIn(ExperimentalTypeInference::class) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.fir.kt index 76fa4fb0803..b0e7f1eb751 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // FILE: annotation.kt package kotlin diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.kt index 1a8fad0022b..b55df7a6889 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // FILE: annotation.kt package kotlin diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.fir.kt index 6a20ce5cd52..f1b7973f436 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.fir.kt @@ -1,6 +1,5 @@ // !USE_EXPERIMENTAL: kotlin.RequiresOptIn // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE @file:OptIn(ExperimentalTypeInference::class) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.kt index e55c7eb1b07..0e7d974a068 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.kt @@ -1,6 +1,5 @@ // !USE_EXPERIMENTAL: kotlin.RequiresOptIn // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE @file:OptIn(ExperimentalTypeInference::class) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.fir.kt index c0a1aeee3d5..b58604aa740 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Controller { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.kt index cef8b8759be..07dd66a6a42 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class Controller { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/useInferenceInformationFromExtension.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/useInferenceInformationFromExtension.fir.kt index 897aceff9c5..7d3b5587ce2 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/useInferenceInformationFromExtension.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/useInferenceInformationFromExtension.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // FILE: annotation.kt diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/useInferenceInformationFromExtension.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/useInferenceInformationFromExtension.kt index ed52208c740..c561fbdc54d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/useInferenceInformationFromExtension.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/useInferenceInformationFromExtension.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // FILE: annotation.kt diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.fir.kt index 67d9f1db67e..776b7b953ee 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class GenericController { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.kt index ccd4f6cae80..0719b4dc4d8 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE class GenericController { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt18292.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt18292.fir.kt index 754ac2c36e5..3c95a4575ef 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt18292.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt18292.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // SKIP_TXT // WITH_RUNTIME diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt18292.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt18292.kt index e49257af89e..0c7ea8dfdfe 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt18292.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt18292.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // SKIP_TXT // WITH_RUNTIME diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.fir.kt index ac8d2179daf..f8371b2cb46 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.fir.kt @@ -1,5 +1,4 @@ // !LANGUAGE: -SuspendConversion -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt index 0c3b9342ed0..f558997fc5f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt @@ -1,5 +1,4 @@ // !LANGUAGE: -SuspendConversion -// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.fir.kt index 988fcda25db..d800749fa27 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE // SKIP_TXT diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt index 39228ce35c4..0eb6b427707 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE // SKIP_TXT diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.fir.kt index 80fb3b0e80c..19be74fed9e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE -// !WITH_NEW_INFERENCE suspend fun noParams() { } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.kt index b804a66d71b..5897c51aba7 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE -// !WITH_NEW_INFERENCE suspend fun noParams() { } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.fir.kt index 02d1088e025..c4c2de10b02 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE -// !WITH_NEW_INFERENCE import kotlin.coroutines.* class Controller { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.kt index 85112d8a185..546b2f4e33a 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE -// !WITH_NEW_INFERENCE import kotlin.coroutines.* class Controller { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/tryCatchLambda.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/tryCatchLambda.fir.kt index 12d21d39945..81e2d12c047 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/tryCatchLambda.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/tryCatchLambda.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE suspend fun await(f: V): V = f diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/tryCatchLambda.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/tryCatchLambda.kt index 4e92e90e6b1..8f60a6c3d23 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/tryCatchLambda.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/tryCatchLambda.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE suspend fun await(f: V): V = f diff --git a/compiler/testData/diagnostics/testsWithStdLib/elvisOnJavaList.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/elvisOnJavaList.fir.kt index 777bc808f19..e83d71ecc14 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/elvisOnJavaList.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/elvisOnJavaList.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: P.java diff --git a/compiler/testData/diagnostics/testsWithStdLib/elvisOnJavaList.kt b/compiler/testData/diagnostics/testsWithStdLib/elvisOnJavaList.kt index 8fcea40f606..863e5f54f9f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/elvisOnJavaList.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/elvisOnJavaList.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: P.java diff --git a/compiler/testData/diagnostics/testsWithStdLib/implicitCastToAny.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/implicitCastToAny.fir.kt index 86f3ab3c156..cebea49f3e9 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/implicitCastToAny.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/implicitCastToAny.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE var longWords = 0 val smallWords = hashSetOf() diff --git a/compiler/testData/diagnostics/testsWithStdLib/implicitCastToAny.kt b/compiler/testData/diagnostics/testsWithStdLib/implicitCastToAny.kt index ac420b4dd63..dedba940c8a 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/implicitCastToAny.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/implicitCastToAny.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE var longWords = 0 val smallWords = hashSetOf() diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/exactAnnotation.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/exactAnnotation.fir.kt index 351ea75d8fc..fdc90a8c182 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/exactAnnotation.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/exactAnnotation.fir.kt @@ -1,5 +1,4 @@ //!DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") fun List<@kotlin.internal.Exact T>.firstTyped(): U = throw Exception() diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/exactAnnotation.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/exactAnnotation.kt index 186d011443e..2face642281 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/exactAnnotation.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/exactAnnotation.kt @@ -1,5 +1,4 @@ //!DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") fun List<@kotlin.internal.Exact T>.firstTyped(): U = throw Exception() diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt26698.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt26698.fir.kt index 059ea17eff5..75964e9c205 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt26698.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt26698.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE open class Base() class CX : Base() diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt26698.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt26698.kt index b4d5b204f21..2708e1985b4 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt26698.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt26698.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE open class Base() class CX : Base() diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt29307.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt29307.fir.kt index 7c83c789fa5..b2dfcf0cf62 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt29307.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt29307.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // ISSUE: KT-29307 fun test_1(map: Map) { diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt29307.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt29307.kt index 727bba14f54..e508f647e6b 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt29307.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt29307.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // ISSUE: KT-29307 fun test_1(map: Map) { diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAndLowPriority.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAndLowPriority.fir.kt index ee14da52595..d062499baae 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAndLowPriority.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAndLowPriority.fir.kt @@ -1,5 +1,4 @@ //!DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") @kotlin.jvm.JvmName("containsAny") diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAndLowPriority.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAndLowPriority.kt index 2a1a51baed4..e71b07198f4 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAndLowPriority.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAndLowPriority.kt @@ -1,5 +1,4 @@ //!DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") @kotlin.jvm.JvmName("containsAny") diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.fir.kt index e1de728cd58..6ee7559f356 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.fir.kt @@ -1,5 +1,4 @@ //!DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") fun test1(t1: T, t2: @kotlin.internal.NoInfer T): T = t1 diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.kt index 1b52856d113..c7346fdcbd9 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.kt @@ -1,5 +1,4 @@ //!DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") fun test1(t1: T, t2: @kotlin.internal.NoInfer T): T = t1 diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypes.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypes.fir.kt index b72dfbd7e0d..9c3bcc87af9 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypes.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypes.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") public fun <@kotlin.internal.OnlyInputTypes T> Iterable.contains1(element: T): Boolean = null!! diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypes.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypes.kt index 5e68d52b698..b80fbbd8833 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypes.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypes.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") public fun <@kotlin.internal.OnlyInputTypes T> Iterable.contains1(element: T): Boolean = null!! diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndLowPriority.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndLowPriority.fir.kt index 076edaa5ce5..f5e6dd99a31 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndLowPriority.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndLowPriority.fir.kt @@ -1,5 +1,4 @@ //!DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") @kotlin.jvm.JvmName("containsAny") diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndLowPriority.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndLowPriority.kt index ce41196593b..fac3cf0b7ec 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndLowPriority.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndLowPriority.kt @@ -1,5 +1,4 @@ //!DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") @kotlin.jvm.JvmName("containsAny") diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndTopLevelCapturedTypes.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndTopLevelCapturedTypes.fir.kt index 5fe3d54488e..ea185fdbb87 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndTopLevelCapturedTypes.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndTopLevelCapturedTypes.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE class Inv diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndTopLevelCapturedTypes.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndTopLevelCapturedTypes.kt index a27be5e96f9..c513c6303a9 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndTopLevelCapturedTypes.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndTopLevelCapturedTypes.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE class Inv diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCaptured.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCaptured.fir.kt index a75fd93f946..1e66a7a7ae4 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCaptured.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCaptured.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER // Issue: KT-26698 diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCaptured.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCaptured.kt index d5fd7fb922c..b08fc6713ec 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCaptured.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCaptured.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER // Issue: KT-26698 diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCommonConstraintSystem.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCommonConstraintSystem.fir.kt index 8c323891011..478d54a8285 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCommonConstraintSystem.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCommonConstraintSystem.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCommonConstraintSystem.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCommonConstraintSystem.kt index 80fbd7071dc..cb593c0dc7a 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCommonConstraintSystem.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCommonConstraintSystem.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesUpperBound.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesUpperBound.fir.kt index 2de3099b37c..ecbe41d72e4 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesUpperBound.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesUpperBound.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesUpperBound.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesUpperBound.kt index 7737464f651..ec114a88b18 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesUpperBound.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesUpperBound.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/resolveWithOnlyInputTypesAnnotation.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/resolveWithOnlyInputTypesAnnotation.fir.kt index 2e80f60a8f4..e29973f346f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/resolveWithOnlyInputTypesAnnotation.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/resolveWithOnlyInputTypesAnnotation.fir.kt @@ -1,5 +1,4 @@ //!DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") fun <@kotlin.internal.OnlyInputTypes T> assertEquals1(t1: T, t2: T) {} diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/resolveWithOnlyInputTypesAnnotation.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/resolveWithOnlyInputTypesAnnotation.kt index 3167214902a..8be2afc0ec6 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/resolveWithOnlyInputTypesAnnotation.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/resolveWithOnlyInputTypesAnnotation.kt @@ -1,5 +1,4 @@ //!DIAGNOSTICS: -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") fun <@kotlin.internal.OnlyInputTypes T> assertEquals1(t1: T, t2: T) {} diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt31219.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt31219.kt index 30b8cb4c167..61e8e8e0462 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt31219.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt31219.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // !LANGUAGE: +NewInference -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // ISSUE: KT-31219 diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt31679.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt31679.kt index bb9dd9d2784..f5a297d2482 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt31679.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt31679.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // !LANGUAGE: +NewInference -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // ISSUE: KT-31679 diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt32249.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt32249.kt index a846d709c44..1733c035bab 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt32249.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt32249.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // !LANGUAGE: +NewInference -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER // ISSUE: KT-32249 diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/integerLiterals.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/integerLiterals.fir.kt index a024bc2848f..bee5aa0b0e9 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/integerLiterals.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/integerLiterals.fir.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +NewInference -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -USELESS_ELVIS -UNUSED_EXPRESSION class X { diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/integerLiterals.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/integerLiterals.kt index 784a9bba14a..cdd5c742cfe 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/integerLiterals.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/integerLiterals.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +NewInference -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -USELESS_ELVIS -UNUSED_EXPRESSION class X { diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/kt11266.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/kt11266.kt index 4649f78fe29..b271a096627 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/kt11266.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/kt11266.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE fun foo(first: Array, second: Array) = Pair(first.toCollection(), second.toCollection()) diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/kt27772.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/kt27772.fir.kt index 702005d9ff0..eae4bac51fa 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/kt27772.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/kt27772.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(resources: List) { resources.map { runCatching { it } }.mapNotNull { it.getOrNull() } diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/kt27772.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/kt27772.kt index dcbcf3013bf..31e5a326aee 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/kt27772.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/kt27772.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun foo(resources: List) { resources.map { runCatching { it } }.mapNotNull { it.getOrNull() } diff --git a/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContains.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContains.fir.kt index 04518b17d45..7f11960bfb7 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContains.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContains.fir.kt @@ -1,5 +1,4 @@ // !LANGUAGE: -ProhibitConcurrentHashMapContains -// !WITH_NEW_INFERENCE // FULL_JDK class A : java.util.concurrent.ConcurrentHashMap() { diff --git a/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContains.kt b/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContains.kt index fd77d66b085..e72d8472b34 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContains.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContains.kt @@ -1,5 +1,4 @@ // !LANGUAGE: -ProhibitConcurrentHashMapContains -// !WITH_NEW_INFERENCE // FULL_JDK class A : java.util.concurrent.ConcurrentHashMap() { diff --git a/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContainsError.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContainsError.fir.kt index 1bb3d96ec2f..6c4d1f7418d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContainsError.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContainsError.fir.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ProhibitConcurrentHashMapContains -// !WITH_NEW_INFERENCE // FULL_JDK class A : java.util.concurrent.ConcurrentHashMap() { diff --git a/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContainsError.kt b/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContainsError.kt index 1a9afcaa480..4fd107f37c6 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContainsError.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContainsError.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ProhibitConcurrentHashMapContains -// !WITH_NEW_INFERENCE // FULL_JDK class A : java.util.concurrent.ConcurrentHashMap() { diff --git a/compiler/testData/diagnostics/testsWithStdLib/kt7585/delegate.kt b/compiler/testData/diagnostics/testsWithStdLib/kt7585/delegate.kt index 352dc1bbce9..7e071fa4ecd 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/kt7585/delegate.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/kt7585/delegate.kt @@ -1,5 +1,4 @@ // FIR_IDENTICAL -// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // JAVAC_EXPECTED_FILE // FILE: Base.java diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayList.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayList.fir.kt index b2f9ec43367..93a854b424e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayList.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayList.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE import java.util.* fun bar(): String? = null diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayList.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayList.kt index 00923da31df..10dc52d1f23 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayList.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayList.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE import java.util.* fun bar(): String? = null diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayListNullable.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayListNullable.fir.kt index 17cb82eb4c8..9dca302f648 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayListNullable.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayListNullable.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE import java.util.* fun bar(): String? = null diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayListNullable.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayListNullable.kt index 2ae79b83109..fad8fa935c2 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayListNullable.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/arrayListNullable.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE import java.util.* fun bar(): String? = null diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableCollection.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableCollection.fir.kt index 5bedf9d6c26..0f94c65da85 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableCollection.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableCollection.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // JAVAC_EXPECTED_FILE import java.util.*; diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableCollection.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableCollection.kt index 1afb280e141..a02b987d6d4 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableCollection.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableCollection.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // JAVAC_EXPECTED_FILE import java.util.*; diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.fir.kt index 6a4b798bea1..6790c181614 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // JAVAC_EXPECTED_FILE import java.util.*; diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt index 1c34e9d3988..2db8b8487dc 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // JAVAC_EXPECTED_FILE import java.util.*; diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/maps.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/maps.fir.kt index d220473c0af..7dd02966ca7 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/maps.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/maps.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FULL_JDK import java.util.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/maps.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/maps.kt index 332d36329dd..4a9780e1474 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/maps.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/maps.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FULL_JDK import java.util.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableKey.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableKey.fir.kt index 3532b3cc0a4..91cd0c8b596 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableKey.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableKey.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FULL_JDK import java.util.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableKey.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableKey.kt index c64c10ab4f8..00f4da2a757 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableKey.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableKey.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FULL_JDK import java.util.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableValues.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableValues.fir.kt index 4b5d2934f06..5b902849e25 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableValues.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableValues.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FULL_JDK import java.util.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableValues.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableValues.kt index 7f2232822de..ad9f38ecdeb 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableValues.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableValues.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FULL_JDK import java.util.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/sets.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/sets.fir.kt index b50262fefeb..ba7f62a8ac0 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/sets.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/sets.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FULL_JDK import java.util.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/sets.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/sets.kt index 20bffd938f8..b9b614f146a 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/sets.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/sets.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FULL_JDK import java.util.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.fir.kt index f03f4c96a20..336dc3922ef 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java diff --git a/compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.kt b/compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.kt index 3c5fa188739..40b4be9fcac 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // FILE: J.java diff --git a/compiler/testData/diagnostics/testsWithStdLib/reified/arrayConstruction.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/reified/arrayConstruction.fir.kt index fba40c1657f..846ac885b61 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/reified/arrayConstruction.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/reified/arrayConstruction.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun fail1(): Array = Array(1) { null!! } fun ok1(block: () -> Array): Array = block() diff --git a/compiler/testData/diagnostics/testsWithStdLib/reified/arrayConstruction.kt b/compiler/testData/diagnostics/testsWithStdLib/reified/arrayConstruction.kt index 547e568f876..6c46aac5dc2 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/reified/arrayConstruction.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/reified/arrayConstruction.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE fun fail1(): Array = Array(1) { null!! } fun ok1(block: () -> Array): Array = block() diff --git a/compiler/testData/diagnostics/testsWithStdLib/reified/reifiedNothingSubstitution.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/reified/reifiedNothingSubstitution.fir.kt index 0ce9a24f864..bad24a72390 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/reified/reifiedNothingSubstitution.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/reified/reifiedNothingSubstitution.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNREACHABLE_CODE -UNUSED_VARIABLE -DEPRECATION -// !WITH_NEW_INFERENCE inline fun foo(block: () -> T): String = block().toString() diff --git a/compiler/testData/diagnostics/testsWithStdLib/reified/reifiedNothingSubstitution.kt b/compiler/testData/diagnostics/testsWithStdLib/reified/reifiedNothingSubstitution.kt index 4dc8c7c7fcf..1ef08806039 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/reified/reifiedNothingSubstitution.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/reified/reifiedNothingSubstitution.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNREACHABLE_CODE -UNUSED_VARIABLE -DEPRECATION -// !WITH_NEW_INFERENCE inline fun foo(block: () -> T): String = block().toString() diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers.fir.kt index dfa8092a62f..aadc9fb1e0f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers.fir.kt @@ -1,6 +1,5 @@ // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FILE: 2.kt package b diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers.kt index fd6989c1461..59b728e2021 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers.kt @@ -1,6 +1,5 @@ // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE // FILE: 2.kt package b diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers2.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers2.fir.kt index b67b6649032..1a296925739 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers2.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers2.fir.kt @@ -1,6 +1,5 @@ // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE class A { fun forEach() = this diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers2.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers2.kt index 4280141441d..9b7203ac3bd 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers2.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/hidesMembers2.kt @@ -1,6 +1,5 @@ // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -// !WITH_NEW_INFERENCE class A { fun forEach() = this diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.fir.kt index e373b910122..dcdf6e557c7 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-4711 Error type with no error reported from type inference fun main() { diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.kt index 0c9e380f3ab..ba0999324f0 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE //KT-4711 Error type with no error reported from type inference fun main() { diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/samAgainstFunctionalType.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/samAgainstFunctionalType.fir.kt index 8ee19af58f0..c35dd9409ca 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/samAgainstFunctionalType.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/samAgainstFunctionalType.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: StaticOverrides.java diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/samAgainstFunctionalType.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/samAgainstFunctionalType.kt index 46db0309bb9..0568159f4fa 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/samAgainstFunctionalType.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/samAgainstFunctionalType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !CHECK_TYPE // FILE: StaticOverrides.java diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenerics.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenerics.fir.kt index 60ed93ede03..8c946684397 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenerics.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenerics.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE -// !WITH_NEW_INFERENCE // FILE: Foo.java import kotlin.Unit; diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenerics.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenerics.kt index d322cc0befb..f66e9679830 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenerics.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenerics.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE -// !WITH_NEW_INFERENCE // FILE: Foo.java import kotlin.Unit; diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenericsWithoutRefinedSams.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenericsWithoutRefinedSams.fir.kt index 7109542cc20..a806eb5b43e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenericsWithoutRefinedSams.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenericsWithoutRefinedSams.fir.kt @@ -1,7 +1,6 @@ // !LANGUAGE: -RefinedSamAdaptersPriority -NewInference // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE -// !WITH_NEW_INFERENCE // FILE: Foo.java import kotlin.Unit; diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenericsWithoutRefinedSams.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenericsWithoutRefinedSams.kt index 1570fa4336c..2615131f591 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenericsWithoutRefinedSams.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenericsWithoutRefinedSams.kt @@ -1,7 +1,6 @@ // !LANGUAGE: -RefinedSamAdaptersPriority -NewInference // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE -// !WITH_NEW_INFERENCE // FILE: Foo.java import kotlin.Unit; diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunctionWithoutRefinedSams.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunctionWithoutRefinedSams.fir.kt index 064aa69a9fb..fc08ccbb3da 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunctionWithoutRefinedSams.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunctionWithoutRefinedSams.fir.kt @@ -1,7 +1,6 @@ // !LANGUAGE: -RefinedSamAdaptersPriority -NewInference // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE -// !WITH_NEW_INFERENCE // FILE: Foo.java import kotlin.Unit; diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunctionWithoutRefinedSams.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunctionWithoutRefinedSams.kt index b012f4cfda0..a5c6a91657d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunctionWithoutRefinedSams.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunctionWithoutRefinedSams.kt @@ -1,7 +1,6 @@ // !LANGUAGE: -RefinedSamAdaptersPriority -NewInference // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE -// !WITH_NEW_INFERENCE // FILE: Foo.java import kotlin.Unit; diff --git a/compiler/testData/diagnostics/testsWithStdLib/smartcasts/forEachSafe.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/smartcasts/forEachSafe.fir.kt index 623169cc967..76650fde7d0 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/smartcasts/forEachSafe.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/smartcasts/forEachSafe.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-7186: False "Type mismatch" error fun indexOfMax(a: IntArray): Int? { diff --git a/compiler/testData/diagnostics/testsWithStdLib/smartcasts/forEachSafe.kt b/compiler/testData/diagnostics/testsWithStdLib/smartcasts/forEachSafe.kt index 7d2507945d1..ee3ecd7926d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/smartcasts/forEachSafe.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/smartcasts/forEachSafe.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // KT-7186: False "Type mismatch" error fun indexOfMax(a: IntArray): Int? { diff --git a/compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns/unsupportedFeature.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns/unsupportedFeature.fir.kt index 2a8349677af..7f2b40b9908 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns/unsupportedFeature.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns/unsupportedFeature.fir.kt @@ -1,6 +1,5 @@ // !CHECK_TYPE // !LANGUAGE: -AdditionalBuiltInsMembers -// !WITH_NEW_INFERENCE // SKIP_TXT // FULL_JDK diff --git a/compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns/unsupportedFeature.kt b/compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns/unsupportedFeature.kt index ab99897f682..569e6094d48 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns/unsupportedFeature.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns/unsupportedFeature.kt @@ -1,6 +1,5 @@ // !CHECK_TYPE // !LANGUAGE: -AdditionalBuiltInsMembers -// !WITH_NEW_INFERENCE // SKIP_TXT // FULL_JDK diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/assignTry.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/assignTry.fir.kt index 2c11962adef..2f3683bacfe 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/assignTry.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/assignTry.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // SKIP_TXT class ExcA : Exception() diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/assignTry.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/assignTry.kt index 318c72855e4..1f7a9ff95af 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/assignTry.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/assignTry.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // SKIP_TXT class ExcA : Exception() diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts.fir.kt index 5e7436f0400..84236834c81 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER // SKIP_TXT // Related issue: KT-28370 diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts.kt index d3e56a84bab..e43759a23c6 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER // SKIP_TXT // Related issue: KT-28370 diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts_after.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts_after.fir.kt index 5da0dd0a0d6..6b6715b544b 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts_after.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts_after.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +NewDataFlowForTryExpressions // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER // SKIP_TXT diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts_after.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts_after.kt index 4aa7fd2bdbf..86d84641cd6 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts_after.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts_after.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +NewDataFlowForTryExpressions // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER // SKIP_TXT diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts.fir.kt index 80e1ae92909..96d61ff3763 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER // Related issue: KT-28370 diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts.kt index 9ca17f05112..dcdc9b41e25 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER // Related issue: KT-28370 diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.fir.kt index cf7cd637230..c26ed51a0fd 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +NewDataFlowForTryExpressions // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER // Related issue: KT-28370 diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.kt index c251e9505ca..f59a6f9bbbb 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +NewDataFlowForTryExpressions // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER // Related issue: KT-28370 diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts.fir.kt index 7aa8bdbce75..e25de2a8790 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER // SKIP_TXT // Related issue: KT-28370 diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts.kt index d1bfb3cce10..493e322b83a 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER // SKIP_TXT // Related issue: KT-28370 diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.fir.kt index 7627cccf623..8be2fd96420 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +NewDataFlowForTryExpressions // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER // SKIP_TXT diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.kt index 96a811dbff8..4b5243073a0 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !LANGUAGE: +NewDataFlowForTryExpressions // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER // SKIP_TXT diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/tryExpression.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/tryExpression.fir.kt index 1c38015fdf9..499101dc1f6 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/tryExpression.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/tryExpression.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // SKIP_TXT class ExcA : Exception() diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/tryExpression.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/tryExpression.kt index 78c0c735caa..77b468663c5 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/tryExpression.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/tryExpression.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // SKIP_TXT class ExcA : Exception() diff --git a/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.fir.kt index d3314901a7c..cb6beac0ad4 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import java.util.* diff --git a/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.kt b/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.kt index a6037015e9f..d8a6e640302 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE import java.util.* diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/11.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/11.fir.kt index 3f7e88a86aa..e9c54daa6d0 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/11.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/11.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // TESTCASE NUMBER: 1, 2, 3, 4, 5 @Retention(AnnotationRetention.RUNTIME) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/11.kt b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/11.kt index 436fb58d2ee..09e7c19f17c 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/11.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/11.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/6.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/6.fir.kt index 623c64e2f89..f200e716961 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/6.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/6.fir.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE // TESTCASE NUMBER: 1, 2 @Target(AnnotationTarget.TYPE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/6.kt b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/6.kt index 565d33c4aa9..a12fd9717b0 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/6.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/6.kt @@ -1,5 +1,4 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/7.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/7.fir.kt index 2b0a070d581..6ef987fdf1a 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/7.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/7.fir.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // TESTCASE NUMBER: 1, 2 @Target(AnnotationTarget.TYPE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/7.kt b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/7.kt index e27ee9b838b..f037f2b3251 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/7.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/7.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg/1.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg/1.fir.kt index 74282ed81cb..71aa474a01d 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg/1.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg/1.fir.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // FILE: contracts.kt diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg/1.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg/1.kt index 1b18eb8e123..826cb90e88d 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg/1.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg/1.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/1.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/1.fir.kt index e4c4e2e01b7..329e962da76 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/1.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/1.fir.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // SKIP_TXT // TESTCASE NUMBER: 1 diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/1.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/1.kt index e488e64b3de..730bafb89ef 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/1.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/1.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // SKIP_TXT /* diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/10.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/10.fir.kt index f267c61b863..5677436a9fc 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/10.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/10.fir.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // FILE: contracts.kt diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/10.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/10.kt index 35d82883c83..f3382e5a11c 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/10.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/10.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/15.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/15.fir.kt index ae077910249..0f20453a78a 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/15.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/15.fir.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // FILE: contracts.kt diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/15.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/15.kt index 00b288e938d..699c367cbca 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/15.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/15.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/2.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/2.fir.kt index d71d493507c..2bacaacb953 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/2.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/2.fir.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // SKIP_TXT // TESTCASE NUMBER: 1 diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/2.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/2.kt index 5bec3f39667..584a04960cf 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/2.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/2.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // SKIP_TXT /* diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/4.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/4.fir.kt index 5d0f640a453..0a811400e95 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/4.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/4.fir.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // FILE: contracts.kt diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/4.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/4.kt index cb125138bf6..ac8f7e9f4a5 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/4.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/4.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/5.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/5.fir.kt index 5c200f212ea..c89d5019168 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/5.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/5.fir.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // FILE: contracts.kt diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/5.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/5.kt index e13517a7ef8..88aa37721bb 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/5.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/5.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/6.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/6.fir.kt index 5795800edec..b63ebf9e6f2 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/6.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/6.fir.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // FILE: contracts.kt diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/6.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/6.kt index 4890ef13989..b13a62a8809 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/6.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/6.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/7.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/7.fir.kt index 66499e6797d..078d75274db 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/7.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/7.fir.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // FILE: contracts.kt diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/7.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/7.kt index 39ba9f77be5..ba9f89b324e 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/7.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/7.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/8.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/8.fir.kt index ab9f5489046..71525dd149a 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/8.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/8.fir.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // FILE: contracts.kt diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/8.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/8.kt index 6b88b86d5f5..34209919d59 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/8.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/8.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/2.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/2.fir.kt index 2941017f8f6..f535a627756 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/2.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/2.fir.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // SKIP_TXT // TESTCASE NUMBER: 1 diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/2.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/2.kt index 073cf4ab091..ad0763e7266 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/2.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/2.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // SKIP_TXT /* diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/4.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/4.fir.kt index a432ca8122a..29a780ce06a 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/4.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/4.fir.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // FILE: contracts.kt diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/4.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/4.kt index 4eadb0ac635..dab0535d913 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/4.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/4.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (POSITIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/8.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/8.fir.kt index 727ad27b035..63d8d0a3b2b 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/8.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/8.fir.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE // FILE: contracts.kt diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/8.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/8.kt index 890820cf8cb..69d44d2df6b 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/8.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/8.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (POSITIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/4.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/4.fir.kt index 8136cb2eff9..891a3951127 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/4.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/4.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -UNREACHABLE_CODE -UNUSED_EXPRESSION // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/4.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/4.kt index 18c90a02217..c260f66cb35 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/4.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/4.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -UNREACHABLE_CODE -UNUSED_EXPRESSION // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/5.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/5.fir.kt index 10b33bf4e7c..72a281712d6 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/5.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/5.fir.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -UNREACHABLE_CODE -UNUSED_EXPRESSION // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE import kotlin.contracts.* diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/5.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/5.kt index fd05b41095b..ebee246c2f7 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/5.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/5.kt @@ -1,6 +1,5 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -UNREACHABLE_CODE -UNUSED_EXPRESSION // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts -// !WITH_NEW_INFERENCE /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) diff --git a/idea/testData/quickfix/changeSignature/addFunctionParameter3.kt b/idea/testData/quickfix/changeSignature/addFunctionParameter3.kt index e253bab74f5..a40732630e7 100644 --- a/idea/testData/quickfix/changeSignature/addFunctionParameter3.kt +++ b/idea/testData/quickfix/changeSignature/addFunctionParameter3.kt @@ -1,10 +1,9 @@ // "Add parameter to function 'called'" "true" // WITH_RUNTIME // DISABLE-ERRORS -// !WITH_NEW_INFERENCE fun caller() { called(setOf(1, 2, 3)) } -fun called() {} \ No newline at end of file +fun called() {} diff --git a/idea/testData/quickfix/changeSignature/addFunctionParameter3.kt.after b/idea/testData/quickfix/changeSignature/addFunctionParameter3.kt.after index 201b5a84940..72e0f7d14cb 100644 --- a/idea/testData/quickfix/changeSignature/addFunctionParameter3.kt.after +++ b/idea/testData/quickfix/changeSignature/addFunctionParameter3.kt.after @@ -1,10 +1,9 @@ // "Add parameter to function 'called'" "true" // WITH_RUNTIME // DISABLE-ERRORS -// !WITH_NEW_INFERENCE fun caller() { called(setOf(1, 2, 3)) } -fun called(of: Set) {} \ No newline at end of file +fun called(of: Set) {} diff --git a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/noReturnType.kt b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/noReturnType.kt index 57a4ca903c4..f37a5d322b7 100644 --- a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/noReturnType.kt +++ b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/noReturnType.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_ANONYMOUS_PARAMETER,-UNUSED_VARIABLE // FILE: Sam.java diff --git a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionSimple.kt b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionSimple.kt index ef8b5bd01b2..34d2dec022a 100644 --- a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionSimple.kt +++ b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionSimple.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER,-UNUSED_VARIABLE // FILE: Sam.java diff --git a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithAnnotation.kt b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithAnnotation.kt index a38153f21b4..1c7425fa3af 100644 --- a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithAnnotation.kt +++ b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithAnnotation.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_ANONYMOUS_PARAMETER,-UNUSED_VARIABLE // FILE: Sam.java diff --git a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithoutAnnotation.kt b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithoutAnnotation.kt index 2671b298423..a2e00d31562 100644 --- a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithoutAnnotation.kt +++ b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithoutAnnotation.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_ANONYMOUS_PARAMETER,-UNUSED_VARIABLE // FILE: Sam.java diff --git a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameter.kt b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameter.kt index 15d987229ac..97615e88e55 100644 --- a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameter.kt +++ b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameter.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER,-UNUSED_VARIABLE // FILE: Sam.java diff --git a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameterWithoutAnnotation.kt b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameterWithoutAnnotation.kt index b6f1f790c56..e8e10528104 100644 --- a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameterWithoutAnnotation.kt +++ b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameterWithoutAnnotation.kt @@ -1,4 +1,3 @@ -// !WITH_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER,-UNUSED_VARIABLE // FILE: Sam.java From 26002a040f14e9092592d700ed230871af6258c8 Mon Sep 17 00:00:00 2001 From: "Denis.Zharkov" Date: Mon, 24 May 2021 12:42:39 +0300 Subject: [PATCH 3/4] Remove OI/NI attributes from test data --- .../diagnostics/tests/AutoCreatedIt.kt | 10 +++---- .../tests/BinaryCallsOnNullableValues.kt | 6 ++-- .../tests/CompareToWithErrorType.kt | 2 +- .../tests/DefaultValuesTypechecking.kt | 8 ++--- .../tests/FunctionCalleeExpressions.kt | 16 +++++----- .../diagnostics/tests/FunctionReturnTypes.kt | 4 +-- .../tests/InvokeAndRecursiveResolve.kt | 4 +-- .../diagnostics/tests/Nullability.fir.kt | 2 +- .../testData/diagnostics/tests/Nullability.kt | 4 +-- .../diagnostics/tests/PackageQualified.kt | 2 +- .../diagnostics/tests/QualifiedExpressions.kt | 4 +-- .../tests/RecursiveTypeInference.kt | 2 +- .../diagnostics/tests/ReserveYield.kt | 2 +- .../tests/ResolveOfJavaGenerics.kt | 2 +- .../diagnostics/tests/ResolveToJava.kt | 4 +-- .../diagnostics/tests/SafeCallUnknownType.kt | 2 +- .../diagnostics/tests/StarsInFunctionCalls.kt | 11 ++++--- .../diagnostics/tests/TypeInference.kt | 4 +-- .../AmbigiousAnnotationConstructor.kt | 2 +- .../annotations/annotationRenderingInTypes.kt | 4 +-- .../tests/annotations/options/functions.kt | 2 +- .../annotations/options/targets/field.fir.kt | 2 +- .../annotations/options/targets/field.kt | 4 +-- .../rendering/memberProjectedOut.kt | 2 +- .../typeMismatchDueToTypeProjections.kt | 2 +- .../bound/reservedExpressionSyntax3.kt | 2 +- .../constraintFromLHSWithCorrectDirection.kt | 2 +- .../expectedTypeAsSubtypeOfFunctionType.kt | 4 +-- .../function/lhsNotAClass.kt | 5 ++-- .../callableReference/function/unresolved.kt | 4 +-- ...enceWithDefaultValueAsOtherFunctionType.kt | 3 +- .../generic/argumentAndReturnExpectedType.kt | 4 +-- .../generic/explicitTypeArguments.kt | 4 +-- .../generic/genericExtensionFunction.kt | 4 +-- .../genericFunctionsWithNullableTypes.kt | 6 ++-- .../generic/nestedCallWithOverload.kt | 2 +- ...olutionGenericCallableWithNullableTypes.kt | 6 ++-- .../generic/resolutionWithGenericCallable.kt | 8 ++--- .../tests/callableReference/kt34314.kt | 2 +- .../tests/callableReference/kt34314_lambda.kt | 2 +- .../resolve/byGenericArgType.kt | 2 +- ...ersectionTypeOverloadWithWrongParameter.kt | 2 +- .../resolve/withGenericFun.kt | 2 +- .../resolve/withPlaceholderTypes.kt | 4 +-- .../tests/cast/AsInBlockWithReturnType.kt | 12 ++++---- .../diagnostics/tests/cast/UselessSafeCast.kt | 2 +- .../diagnostics/tests/cast/kt15161.kt | 2 +- .../tests/checkArguments/SpreadVarargs.kt | 6 ++-- .../arrayAccessSetTooManyArgs.kt | 2 +- .../checkArguments/kt1897_diagnostic_part.kt | 2 +- .../checkArguments/overloadedFunction.kt | 2 +- .../testData/diagnostics/tests/checkType.kt | 4 +-- .../argumentsOfAnnotation.kt | 2 +- .../argumentsOfAnnotationWithKClass.kt | 4 +-- .../basicCollectionLiterals.kt | 6 ++-- .../collectionLiteralsWithVarargs.kt | 6 ++-- .../defaultValuesInAnnotation.kt | 8 ++--- .../noCollectionLiterals.kt | 2 +- .../UninitializedOrReassignedVariables.kt | 2 +- .../controlFlowAnalysis/elvisNotProcessed.kt | 10 +++---- .../tests/controlFlowAnalysis/kt10805.kt | 8 ++--- .../controlStructures/ifElseIntersection.kt | 6 ++-- .../controlStructures/ifInResultOfLambda.kt | 4 +-- .../ifToAnyDiscriminatingUsages.kt | 6 ++-- .../controlStructures/ifWhenWithoutElse.kt | 8 ++--- .../improperElseInExpression.kt | 2 +- .../tests/controlStructures/kt1075.kt | 2 +- .../tests/controlStructures/kt4310.kt | 6 ++-- .../kt770.kt351.kt735_StatementType.kt | 4 +-- .../lambdasInExclExclAndElvis.kt | 4 +-- .../tests/controlStructures/tryReturnType.kt | 8 ++--- .../typeInferenceForExclExcl.kt | 4 +-- .../controlStructures/whenInResultOfLambda.kt | 4 +-- .../extensionComponentsOnNullable.kt | 4 +-- .../dataFlowInfoTraversal/BinaryExpression.kt | 2 +- .../MultiDeclarationErrors.kt | 2 +- .../localVariablesWithTypeParameters_1_3.kt | 2 +- .../localVariablesWithTypeParameters_1_4.kt | 2 +- .../namedFunAsLastExpressionInBlock.kt | 18 +++++------ .../differentDelegatedExpressions.kt | 8 ++--- .../inference/extensionProperty.kt | 4 +-- .../inference/genericMethodInGenericClass.kt | 4 +-- .../inference/manyIncompleteCandidates.kt | 2 +- .../noErrorsForImplicitConstraints.kt | 8 ++--- .../noExpectedTypeForSupertypeConstraint.kt | 2 +- .../delegatedProperty/propertyDefferedType.kt | 2 +- .../provideDelegate/commonCaseForInference.kt | 2 +- .../provideDelegate/hostAndReceiver2.kt | 2 +- .../provideDelegate/inferenceFromReceiver1.kt | 2 +- .../provideDelegate/inferenceFromReceiver2.kt | 2 +- .../noOperatorModifierOnProvideDelegate.kt | 3 +- .../provideDelegate/setValue.kt | 4 +-- .../unsupportedOperatorProvideDelegate.kt | 2 +- .../tests/delegatedProperty/recursiveType.kt | 6 ++-- .../typeMismatchForGetReturnType.kt | 2 +- .../delegation/DelegationExpectedType.kt | 2 +- .../tests/enum/kt8972_cloneNotAllowed.kt | 2 +- .../tests/extensions/ExtensionFunctions.kt | 2 +- .../throwOutCandidatesByReceiver.kt | 8 ++--- .../InferenceParametersTypes.kt | 2 +- .../ReceiverByExpectedType.kt | 2 +- .../WithGenericParameters.kt | 6 ++-- .../ExpectedParametersTypesMismatch.kt | 18 +++++------ .../LabeledFunctionLiterals.kt | 2 +- ...gnmentOperationInLambdaWithExpectedType.kt | 2 +- .../complexInference.kt | 6 ++-- .../inferredFunctionalType.kt | 6 ++-- .../destructuringInLambdas/noExpectedType.kt | 4 +-- .../destructuringInLambdas/redeclaration.kt | 14 ++++----- .../destructuringInLambdas/simple.kt | 2 +- .../destructuringInLambdas/underscore.kt | 20 ++++++------- .../kt7383_starProjectedFunction.kt | 2 +- .../functionLiterals/return/NoCommonSystem.kt | 4 +-- .../functionLiterals/return/SmartCast.kt | 2 +- .../functionLiterals/returnNullWithReturn.kt | 2 +- .../diagnostics/tests/generics/Projections.kt | 8 ++--- .../fromSuperClassesLocalInsideInner.kt | 2 +- .../tests/generics/innerClasses/innerTP.kt | 2 +- .../innerClasses/innerUncheckedCast.kt | 2 +- .../tests/generics/innerClasses/iterator.kt | 2 +- .../generics/innerClasses/qualifiedOuter.kt | 2 +- .../generics/innerClasses/simpleOutUseSite.kt | 6 ++-- .../diagnostics/tests/generics/kt30590.kt | 2 +- .../diagnostics/tests/generics/kt34729.kt | 4 +-- .../nullability/expressionsBoundsViolation.kt | 7 ++--- .../tests/generics/nullability/smartCasts.kt | 8 ++--- .../generics/nullability/smartCastsOnThis.kt | 12 ++++---- .../nullability/smartCastsValueArgument.kt | 8 ++--- .../generics/nullability/tpBoundsViolation.kt | 4 +-- .../nullability/tpBoundsViolationVariance.kt | 20 ++++++------- .../generics/nullability/useAsReceiver.kt | 4 +-- .../nullability/useAsValueArgument.kt | 2 +- .../tests/generics/projectionsScope/addAll.kt | 14 ++++----- .../extensionReceiverTypeMismatch.kt | 4 +-- .../projectionsScope/inValueParameter.kt | 2 +- .../multipleArgumentProjectedOut.kt | 2 +- .../projectedOutConventions.kt | 6 ++-- .../projectionsScope/projectedOutSmartCast.kt | 8 ++--- .../typeMismatchConventions.kt | 6 ++-- .../projectionsScope/typeParameterBounds.kt | 20 ++++++------- .../generics/projectionsScope/varargs.kt | 6 ++-- .../tests/generics/starProjections/invalid.kt | 2 +- .../generics/tpAsReified/InConstructor.kt | 2 +- .../tests/generics/tpAsReified/InFunction.kt | 2 +- .../wrongNumberOfTypeArgumentsDiagnostic.kt | 4 +-- .../diagnostics/tests/implicitIntersection.kt | 8 ++--- .../tests/implicitNestedIntersection.kt | 4 +-- .../tests/imports/ClassClashStarImport.kt | 4 +-- .../diagnostics/tests/imports/Imports.kt | 2 +- .../tests/imports/twoImportLists.kt | 2 +- .../NoSenselessComparisonForErrorType.kt | 2 +- .../incompleteCode/checkNothingIsSubtype.kt | 2 +- .../incompleteCode/controlStructuresErrors.kt | 9 +++--- .../arrayExpression.kt | 2 +- .../noTypeParamsInReturnType.kt | 2 +- .../NoInferenceFromDeclaredBounds.kt | 2 +- .../cannotCompleteResolveAmbiguity.kt | 2 +- ...notCompleteResolveFunctionLiteralsNoUse.kt | 2 +- ...cannotCompleteResolveNoInfoForParameter.kt | 2 +- ...nnotCompleteResolveWithFunctionLiterals.kt | 2 +- .../cannotCaptureInProjection.kt | 8 ++--- .../capturedTypes/captureForNullableTypes.kt | 12 ++++---- .../captureFromNullableTypeVariable.kt | 8 ++--- .../captureTypeOnlyOnTopLevel.kt | 4 +-- .../expectedTypeMismatchWithInVariance.kt | 2 +- .../tests/inference/capturedTypes/kt2872.kt | 2 +- .../noCaptureTypeErrorForNonTopLevel.kt | 2 +- .../coercionWithExpectedTypeAndBound.kt | 5 ++-- .../coercionWithoutExpectedType.kt | 3 +- ...sionWithAnonymousFunctionsAndUnresolved.kt | 2 +- .../indirectCoercionWithExpectedType.kt | 5 ++-- .../tests/inference/commonSystem/kt32818.kt | 2 +- .../completeInferenceIfManyFailed.kt | 2 +- .../inference/conflictingSubstitutions.kt | 4 +-- ...aintFromVariantTypeWithNestedProjection.kt | 4 +-- .../constraintOnFunctionLiteral.kt | 3 +- .../tests/inference/constraints/kt6320.kt | 2 +- .../tests/inference/constraints/kt8879.kt | 2 +- ...ueToRecursiveFlexibleTypesWithWildcards.kt | 2 +- .../notNullConstraintOnNullableType.kt | 4 +-- .../tests/inference/dependantOnVariance.kt | 20 ++++++------- .../inference/expectedTypeAdditionalTest.kt | 2 +- .../inference/expectedTypeDoubleReceiver.kt | 7 ++--- .../tests/inference/expectedTypeFromCast.kt | 6 ++-- .../inference/expectedTypeWithGenerics.kt | 2 +- .../fixationOrderForProperConstraints.kt | 2 +- .../inference/functionPlaceholderError.kt | 2 +- ...itInvokeExtensionWithFunctionalArgument.kt | 2 +- .../diagnostics/tests/inference/kt28598.kt | 8 ++--- .../diagnostics/tests/inference/kt28654.kt | 4 +-- .../diagnostics/tests/inference/kt6175.kt | 16 +++++----- .../nestedCalls/binaryExpressions.kt | 16 +++++----- .../inference/noInformationForParameter.kt | 2 +- ...FunctionalExpectedTypeForLambdaArgument.kt | 8 ++--- .../tests/inference/nothingType/kt34335.kt | 4 +-- .../lambdaNothingAndExpectedType.kt | 4 +-- ...ughInformationFromNullabilityConstraint.kt | 6 ++-- .../inference/possibleCycleOnConstraints.kt | 4 +-- .../publicApproximation/chainedLambdas.kt | 4 +-- ...ntersectionAfterSmartCastInLambdaReturn.kt | 8 ++--- ...martCastInLambdaReturnAfterIntersection.kt | 2 +- .../publicApproximation/twoIntersections.kt | 2 +- .../recursiveLocalFuns/localFactorial.kt | 2 +- .../inference/recursiveLocalFuns/selfCall.kt | 4 +-- .../tests/inference/regressions/kt1127.kt | 2 +- .../tests/inference/regressions/kt2200.kt | 2 +- .../tests/inference/regressions/kt2283.kt | 2 +- .../tests/inference/regressions/kt2286.kt | 6 ++-- .../tests/inference/regressions/kt2445.kt | 2 +- .../tests/inference/regressions/kt2741.kt | 2 +- .../tests/inference/regressions/kt2838.kt | 2 +- .../tests/inference/regressions/kt2883.kt | 2 +- .../inference/regressions/kt32862_both.kt | 2 +- .../inference/regressions/kt32862_none.kt | 2 +- .../tests/inference/regressions/kt33629.kt | 2 +- .../tests/inference/regressions/kt36342.kt | 3 +- .../tests/inference/regressions/kt36342_2.kt | 7 ++--- .../tests/inference/regressions/kt731.kt | 2 +- .../tests/inference/regressions/kt742.kt | 2 +- .../tests/inference/regressions/kt832.kt | 2 +- .../tests/inference/regressions/kt948.kt | 2 +- .../FunctionPlaceholder.kt | 10 +++---- .../cannotInferParameterTypeWithInference.kt | 2 +- .../inferTypeFromUnresolvedArgument.kt | 4 +-- .../subtypeForInvariantWithErrorGenerics.kt | 4 +-- .../typeInferenceFailedOnComponentN.kt | 2 +- .../typeInferenceFailedOnIteratorCall.kt | 2 +- .../inference/typeConstructorMismatch.kt | 4 +-- .../typeInferenceExpectedTypeMismatch.kt | 8 ++--- .../upperBounds/doNotInferFromBoundsOnly.kt | 6 ++-- .../upperBounds/intersectUpperBounds.kt | 2 +- .../useBoundsToInferTypeParamsSimple.kt | 2 +- .../diagnostics/tests/infos/SmartCasts.kt | 10 +++---- .../inline/nonLocalReturns/lambdaAsGeneric.kt | 3 +- .../qualifiedExpression/genericNestedClass.kt | 2 +- .../classTypeParameterInferredFromArgument.kt | 2 +- .../j+k/genericConstructor/innerClass.kt | 2 +- .../noClassTypeParametersInvParameter.kt | 2 +- .../tests/j+k/genericConstructor/recursive.kt | 2 +- .../tests/j+k/genericConstructor/superCall.kt | 4 +-- .../superCallImpossibleToInfer.kt | 8 ++--- .../genericConstructorWithMultipleBounds.kt | 4 +-- .../tests/j+k/sam/enhancedSamConstructor.kt | 4 +-- .../tests/j+k/wrongVarianceInJava.kt | 2 +- .../const/arrayInAnnotationArgumentType.kt | 2 +- ...classVsFunctionGenericsInParamsMismatch.kt | 2 +- .../tests/multiplatform/namedArguments.kt | 6 ++-- .../nullabilityAndSmartCasts/AssertNotNull.kt | 2 +- .../tests/nullabilityAndSmartCasts/kt2216.kt | 2 +- .../safeCallOnTypeWithNullableUpperBound.kt | 2 +- .../tests/numbers/characterIsNotANumber.kt | 2 +- .../numbers/doublesInSimpleConstraints.kt | 2 +- .../tests/numbers/intValuesOutOfRange.kt | 2 +- .../numbers/numbersInSimpleConstraints.kt | 16 +++++----- .../tests/operatorsOverloading/kt11300.kt | 5 ++-- .../tests/operatorsOverloading/kt13330.kt | 2 +- .../diagnostics/tests/overload/kt2493.kt | 2 +- .../commonSupertype/withNothing.kt | 2 +- .../platformTypes/methodCall/singleton.kt | 2 +- .../methodTypeParameter.kt | 4 +-- .../tests/platformTypes/rawTypes/samRaw.kt | 2 +- .../inferenceFromGetters/cantBeInferred.kt | 4 +-- .../inferenceFromGetters/objectExpression.kt | 2 +- .../inferenceFromGetters/recursiveGetter.kt | 10 +++---- .../unsupportedInferenceFromGetters.kt | 6 ++-- .../qualifiedExpression/TypeWithError.kt | 8 ++--- .../calleeExpressionAsCallExpression.kt | 2 +- .../nullCalleeExpression.kt | 2 +- .../tests/recovery/absentLeftHandSide.kt | 4 +-- .../diagnostics/tests/regressions/Jet81.kt | 6 ++-- ...rrectResultSubstitutorForErrorCandidate.kt | 2 +- .../diagnostics/tests/regressions/ea72837.kt | 4 +-- .../regressions/itselfAsUpperBoundLocal.kt | 2 +- .../diagnostics/tests/regressions/kt10243.kt | 4 +-- .../diagnostics/tests/regressions/kt10843.kt | 4 +-- .../diagnostics/tests/regressions/kt11979.kt | 2 +- .../diagnostics/tests/regressions/kt12898.kt | 6 ++-- .../diagnostics/tests/regressions/kt13685.kt | 2 +- .../tests/regressions/kt1489_1728.kt | 2 +- .../diagnostics/tests/regressions/kt24488.kt | 2 +- .../diagnostics/tests/regressions/kt312.kt | 2 +- .../diagnostics/tests/regressions/kt328.kt | 7 ++--- .../diagnostics/tests/regressions/kt353.kt | 4 +-- .../diagnostics/tests/regressions/kt557.kt | 2 +- .../dslMarkerWithTypealiasRecursion.kt | 4 +-- .../invoke/errors/ambiguityForInvoke.kt | 6 ++-- .../errors/typeInferenceErrorForInvoke.kt | 4 +-- .../invoke/errors/unsafeCallWithInvoke.kt | 2 +- .../wrongReceiverForInvokeOnExpression.kt | 11 ++++--- .../invoke/extensionValueAsNonExtension.kt | 2 +- .../diagnostics/tests/resolve/kt36264.kt | 2 +- ...eTypeInferenceForNestedInNoneApplicable.kt | 2 +- .../resolve/nestedCalls/twoTypeParameters.kt | 2 +- .../tests/resolve/newLineLambda.kt | 8 ++--- .../resolve/overloadConflicts/allLambdas.kt | 2 +- .../resolve/overloadConflicts/genericClash.kt | 4 +-- .../resolve/overloadConflicts/kt10640.kt | 2 +- .../resolve/overloadConflicts/kt31670.kt | 2 +- .../resolve/overloadConflicts/kt31758.kt | 2 +- ...olutionOnNullableContravariantParameter.kt | 2 +- .../resolve/overloadConflicts/withVariance.kt | 2 +- .../specialConstructions/constantsInIf.kt | 8 ++--- .../specialConstructions/elvisAsCall.kt | 4 +-- .../specialConstructions/exclExclAsCall.kt | 4 +-- .../multipleSuperClasses.kt | 2 +- .../reportTypeMismatchDeeplyOnBranches.kt | 10 +++---- .../resolve/wrongNumberOfTypeArguments.kt | 4 +-- .../syntheticSAMExtensions.kt | 2 +- .../protectedVisibility/unstableSmartCast.kt | 2 +- .../constructorCallType.kt | 4 +-- .../tests/smartCasts/alwaysNull.kt | 6 ++-- .../tests/smartCasts/alwaysNullWithJava.kt | 3 +- .../tests/smartCasts/castchecks/variables.kt | 4 +-- .../tests/smartCasts/comparisonUnderAnd.kt | 4 +-- .../tests/smartCasts/complexComparison.kt | 2 +- .../tests/smartCasts/elvis/impossible.kt | 4 +-- .../smartCasts/inference/intersectionTypes.kt | 8 ++--- .../tests/smartCasts/inference/kt29767.kt | 2 +- .../intersectionScope/flexibleTypes.kt | 14 ++++----- .../diagnostics/tests/smartCasts/kt10444.kt | 2 +- .../diagnostics/tests/smartCasts/kt2865.kt | 2 +- .../diagnostics/tests/smartCasts/kt30927.kt | 18 +++++------ .../lambdaArgumentWithBoundWithoutType.kt | 8 ++--- .../smartCasts/variables/ifNullAssignment.kt | 2 +- .../tests/smartCasts/varnotnull/assignment.kt | 2 +- .../varnotnull/boundInitializerWrong.kt | 4 +-- .../varnotnull/initInTryReturnInCatch.kt | 2 +- .../smartCasts/varnotnull/initialization.kt | 2 +- .../varnotnull/plusplusMinusminus.kt | 2 +- .../postfixNotnullClassIncrement.kt | 2 +- .../varnotnull/prefixNotnullClassIncrement.kt | 2 +- .../varnotnull/unnecessaryWithMap.kt | 3 +- .../tests/smartCasts/varnotnull/varIntNull.kt | 2 +- .../tests/smartCasts/varnotnull/varNull.kt | 2 +- .../tests/substitutions/starProjections.kt | 7 ++--- ...utionForOverloadResolutionWithAmbiguity.kt | 2 +- ...tionForOverloadResolutionWithErrorTypes.kt | 2 +- .../samAdapters/InnerClassInGeneric.kt | 2 +- .../samAdapters/Private.kt | 2 +- .../ambiguousSuperWithGenerics.kt | 10 +++---- .../unqualifiedSuperWithCallableProperty.kt | 2 +- .../implicitNothingInReturnPosition.kt | 2 +- .../boundsViolationInTypeAliasExpansion.kt | 4 +-- .../innerClassTypeAliasConstructor.kt | 2 +- ...erClassTypeAliasConstructorInSupertypes.kt | 10 +++---- .../typealias/innerTypeAliasConstructor.kt | 4 +-- ...ximationInTypeAliasArgumentSubstitution.kt | 2 +- .../tests/typealias/starProjection.kt | 4 +-- .../typeAliasConstructorCrazyProjections.kt | 4 +-- .../typeAliasConstructorForProjection.kt | 8 ++--- ...iasConstructorForProjectionInSupertypes.kt | 8 ++--- ...eAliasConstructorTypeArgumentsInference.kt | 16 +++++----- ...rTypeArgumentsInferenceWithNestedCalls2.kt | 4 +-- ...rTypeArgumentsInferenceWithPhantomTypes.kt | 4 +-- ...NumberOfArgumentsInTypeAliasConstructor.kt | 8 ++--- .../conversionOfSignedToUnsigned.kt | 2 +- .../inferenceForSignedAndUnsignedTypes.kt | 4 +-- ...nedToUnsignedConversionWithExpectedType.kt | 2 +- .../varargs/NullableTypeForVarargArgument.kt | 8 ++--- .../assignArrayToVararagInNamedForm_1_3.kt | 2 +- .../assignArrayToVararagInNamedForm_1_4.kt | 2 +- .../assigningArraysToVarargsInAnnotations.kt | 2 +- ...ElementsInNamedFormFunDeprecation_after.kt | 4 +-- ...lementsInNamedFormFunDeprecation_before.kt | 4 +-- .../noAssigningArraysToVarargsFeature.kt | 14 ++++----- .../diagnostics/tests/when/kt10439.kt | 8 ++--- .../diagnostics/tests/when/kt10809.kt | 5 ++-- .../testData/diagnostics/tests/when/kt9929.kt | 4 +-- .../testData/diagnostics/tests/when/kt9972.kt | 10 +++---- .../when/whenAndLambdaWithExpectedType.kt | 2 +- .../tests/when/whenWithNothingAndLambdas.kt | 18 +++++------ .../testsWithStdLib/addAllProjection.kt | 11 ++++--- .../suppressOnFunctionReference.kt | 2 +- .../javaAnnotationWithVarargArgument.kt | 3 +- .../kotlinAnnotationWithVarargArgument.kt | 3 +- .../kClassArrayInAnnotationsInVariance.kt | 5 ++-- .../kClassArrayInAnnotationsOutVariance.kt | 6 ++-- .../testsWithStdLib/assert/cast.kt | 4 +-- .../testsWithStdLib/assert/safeCall.kt | 13 ++++---- .../testsWithStdLib/commonCollections.kt | 9 +++--- .../contracts/smartcasts/externalArguments.kt | 2 +- .../inference/applyInsideCoroutine.kt | 20 ++++++------- .../extensionWithNonValuableConstraints.kt | 12 ++++---- ...nsWithNonValuableConstraintsGenericBase.kt | 6 ++-- .../coroutines/inference/incorrectCalls.kt | 4 +-- .../inferCoroutineTypeInOldVersion.kt | 4 +-- .../coroutines/inference/kt36220.kt | 4 +-- .../inference/recursiveGenerators2.kt | 4 +-- .../resolveUsualCallWithBuilderInference.kt | 4 +-- .../inference/suspendCallsWithErrors.kt | 6 ++-- .../inference/suspendCallsWrongUpperBound.kt | 2 +- .../useInferenceInformationFromExtension.kt | 2 +- .../inference/withUninferredParameter.kt | 2 +- .../testsWithStdLib/coroutines/kt18292.kt | 2 +- .../coroutines/lambdaExpectedType.kt | 4 +-- .../coroutines/suspendCoroutineOrReturn.kt | 2 +- .../coroutines/suspendExternalFunctions.kt | 2 +- .../coroutines/suspendFunctions.kt | 4 +-- .../coroutines/tryCatchLambda.kt | 4 +-- .../testsWithStdLib/elvisOnJavaList.kt | 3 +- .../testsWithStdLib/implicitCastToAny.kt | 9 +++--- .../annotationsForResolve/exactAnnotation.kt | 2 +- .../annotationsForResolve/kt26698.kt | 4 +-- .../annotationsForResolve/kt29307.kt | 4 +-- .../noInferAndLowPriority.kt | 2 +- .../noInferAnnotation.kt | 14 ++++----- .../onlyInputTypesAndLowPriority.kt | 2 +- .../onlyInputTypesAndTopLevelCapturedTypes.kt | 8 ++--- .../onlyInputTypesCaptured.kt | 6 ++-- .../onlyInputTypesUpperBound.kt | 2 +- .../testsWithStdLib/inference/kt27772.kt | 3 +- .../java/concurrentHashMapContains.kt | 16 +++++----- .../java/concurrentHashMapContainsError.kt | 16 +++++----- .../purelyImplementedCollection/maps.kt | 18 +++++------ .../mapsWithNullableKey.kt | 4 +-- .../mapsWithNullableValues.kt | 8 ++--- .../kt9820_javaFunctionTypeInheritor.kt | 3 +- .../testsWithStdLib/resolve/kt4711.kt | 6 ++-- .../targetedBuiltIns/unsupportedFeature.kt | 2 +- .../testsWithStdLib/tryCatch/assignTry.kt | 4 +-- .../tryCatch/falseNegativeSmartcasts_after.kt | 2 +- .../tryCatch/falsePositiveSmartcasts_after.kt | 24 +++++++-------- .../testsWithStdLib/tryCatch/tryExpression.kt | 4 +-- .../when/noTypeArgumentsInConstructor.kt | 5 ++-- .../annotations/type-annotations/neg/6.kt | 2 +- .../contracts/analysis/common/neg/1.kt | 4 +-- .../contracts/analysis/smartcasts/neg/1.kt | 10 +++---- .../contracts/analysis/smartcasts/neg/2.kt | 2 +- .../contracts/analysis/smartcasts/neg/4.kt | 8 ++--- .../contracts/analysis/smartcasts/neg/7.kt | 30 +++++++++---------- .../contracts/analysis/smartcasts/neg/8.kt | 8 ++--- .../contracts/analysis/smartcasts/pos/2.kt | 2 +- .../contracts/analysis/smartcasts/pos/4.kt | 4 +-- .../contracts/analysis/smartcasts/pos/8.kt | 2 +- .../contractBuilder/common/neg/5.kt | 4 +-- .../testData/diagnostics/noReturnType.kt | 4 +-- .../diagnostics/samConversionSimple.kt | 4 +-- .../testData/diagnostics/samWithAnnotation.kt | 4 +-- .../diagnostics/samWithoutAnnotation.kt | 6 ++-- .../testData/diagnostics/singleParameter.kt | 6 ++-- .../singleParameterWithoutAnnotation.kt | 4 +-- 441 files changed, 1005 insertions(+), 1037 deletions(-) diff --git a/compiler/testData/diagnostics/tests/AutoCreatedIt.kt b/compiler/testData/diagnostics/tests/AutoCreatedIt.kt index 8a91f608b6d..6dc2b04ea2f 100644 --- a/compiler/testData/diagnostics/tests/AutoCreatedIt.kt +++ b/compiler/testData/diagnostics/tests/AutoCreatedIt.kt @@ -2,17 +2,17 @@ fun text() { "direct:a" to "mock:a" "direct:a" on {it.body == ""} to "mock:a" "direct:a" on {it -> it.body == ""} to "mock:a" - bar {1} - bar {it + 1} + bar {1} + bar {it + 1} bar {it, it1 -> it} bar1 {1} bar1 {it + 1} - bar2 {} + bar2 {} bar2 {1} - bar2 {it} - bar2 {it -> it} + bar2 {it} + bar2 {it -> it} } fun bar(f : (Int, Int) -> Int) {} diff --git a/compiler/testData/diagnostics/tests/BinaryCallsOnNullableValues.kt b/compiler/testData/diagnostics/tests/BinaryCallsOnNullableValues.kt index 135111a7019..12895c9072d 100644 --- a/compiler/testData/diagnostics/tests/BinaryCallsOnNullableValues.kt +++ b/compiler/testData/diagnostics/tests/BinaryCallsOnNullableValues.kt @@ -5,10 +5,10 @@ class A() { fun f(): Unit { var x: Int? = 1 x = null - x + 1 + x + 1 x plus 1 x < 1 - x += 1 + x += 1 x == 1 x != 1 @@ -21,7 +21,7 @@ fun f(): Unit { x === 1 x !== 1 - x..2 + x..2 x in 1..2 val y : Boolean? = true diff --git a/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt b/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt index 9896a869e34..de09d46c20f 100644 --- a/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt +++ b/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt @@ -1,5 +1,5 @@ fun test() { - if (x > 0) { + if (x > 0) { } } diff --git a/compiler/testData/diagnostics/tests/DefaultValuesTypechecking.kt b/compiler/testData/diagnostics/tests/DefaultValuesTypechecking.kt index 5ae410941ce..bf8107c328a 100644 --- a/compiler/testData/diagnostics/tests/DefaultValuesTypechecking.kt +++ b/compiler/testData/diagnostics/tests/DefaultValuesTypechecking.kt @@ -15,13 +15,13 @@ val z = 3 fun foo(x: Int = y, y: Int = x, i : Int = z): Int = x + y -fun foo(x: () -> Int = { y }, y: Int = x(), i : Int = z): Int = x() + y +fun foo(x: () -> Int = { y }, y: Int = x(), i : Int = z): Int = x() + y -fun bar(x: () -> Int = { y; 1 }, y: Int) {} +fun bar(x: () -> Int = { y; 1 }, y: Int) {} fun baz( x: () -> Int = { - fun bar(xx: () -> Int = { y; 1 }) = xx + fun bar(xx: () -> Int = { y; 1 }) = xx bar()() }, y: Int @@ -30,7 +30,7 @@ fun baz( fun boo( x: () -> Int = { - fun bar(): Int = y + fun bar(): Int = y bar() }, y: Int diff --git a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt index f09c9082616..03c630f7405 100644 --- a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt +++ b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt @@ -29,26 +29,26 @@ fun fooT2() : (t : T) -> T { fun main(args : Array) { args.foo()() args.foo1()() - a.foo1()() - a.foo1()(a) + a.foo1()() + a.foo1()(a) args.foo1()(1) args.foo1()("1") - a.foo1()("1") - a.foo1()(a) + a.foo1()("1") + a.foo1()(a) foo2()({}) foo2(){} (foo2()){} - (foo2()){x -> } - foo2()({x -> }) + (foo2()){x -> } + foo2()({x -> }) val a = fooT1(1)() checkSubtype(a) val b = fooT2()(1) checkSubtype(b) - fooT2()(1) // : Any? + fooT2()(1) // : Any? 1() 1{} @@ -78,7 +78,7 @@ fun main1() { fun test() { {x : Int -> 1}(); (fun Int.() = 1)() - "sd".(fun Int.() = 1)() + "sd".(fun Int.() = 1)() val i : Int? = null i.(fun Int.() = 1)(); {}() diff --git a/compiler/testData/diagnostics/tests/FunctionReturnTypes.kt b/compiler/testData/diagnostics/tests/FunctionReturnTypes.kt index a3227ad6bd3..3b6a8a3cf07 100644 --- a/compiler/testData/diagnostics/tests/FunctionReturnTypes.kt +++ b/compiler/testData/diagnostics/tests/FunctionReturnTypes.kt @@ -145,14 +145,14 @@ fun illegalConstantBlock(): String { return 1 } fun illegalIfBody(): Int = - if (1 < 2) 'a' else { 1.0 } + if (1 < 2) 'a' else { 1.0 } fun illegalIfBlock(): Boolean { if (1 < 2) return false else { return 1 } } fun illegalReturnIf(): Char { - return if (1 < 2) 'a' else { 1 } + return if (1 < 2) 'a' else { 1 } } fun returnNothing(): Nothing { diff --git a/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.kt b/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.kt index 6628cb9d72f..81c5605959f 100644 --- a/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.kt +++ b/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.kt @@ -13,6 +13,6 @@ class B { } class C { - val bar = test() - val test = bar() + val bar = test() + val test = bar() } diff --git a/compiler/testData/diagnostics/tests/Nullability.fir.kt b/compiler/testData/diagnostics/tests/Nullability.fir.kt index 8d5ec364e26..edbc6d50f1a 100644 --- a/compiler/testData/diagnostics/tests/Nullability.fir.kt +++ b/compiler/testData/diagnostics/tests/Nullability.fir.kt @@ -145,7 +145,7 @@ fun test() { out?.println(); val out2 : java.io.PrintStream? = null - + while (out2 == null) { out2?.println(); out2.println(); diff --git a/compiler/testData/diagnostics/tests/Nullability.kt b/compiler/testData/diagnostics/tests/Nullability.kt index 3889d2be13c..0bd4db0df4d 100644 --- a/compiler/testData/diagnostics/tests/Nullability.kt +++ b/compiler/testData/diagnostics/tests/Nullability.kt @@ -145,10 +145,10 @@ fun test() { out?.println(); val out2 : java.io.PrintStream? = null - + while (out2 == null) { out2?.println(); - out2.println(); + out2.println(); } out2.println() diff --git a/compiler/testData/diagnostics/tests/PackageQualified.kt b/compiler/testData/diagnostics/tests/PackageQualified.kt index 489e40cebc6..4079d93c9c3 100644 --- a/compiler/testData/diagnostics/tests/PackageQualified.kt +++ b/compiler/testData/diagnostics/tests/PackageQualified.kt @@ -24,7 +24,7 @@ package foobar.a // FILE: d.kt package foobar -val x1 = a.a +val x1 = a.a val x2 = foobar.a.a val y1 = foobar.a.b diff --git a/compiler/testData/diagnostics/tests/QualifiedExpressions.kt b/compiler/testData/diagnostics/tests/QualifiedExpressions.kt index 969ef63c950..95ac6af0932 100644 --- a/compiler/testData/diagnostics/tests/QualifiedExpressions.kt +++ b/compiler/testData/diagnostics/tests/QualifiedExpressions.kt @@ -4,8 +4,8 @@ fun test(s: IntRange?) { val a: Int = s?.start val b: Int? = s?.start val c: Int = s?.start ?: -11 - val d: Int = s?.start ?: "empty" - val e: String = s?.start ?: "empty" + val d: Int = s?.start ?: "empty" + val e: String = s?.start ?: "empty" val f: Int = s?.endInclusive ?: b ?: 1 val g: Boolean? = e.startsWith("s")//?.length } diff --git a/compiler/testData/diagnostics/tests/RecursiveTypeInference.kt b/compiler/testData/diagnostics/tests/RecursiveTypeInference.kt index c6927a7d29a..b6ca0bf304b 100644 --- a/compiler/testData/diagnostics/tests/RecursiveTypeInference.kt +++ b/compiler/testData/diagnostics/tests/RecursiveTypeInference.kt @@ -4,7 +4,7 @@ package a val foo = bar() - fun bar() = foo + fun bar() = foo // FILE: b.kt package b diff --git a/compiler/testData/diagnostics/tests/ReserveYield.kt b/compiler/testData/diagnostics/tests/ReserveYield.kt index c55b07f3b0d..0cffa3afc08 100644 --- a/compiler/testData/diagnostics/tests/ReserveYield.kt +++ b/compiler/testData/diagnostics/tests/ReserveYield.kt @@ -19,7 +19,7 @@ fun yield(yield: Int) { val foo = yield + yield val foo2 = yield - bar(yield = 5) + bar(yield = 5) yield(4) yield {} diff --git a/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt b/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt index 337e628f7b6..6d440cd35e6 100644 --- a/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt +++ b/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt @@ -4,7 +4,7 @@ fun test(a : java.lang.annotation.RetentionPolicy) { } fun test() { - java.util.Collections.emptyList() + java.util.Collections.emptyList() val a : Collection? = java.util.Collections.emptyList() } diff --git a/compiler/testData/diagnostics/tests/ResolveToJava.kt b/compiler/testData/diagnostics/tests/ResolveToJava.kt index 974cd4d6a9b..41451b3c014 100644 --- a/compiler/testData/diagnostics/tests/ResolveToJava.kt +++ b/compiler/testData/diagnostics/tests/ResolveToJava.kt @@ -21,10 +21,10 @@ fun test(l : java.util.List) { val f : java.io.File? = null - Collections.emptyList + Collections.emptyList Collections.emptyList Collections.emptyList() - Collections.emptyList() + Collections.emptyList() checkSubtype?>(Collections.singleton(1)) Collections.singleton(1.0) diff --git a/compiler/testData/diagnostics/tests/SafeCallUnknownType.kt b/compiler/testData/diagnostics/tests/SafeCallUnknownType.kt index 613cb02324c..e7644d6e967 100644 --- a/compiler/testData/diagnostics/tests/SafeCallUnknownType.kt +++ b/compiler/testData/diagnostics/tests/SafeCallUnknownType.kt @@ -2,5 +2,5 @@ import com.unknownunknown() - val b = a?.plus(42) + val b = a?.plus(42) } diff --git a/compiler/testData/diagnostics/tests/StarsInFunctionCalls.kt b/compiler/testData/diagnostics/tests/StarsInFunctionCalls.kt index 136c64c41d4..9dff6da198f 100644 --- a/compiler/testData/diagnostics/tests/StarsInFunctionCalls.kt +++ b/compiler/testData/diagnostics/tests/StarsInFunctionCalls.kt @@ -1,14 +1,13 @@ - fun getT() {} fun getTT() {} fun getTTT(x : Any) {} fun foo(a : Any?) {} public fun main() { - getT<*>() + getT<*>() ggetT<*>() - getTT<*, *>() - getTT<*, Int>() - getTT*>() - foo(getTTT*, Int>(1)) + getTT<*, *>() + getTT<*, Int>() + getTT*>() + foo(getTTT*, Int>(1)) } diff --git a/compiler/testData/diagnostics/tests/TypeInference.kt b/compiler/testData/diagnostics/tests/TypeInference.kt index ecb0a45bf27..c183d978ee3 100644 --- a/compiler/testData/diagnostics/tests/TypeInference.kt +++ b/compiler/testData/diagnostics/tests/TypeInference.kt @@ -9,10 +9,10 @@ fun main() { val a : C = C(); val x : C = C() val y : C = C() - val z : C<*> = C() + val z : C<*> = C() val ba : C = bar(); val bx : C = bar() val by : C = bar() - val bz : C<*> = bar() + val bz : C<*> = bar() } diff --git a/compiler/testData/diagnostics/tests/annotations/AmbigiousAnnotationConstructor.kt b/compiler/testData/diagnostics/tests/annotations/AmbigiousAnnotationConstructor.kt index 8f133360364..bc545469afc 100644 --- a/compiler/testData/diagnostics/tests/annotations/AmbigiousAnnotationConstructor.kt +++ b/compiler/testData/diagnostics/tests/annotations/AmbigiousAnnotationConstructor.kt @@ -1,5 +1,5 @@ import java.util.ArrayList -@ArrayList(1, 1) fun b() {} +@ArrayList(1, 1) fun b() {} @Xoo(x) fun c() {} @java.lang.Deprecated(x) fun a() {} diff --git a/compiler/testData/diagnostics/tests/annotations/annotationRenderingInTypes.kt b/compiler/testData/diagnostics/tests/annotations/annotationRenderingInTypes.kt index 944951ae971..bc172cb6c39 100644 --- a/compiler/testData/diagnostics/tests/annotations/annotationRenderingInTypes.kt +++ b/compiler/testData/diagnostics/tests/annotations/annotationRenderingInTypes.kt @@ -12,7 +12,7 @@ annotation class Ann fun <@Ann R : @Ann Any> f3(a: Array<@Ann R>): Array<@Ann R?> = null!! fun test2(a: @Ann Array) { - val r: Array = f3(a) + val r: Array = f3(a) } @@ -22,4 +22,4 @@ var test3: Int = 0 fun f4(fn: (@Ann Int, @Ann Int) -> Unit) {} -val test4 = f4 Unit; (Int) -> Unit")!>{ single -> } +val test4 = f4 Unit; (Int) -> Unit")!>{ single -> } diff --git a/compiler/testData/diagnostics/tests/annotations/options/functions.kt b/compiler/testData/diagnostics/tests/annotations/options/functions.kt index 5d1a0dfa987..e414b0ff109 100644 --- a/compiler/testData/diagnostics/tests/annotations/options/functions.kt +++ b/compiler/testData/diagnostics/tests/annotations/options/functions.kt @@ -33,7 +33,7 @@ fun foo(arg: Int) { val f = @FunAnn fun(): Int { return 42 } // But here, f and gav should be annotated instead bar(@FunAnn f) - bar(@FunAnn ::gav) + bar(@FunAnn ::gav) // Function expression, ok fast(f) } diff --git a/compiler/testData/diagnostics/tests/annotations/options/targets/field.fir.kt b/compiler/testData/diagnostics/tests/annotations/options/targets/field.fir.kt index ffa9d4ec5f2..ff31b52ad0c 100644 --- a/compiler/testData/diagnostics/tests/annotations/options/targets/field.fir.kt +++ b/compiler/testData/diagnostics/tests/annotations/options/targets/field.fir.kt @@ -1,4 +1,4 @@ -@Target(AnnotationTarget.FIELD) +@Target(AnnotationTarget.FIELD) annotation class Field @Field diff --git a/compiler/testData/diagnostics/tests/annotations/options/targets/field.kt b/compiler/testData/diagnostics/tests/annotations/options/targets/field.kt index 82e14460c33..9db29699fb9 100644 --- a/compiler/testData/diagnostics/tests/annotations/options/targets/field.kt +++ b/compiler/testData/diagnostics/tests/annotations/options/targets/field.kt @@ -1,4 +1,4 @@ -@Target(AnnotationTarget.FIELD) +@Target(AnnotationTarget.FIELD) annotation class Field @Field @@ -27,7 +27,7 @@ abstract class My(@Field arg: Int, @Field val w: I fun foo() {} @Field - val v: Int by Delegates.lazy { 42 } + val v: Int by Delegates.lazy { 42 } } enum class Your { diff --git a/compiler/testData/diagnostics/tests/annotations/rendering/memberProjectedOut.kt b/compiler/testData/diagnostics/tests/annotations/rendering/memberProjectedOut.kt index ac01f082922..a8d28e01d5b 100644 --- a/compiler/testData/diagnostics/tests/annotations/rendering/memberProjectedOut.kt +++ b/compiler/testData/diagnostics/tests/annotations/rendering/memberProjectedOut.kt @@ -11,5 +11,5 @@ class C { } fun test(a: C) { - ")!>a[1] = 25 + a[1] = 25 } diff --git a/compiler/testData/diagnostics/tests/annotations/rendering/typeMismatchDueToTypeProjections.kt b/compiler/testData/diagnostics/tests/annotations/rendering/typeMismatchDueToTypeProjections.kt index 1d36df574a1..b105f4c74e2 100644 --- a/compiler/testData/diagnostics/tests/annotations/rendering/typeMismatchDueToTypeProjections.kt +++ b/compiler/testData/diagnostics/tests/annotations/rendering/typeMismatchDueToTypeProjections.kt @@ -13,5 +13,5 @@ class C { class Out fun test(a: C, y: Out) { - a + ; Out"), TYPE_MISMATCH_DUE_TO_TYPE_PROJECTIONS{OI}!>y + a + ; Out")!>y } diff --git a/compiler/testData/diagnostics/tests/callableReference/bound/reservedExpressionSyntax3.kt b/compiler/testData/diagnostics/tests/callableReference/bound/reservedExpressionSyntax3.kt index 3da97d10970..2f31e39ee14 100644 --- a/compiler/testData/diagnostics/tests/callableReference/bound/reservedExpressionSyntax3.kt +++ b/compiler/testData/diagnostics/tests/callableReference/bound/reservedExpressionSyntax3.kt @@ -22,7 +22,7 @@ class Test { val Int.c: Int get() = 42 val test1: () -> Right = a.b<Int>.c::foo - val test1a: () -> Right = a.b.c::foo + val test1a: () -> Right = a.b.c::foo val test2: () -> Right = a.b<Int>.c?::foo } diff --git a/compiler/testData/diagnostics/tests/callableReference/constraintFromLHSWithCorrectDirection.kt b/compiler/testData/diagnostics/tests/callableReference/constraintFromLHSWithCorrectDirection.kt index 7d33d7349a6..418bc461dce 100644 --- a/compiler/testData/diagnostics/tests/callableReference/constraintFromLHSWithCorrectDirection.kt +++ b/compiler/testData/diagnostics/tests/callableReference/constraintFromLHSWithCorrectDirection.kt @@ -18,6 +18,6 @@ fun B.star(p: KProperty1<*, V>): B = TODO() fun B.test(){ foo(A::bla) bar(A::bla) - baz(A::bla) + baz(A::bla) star(A::bla) } diff --git a/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.kt b/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.kt index dcb991c8b1d..3ceb29501a0 100644 --- a/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.kt +++ b/compiler/testData/diagnostics/tests/callableReference/expectedTypeAsSubtypeOfFunctionType.kt @@ -7,6 +7,6 @@ fun takeIt(x: T, f: SubFunction) {} fun cr() {} fun test() { - takeIt(42, ::cr) - takeIt(42, { }) + takeIt(42, ::cr) + takeIt(42, { }) } diff --git a/compiler/testData/diagnostics/tests/callableReference/function/lhsNotAClass.kt b/compiler/testData/diagnostics/tests/callableReference/function/lhsNotAClass.kt index 8621ecaae83..61306257bb7 100644 --- a/compiler/testData/diagnostics/tests/callableReference/function/lhsNotAClass.kt +++ b/compiler/testData/diagnostics/tests/callableReference/function/lhsNotAClass.kt @@ -1,13 +1,12 @@ - class A { fun foo() = T::toString fun bar() = U::toString fun baz() { - take(T::toString) + take(T::toString) - take(U::toString) + take(U::toString) } } diff --git a/compiler/testData/diagnostics/tests/callableReference/function/unresolved.kt b/compiler/testData/diagnostics/tests/callableReference/function/unresolved.kt index 0a242d0617b..75679f80817 100644 --- a/compiler/testData/diagnostics/tests/callableReference/function/unresolved.kt +++ b/compiler/testData/diagnostics/tests/callableReference/function/unresolved.kt @@ -17,7 +17,7 @@ fun test2() { fun foo() {} Unresolved::foo - foo(Unresolved::foo) - foo(Unresolved::unresolved) + foo(Unresolved::foo) + foo(Unresolved::unresolved) ::unresolved } diff --git a/compiler/testData/diagnostics/tests/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.kt b/compiler/testData/diagnostics/tests/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.kt index 334271c468d..ad0711f7944 100644 --- a/compiler/testData/diagnostics/tests/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.kt +++ b/compiler/testData/diagnostics/tests/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.kt @@ -1,4 +1,3 @@ - fun foo(a: String, b: Int = 5): String { return a + b } @@ -12,6 +11,6 @@ fun bar2(body: (String, Int) -> String): String { } fun test() { - bar1(::foo) + bar1(::foo) bar2(::foo) } diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/argumentAndReturnExpectedType.kt b/compiler/testData/diagnostics/tests/callableReference/generic/argumentAndReturnExpectedType.kt index 2535ec64d81..d1c7611a22a 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/argumentAndReturnExpectedType.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/argumentAndReturnExpectedType.kt @@ -15,9 +15,9 @@ fun test1() { bar("", 1, ::foo).checkType { _>() } bar("", 1, ::fooReturnInt).checkType { _>() } bar("", 1, ::fooTakeString).checkType { _>() } - bar("", "", ::fooReturnInt).checkType { _>() } + bar("", "", ::fooReturnInt).checkType { _>() } - val x: String = bar("", "", ::fooReturnInt) + val x: String = bar("", "", ::fooReturnInt) baz(Int::toString, ::foo).checkType { _>() } } diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/explicitTypeArguments.kt b/compiler/testData/diagnostics/tests/callableReference/generic/explicitTypeArguments.kt index 9d6b98b366c..17e5909d00c 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/explicitTypeArguments.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/explicitTypeArguments.kt @@ -13,12 +13,12 @@ fun Wrapper.baz(transform: (T) -> Unit): T = TODO() fun test() { takeFun(::foo) - takeFun(::fooInt) + takeFun(::fooInt) callFun>(::createWrapper) callFun>(::createWrapper) callFun>(::createWrapper) - callFun>(::createWrapper) + callFun>(::createWrapper) callFun>(::createWrapper).baz(::foo) } diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/genericExtensionFunction.kt b/compiler/testData/diagnostics/tests/callableReference/generic/genericExtensionFunction.kt index 6616f4dbc76..d61a59e0f0e 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/genericExtensionFunction.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/genericExtensionFunction.kt @@ -22,8 +22,8 @@ fun test1() { fun test2() { bar(Wrapper::fooReturnString).checkType { _>() } bar(Wrapper::fooReturnString).checkType { _>() } - bar(Wrapper::fooReturnString) - bar(Wrapper::fooReturnString) + bar(Wrapper::fooReturnString) + bar(Wrapper::fooReturnString) bar(Wrapper::fooTakeInt).checkType { _>() } bar(Wrapper::fooTakeInt).checkType { _>() } diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/genericFunctionsWithNullableTypes.kt b/compiler/testData/diagnostics/tests/callableReference/generic/genericFunctionsWithNullableTypes.kt index 626ec1d80aa..a5573ce9a2a 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/genericFunctionsWithNullableTypes.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/genericFunctionsWithNullableTypes.kt @@ -28,9 +28,9 @@ fun test(x: T) { baz(1, null, ::foo) baz(null, null, ::foo) - val s3: Pair = bar(null, null, ::foo) - val s4: Pair = bar(null, null, ::foo) + val s3: Pair = bar(null, null, ::foo) + val s4: Pair = bar(null, null, ::foo) - val s5: Pair = bar(1, "", ::foo) + val s5: Pair = bar(1, "", ::foo) val (a1: Int, b1: String) = bar(1, "", ::foo) } diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/nestedCallWithOverload.kt b/compiler/testData/diagnostics/tests/callableReference/generic/nestedCallWithOverload.kt index 7ad636cc159..272e268df22 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/nestedCallWithOverload.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/nestedCallWithOverload.kt @@ -10,7 +10,7 @@ fun test() { val x2: (Int) -> Unit = baz(id(::foo), ::foo) val x3: (Int) -> Unit = baz(id(::foo), id(id(::foo))) val x4: (String) -> Unit = baz(id(::foo), id(id(::foo))) - val x5: (Double) -> Unit = baz(id(::foo), id(id(::foo))) + val x5: (Double) -> Unit = baz(id(::foo), id(id(::foo))) id<(Int) -> Unit>(id(id(::foo))) diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/resolutionGenericCallableWithNullableTypes.kt b/compiler/testData/diagnostics/tests/callableReference/generic/resolutionGenericCallableWithNullableTypes.kt index 9fe46e1f2e3..2988960d9d8 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/resolutionGenericCallableWithNullableTypes.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/resolutionGenericCallableWithNullableTypes.kt @@ -16,7 +16,7 @@ fun test1() { baz(::foo).checkType { _() } baz(::foo).checkType { _() } - val b1: Int = baz(::foo) - val b2: String = baz(::foo) - val b3: Boolean = baz(::foo) + val b1: Int = baz(::foo) + val b2: String = baz(::foo) + val b3: Boolean = baz(::foo) } diff --git a/compiler/testData/diagnostics/tests/callableReference/generic/resolutionWithGenericCallable.kt b/compiler/testData/diagnostics/tests/callableReference/generic/resolutionWithGenericCallable.kt index 700b918ac7a..38ea1c51932 100644 --- a/compiler/testData/diagnostics/tests/callableReference/generic/resolutionWithGenericCallable.kt +++ b/compiler/testData/diagnostics/tests/callableReference/generic/resolutionWithGenericCallable.kt @@ -4,9 +4,9 @@ fun test() { val a1: Array Double> = arrayOf(Double::plus, Double::minus) val a2: Array Double> = arrayOf(Double::plus, Double::minus) - val a3: Array Double> = arrayOf(Double::plus, Double::minus) - val a4: Array Double> = arrayOf(Int::plus, Double::minus) - val a5: Array Double> = arrayOf(Double::plus, Int::minus) + val a3: Array Double> = arrayOf(Double::plus, Double::minus) + val a4: Array Double> = arrayOf(Int::plus, Double::minus) + val a5: Array Double> = arrayOf(Double::plus, Int::minus) } fun foo(x: Int) {} @@ -17,5 +17,5 @@ fun bar(x: T, f: (T) -> Unit) {} fun test2() { bar(1, ::foo) bar("", ::foo) - bar(1.0, ::foo) + bar(1.0, ::foo) } diff --git a/compiler/testData/diagnostics/tests/callableReference/kt34314.kt b/compiler/testData/diagnostics/tests/callableReference/kt34314.kt index 313a17415a1..6a5db993ac9 100644 --- a/compiler/testData/diagnostics/tests/callableReference/kt34314.kt +++ b/compiler/testData/diagnostics/tests/callableReference/kt34314.kt @@ -1,5 +1,5 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE fun main() { - val x = run { ::run } // no error + val x = run { ::run } // no error } diff --git a/compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.kt b/compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.kt index 79128e96b1b..b5756897634 100644 --- a/compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.kt +++ b/compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.kt @@ -3,5 +3,5 @@ fun materialize(): T = TODO() fun main() { - val x = run { materialize() } + val x = run { materialize() } } diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/byGenericArgType.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/byGenericArgType.kt index 235b087b7f7..024574324f4 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/byGenericArgType.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/byGenericArgType.kt @@ -7,4 +7,4 @@ fun foo(s: String) {} val x1 = ofType<() -> Unit>(::foo) val x2 = ofType<(String) -> Unit>(::foo) -val x3 = ofType<(Int) -> Unit>(::foo) +val x3 = ofType<(Int) -> Unit>(::foo) diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt index 96d6a5a58df..88eb11bc693 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt @@ -10,7 +10,7 @@ class Foo { } fun foo() { - installRoute(::route) + installRoute(::route) } } diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.kt index 372ea53c07e..8b617f86aa8 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.kt @@ -8,4 +8,4 @@ fun foo(s: String) {} val x1 = apply(1, ::foo) val x2 = apply("hello", ::foo) -val x3 = apply(true, ::foo) +val x3 = apply(true, ::foo) diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/withPlaceholderTypes.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/withPlaceholderTypes.kt index f65d7a52752..4f7067e2012 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/withPlaceholderTypes.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/withPlaceholderTypes.kt @@ -21,7 +21,7 @@ val x1 = fn1(1, ::foo, ::foo) val x2 = fn1(1, ::foo, ::bar) val x3 = fn2(::bar, ::foo) -val x4 = fn2(::foo, ::bar) -val x5 = fn2(::foo, ::foo) +val x4 = fn2(::foo, ::bar) +val x5 = fn2(::foo, ::foo) val x6 = fn3(1, ::qux) diff --git a/compiler/testData/diagnostics/tests/cast/AsInBlockWithReturnType.kt b/compiler/testData/diagnostics/tests/cast/AsInBlockWithReturnType.kt index 3f049b5d0aa..8c77793e23e 100644 --- a/compiler/testData/diagnostics/tests/cast/AsInBlockWithReturnType.kt +++ b/compiler/testData/diagnostics/tests/cast/AsInBlockWithReturnType.kt @@ -5,7 +5,7 @@ fun runWithoutReturn(r: () -> Unit) = r() fun testRun() { run { 1 as Any - 1 as Any + 1 as Any } run { @@ -16,11 +16,11 @@ fun testRun() { fun foo(): Int = 1 run { - foo() as Any + foo() as Any } run { - (if (true) 1 else 2) as Any + (if (true) 1 else 2) as Any } run { @@ -35,17 +35,17 @@ fun testRun() { } fun testReturn(): Number { - run { 1 as Number } + run { 1 as Number } return run { 1 as Number } } fun testDependent() { listOf(1).map { it as Any - it as Any + it as Any } - listOf().map { it as Any? } + listOf().map { it as Any? } } fun listOf(vararg elements: T): List = TODO() diff --git a/compiler/testData/diagnostics/tests/cast/UselessSafeCast.kt b/compiler/testData/diagnostics/tests/cast/UselessSafeCast.kt index 17d4d6122c7..778a3b5be71 100644 --- a/compiler/testData/diagnostics/tests/cast/UselessSafeCast.kt +++ b/compiler/testData/diagnostics/tests/cast/UselessSafeCast.kt @@ -10,7 +10,7 @@ fun test(x: Int?) { val a7: Number? = 1 as? Number run { x as? Int } - run { x as? Number } + run { x as? Number } foo(x as? Number) diff --git a/compiler/testData/diagnostics/tests/cast/kt15161.kt b/compiler/testData/diagnostics/tests/cast/kt15161.kt index e9ffbb9a7fb..597d3c60953 100644 --- a/compiler/testData/diagnostics/tests/cast/kt15161.kt +++ b/compiler/testData/diagnostics/tests/cast/kt15161.kt @@ -1,6 +1,6 @@ class Array(e: E) { val k = Array(1) { 1 as Any - e as Any? + e as Any? } } diff --git a/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt b/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt index e8341da1a8d..66d6e41d1a5 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt @@ -43,10 +43,10 @@ fun main() { joinG(1, "2") joinG(*1, "2") - joinG(1, *"2") + joinG(1, *"2") joinG(x = 1, a = a) - joinG(x = 1, a = "2") - joinG(x = *1, a = *"2") + joinG(x = 1, a = "2") + joinG(x = *1, a = *"2") joinG(1, *a) joinG(1, *a, "3") joinG(1, "4", *a, "3") diff --git a/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt b/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt index 812b9bcf085..0625de65475 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt @@ -5,6 +5,6 @@ class A { operator fun set(x: String, value: Int) {} fun d(x: Int) { - this["", 1] = 1 + this["", 1] = 1 } } diff --git a/compiler/testData/diagnostics/tests/checkArguments/kt1897_diagnostic_part.kt b/compiler/testData/diagnostics/tests/checkArguments/kt1897_diagnostic_part.kt index 70ed46339a7..7923405f85b 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/kt1897_diagnostic_part.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/kt1897_diagnostic_part.kt @@ -20,7 +20,7 @@ fun test() { foo("", s = 2) - foo(i = "", s = 2, 33) + foo(i = "", s = 2, 33) foo("", 1) {} diff --git a/compiler/testData/diagnostics/tests/checkArguments/overloadedFunction.kt b/compiler/testData/diagnostics/tests/checkArguments/overloadedFunction.kt index e55a5893fd7..c1b0b78e88d 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/overloadedFunction.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/overloadedFunction.kt @@ -11,6 +11,6 @@ fun test() { foo(1, 2) foo("") - bar(1, 2) + bar(1, 2) bar() } diff --git a/compiler/testData/diagnostics/tests/checkType.kt b/compiler/testData/diagnostics/tests/checkType.kt index 7940dd064f5..03dc66e2976 100644 --- a/compiler/testData/diagnostics/tests/checkType.kt +++ b/compiler/testData/diagnostics/tests/checkType.kt @@ -6,6 +6,6 @@ interface C : B fun test(b: B) { b checkType { _() } - b checkType { _() } - b checkType { _() } + b checkType { _() } + b checkType { _() } } diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotation.kt b/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotation.kt index 4936d9c51cd..b6e772598f0 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotation.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotation.kt @@ -8,7 +8,7 @@ fun test1() {} @Foo([], [], []) fun test2() {} -@Foo([1f], [' '], [1]) +@Foo([1f], [' '], [1]) fun test3() {} @Foo(c = [1f], b = [""], a = [1]) diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotationWithKClass.kt b/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotationWithKClass.kt index 5342e7a0cbb..10fc6a66ae5 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotationWithKClass.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/argumentsOfAnnotationWithKClass.kt @@ -20,10 +20,10 @@ fun test3() {} @Foo([Gen::class]) fun test4() {} -@Foo([""]) +@Foo([""]) fun test5() {} -@Foo([Int::class, 1]) +@Foo([Int::class, 1]) fun test6() {} @Bar diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.kt b/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.kt index eeec3c94baf..ec3b26925e1 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.kt @@ -2,11 +2,11 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE, -UNSUPPORTED fun test() { - val a = [] + val a = [] val b: Array = [] val c = [1, 2] val d: Array = [1, 2] - val e: Array = [1] + val e: Array = [1] val f: IntArray = [1, 2] val g = [f] @@ -19,5 +19,5 @@ fun check() { val f: IntArray = [1] [f] checkType { _>() } - [1, ""] checkType { _>() } + [1, ""] checkType { _>() } } diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.kt b/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.kt index 24e9f0ac5fb..a19abc9c0bc 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/collectionLiteralsWithVarargs.kt @@ -16,7 +16,7 @@ fun test1_0() {} @Ann1(*["a", "b"]) fun test1_1() {} -@Ann1(*["a", 1, null]) +@Ann1(*["a", 1, null]) fun test1_2() {} @Ann2(*[]) @@ -33,8 +33,8 @@ fun test6() {} annotation class AnnArray(val a: Array) -@AnnArray(*["/"]) +@AnnArray(*["/"]) fun testArray() {} -@Ann1([""]) +@Ann1([""]) fun testVararg() {} diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/defaultValuesInAnnotation.kt b/compiler/testData/diagnostics/tests/collectionLiterals/defaultValuesInAnnotation.kt index e5e96268466..882d362e46c 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/defaultValuesInAnnotation.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/defaultValuesInAnnotation.kt @@ -7,9 +7,9 @@ annotation class Foo( ) annotation class Bar( - val a: Array = [' '], - val b: Array = ["", ''], - val c: Array = [1] + val a: Array = [' '], + val b: Array = ["", ''], + val c: Array = [1] ) annotation class Base( @@ -21,5 +21,5 @@ annotation class Base( annotation class Err( val a: IntArray = [1L], - val b: Array = [1] + val b: Array = [1] ) diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.kt b/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.kt index 5dbd20eebac..38bbf86fcc5 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.kt @@ -5,7 +5,7 @@ fun test(): Array { foo([""]) - val p = [1, 2] + [3, 4] + val p = [1, 2] + [3, 4] return [1, 2] } diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/UninitializedOrReassignedVariables.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/UninitializedOrReassignedVariables.kt index 1c98b0be80a..354d78c5cc7 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/UninitializedOrReassignedVariables.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/UninitializedOrReassignedVariables.kt @@ -240,7 +240,7 @@ class Outer() { } class ForwardAccessToBackingField() { //kt-147 - val a = a // error + val a = a // error val b = c // error val c = 1 } diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/elvisNotProcessed.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/elvisNotProcessed.kt index fc05d4b0315..0477ba5ce3c 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/elvisNotProcessed.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/elvisNotProcessed.kt @@ -11,16 +11,16 @@ else { } val ww = if (true) { - { true } ?: null!! + { true } ?: null!! } else if (true) { - { true } ?: null!! + { true } ?: null!! } else { null!! } -val n = null ?: (null ?: { true }) +val n = null ?: (null ?: { true }) fun l(): (() -> Boolean)? = null @@ -33,6 +33,6 @@ val bbb = null ?: ( l() ?: null) val bbbb = ( l() ?: null) ?: ( l() ?: null) fun f(x : Long?): Long { - var a = x ?: (fun() {} ?: fun() {}) - return a + var a = x ?: (fun() {} ?: fun() {}) + return a } diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt index d4e35c0e1a2..a3d63d00812 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt @@ -1,11 +1,11 @@ // AssertionError for nested ifs with lambdas and Nothing as results // NI_EXPECTED_FILE -val fn = if (true) { - { true } -} +val fn = if (true) { + { true } +} else if (true) { - { true } + { true } } else { null!! diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifElseIntersection.kt b/compiler/testData/diagnostics/tests/controlStructures/ifElseIntersection.kt index f392a3bf95f..f8df0a7174a 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ifElseIntersection.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ifElseIntersection.kt @@ -8,7 +8,7 @@ class None : Option fun bind(r: Option): Option { return if (r is Some) { // Ideally we should infer Option here (see KT-10896) - (if (true) None() else r) checkType { _>() } + (if (true) None() else r) checkType { _>() } // Works correctly if (true) None() else r } @@ -24,9 +24,9 @@ fun bind2(r: Option): Option { } fun bind3(r: Option): Option { - return if (r is Some) { + return if (r is Some) { // Diagnoses an error correctly - if (true) None() else r + if (true) None() else r } else r } diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.kt b/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.kt index 8730c503721..08d46d81584 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.kt @@ -1,8 +1,8 @@ // NI_EXPECTED_FILE -val test1 = { if (true) 1 else "" } +val test1 = { if (true) 1 else "" } -val test2 = { { if (true) 1 else "" } } +val test2 = { { if (true) 1 else "" } } val test3: (Boolean) -> Any = { if (it) 1 else "" } diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifToAnyDiscriminatingUsages.kt b/compiler/testData/diagnostics/tests/controlStructures/ifToAnyDiscriminatingUsages.kt index 0d77713af4f..5df8b01b997 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ifToAnyDiscriminatingUsages.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ifToAnyDiscriminatingUsages.kt @@ -16,8 +16,8 @@ fun testResultOfLambda2() = fun testResultOfAnonFun1() = run(fun () = - if (true) 42 - else println() + if (true) 42 + else println() ) fun testResultOfAnonFun2() = @@ -27,7 +27,7 @@ fun testResultOfAnonFun2() = fun testReturnFromAnonFun() = run(fun () { - return if (true) 42 else println() + return if (true) 42 else println() }) fun testReturn1() = diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifWhenWithoutElse.kt b/compiler/testData/diagnostics/tests/controlStructures/ifWhenWithoutElse.kt index 9a03f5e5193..29b41b366ca 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ifWhenWithoutElse.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ifWhenWithoutElse.kt @@ -19,10 +19,10 @@ val xx6 = null ?: if (true) 42 val xx7 = "" + if (true) 42 val wxx1 = when { true -> 42 } -val wxx2: Unit = when { true -> 42 } +val wxx2: Unit = when { true -> 42 } val wxx3 = idAny(when { true -> 42 }) val wxx4 = id(when { true -> 42 }) -val wxx5 = idUnit(when { true -> 42 }) +val wxx5 = idUnit(when { true -> 42 }) val wxx6 = null ?: when { true -> 42 } val wxx7 = "" + when { true -> 42 } @@ -50,8 +50,8 @@ fun g1() = when { true -> work() } fun g2() = when { true -> mlist.add() } fun g3() = when { true -> 42 } fun g4(): Unit = when { true -> work() } -fun g5(): Unit = when { true -> mlist.add() } -fun g6(): Unit = when { true -> 42 } +fun g5(): Unit = when { true -> mlist.add() } +fun g6(): Unit = when { true -> 42 } fun foo1(x: String?) { "" + if (true) 42 diff --git a/compiler/testData/diagnostics/tests/controlStructures/improperElseInExpression.kt b/compiler/testData/diagnostics/tests/controlStructures/improperElseInExpression.kt index 87f5433a10c..b33d2230459 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/improperElseInExpression.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/improperElseInExpression.kt @@ -29,5 +29,5 @@ fun example() { return if (true) true } - return if (true) true else {} + return if (true) true else {} } diff --git a/compiler/testData/diagnostics/tests/controlStructures/kt1075.kt b/compiler/testData/diagnostics/tests/controlStructures/kt1075.kt index 99514c908c0..c0d959540cc 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/kt1075.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/kt1075.kt @@ -4,7 +4,7 @@ package kt1075 fun foo(b: String) { if (b in 1..10) {} //type mismatch - when (b) { + when (b) { in 1..10 -> 1 //no type mismatch, but it should be here else -> 2 } diff --git a/compiler/testData/diagnostics/tests/controlStructures/kt4310.kt b/compiler/testData/diagnostics/tests/controlStructures/kt4310.kt index 6cedf388b3c..75ed1d06bbd 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/kt4310.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/kt4310.kt @@ -3,9 +3,9 @@ package f fun test(a: Boolean, b: Boolean): Int { return if(a) { 1 - } else { - if (b) { + } else { + if (b) { 3 - } + } } } diff --git a/compiler/testData/diagnostics/tests/controlStructures/kt770.kt351.kt735_StatementType.kt b/compiler/testData/diagnostics/tests/controlStructures/kt770.kt351.kt735_StatementType.kt index a64a5ada2dc..a01825b54f5 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/kt770.kt351.kt735_StatementType.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/kt770.kt351.kt735_StatementType.kt @@ -104,8 +104,8 @@ fun testImplicitCoercion() { val g = if (true) 4 val h = if (false) 4 else {} - bar(if (true) { - 4 + bar(if (true) { + 4 } else { z = 342 }) diff --git a/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.kt b/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.kt index 10ee29495d2..0a7e678e8d7 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.kt @@ -7,9 +7,9 @@ fun test() { use({ }!!); // KT-KT-9070 - { } ?: 1 + { } ?: 1 use({ 2 } ?: 1); - 1 ?: { } + 1 ?: { } use(1 ?: { }) } diff --git a/compiler/testData/diagnostics/tests/controlStructures/tryReturnType.kt b/compiler/testData/diagnostics/tests/controlStructures/tryReturnType.kt index cbc3c9ad178..26175985a2e 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/tryReturnType.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/tryReturnType.kt @@ -13,11 +13,11 @@ fun foo() : Int { } fun bar() : Int = - try { - doSmth() + try { + doSmth() } - catch (e: Exception) { - "" + catch (e: Exception) { + "" } finally { "" diff --git a/compiler/testData/diagnostics/tests/controlStructures/typeInferenceForExclExcl.kt b/compiler/testData/diagnostics/tests/controlStructures/typeInferenceForExclExcl.kt index 1a88b9283b5..d6142bae636 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/typeInferenceForExclExcl.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/typeInferenceForExclExcl.kt @@ -12,9 +12,9 @@ fun exclExcl(t: T?): T = t!! fun test11() { // not 'String!' exclExcl(A.foo()) checkType { _() } - exclExcl(A.foo()) checkType { _() } + exclExcl(A.foo()) checkType { _() } // not 'String!' A.foo()!! checkType { _() } - A.foo()!! checkType { _() } + A.foo()!! checkType { _() } } diff --git a/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.kt b/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.kt index cdd6da5d9fb..6091bb406eb 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.kt @@ -1,8 +1,8 @@ // NI_EXPECTED_FILE -val test1 = { when (true) { true -> 1; else -> "" } } +val test1 = { when (true) { true -> 1; else -> "" } } -val test2 = { { when (true) { true -> 1; else -> "" } } } +val test2 = { { when (true) { true -> 1; else -> "" } } } val test3: (Boolean) -> Any = { when (true) { true -> 1; else -> "" } } diff --git a/compiler/testData/diagnostics/tests/dataClasses/extensionComponentsOnNullable.kt b/compiler/testData/diagnostics/tests/dataClasses/extensionComponentsOnNullable.kt index 04aa688f891..db2869f18fe 100644 --- a/compiler/testData/diagnostics/tests/dataClasses/extensionComponentsOnNullable.kt +++ b/compiler/testData/diagnostics/tests/dataClasses/extensionComponentsOnNullable.kt @@ -8,7 +8,7 @@ fun foo(): Int { val d: Data? = null // An error must be here val (x, y) = d - return x + y + return x + y } data class NormalData(val x: T, val y: T) @@ -17,5 +17,5 @@ fun bar(): Int { val d: NormalData? = null // An error must be here val (x, y) = d - return x + y + return x + y } diff --git a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpression.kt b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpression.kt index c0375b26d1e..3dfed6e6691 100644 --- a/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpression.kt +++ b/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpression.kt @@ -5,6 +5,6 @@ fun foo() { val x: Int? = null bar(1 + (if (x == null) 0 else x)) - bar(if (x == null) x else x) + bar(if (x == null) x else x) if (x != null) bar(x + x/(x-x*x)) } diff --git a/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.kt b/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.kt index bcaab066105..a756abf6064 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.kt @@ -11,7 +11,7 @@ class MyClass2 {} fun test(mc1: MyClass, mc2: MyClass2) { val (a, b) = mc1 - val (c) = mc2 + val (c) = mc2 //a,b,c are error types use(a, b, c) diff --git a/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_3.kt b/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_3.kt index 34bf432c684..3d53bcdcdcf 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_3.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_3.kt @@ -10,7 +10,7 @@ fun test() { const val a3 = 0 lateinit val a4 = 0 val a5 by Delegate() - val a6 by Delegate<T>() + val a6 by Delegate<T>() } class Delegate { diff --git a/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_4.kt b/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_4.kt index c6349bf1758..02a1d91495f 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_4.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/localVariablesWithTypeParameters_1_4.kt @@ -10,7 +10,7 @@ fun test() { const val a3 = 0 lateinit val a4 = 0 val a5 by Delegate() - val a6 by Delegate<T>() + val a6 by Delegate<T>() } class Delegate { diff --git a/compiler/testData/diagnostics/tests/declarationChecks/namedFunAsLastExpressionInBlock.kt b/compiler/testData/diagnostics/tests/declarationChecks/namedFunAsLastExpressionInBlock.kt index 52a7add926a..8db8fecf91c 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/namedFunAsLastExpressionInBlock.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/namedFunAsLastExpressionInBlock.kt @@ -6,8 +6,8 @@ fun test() { val x = fun named1(x: Int): Int { return 1 } x checkType { _>() } - foo { Int")!>fun named2(): Int {return 1} } - foo({ fun named3() = 1 }) + foo { Int")!>fun named2(): Int {return 1} } + foo({ fun named3() = 1 }) val x1 = if (1 == 1) @@ -26,15 +26,15 @@ fun test() { fun named7() = 1 val x3 = when (1) { - 0 -> fun named8(): Int {return 1} - else -> fun named9() = 1 + 0 -> fun named8(): Int {return 1} + else -> fun named9() = 1 } val x31 = when (1) { 0 -> { - fun named10(): Int {return 1} + fun named10(): Int {return 1} } - else -> fun named11() = 1 + else -> fun named11() = 1 } val x4 = { @@ -64,11 +64,11 @@ fun success() { val y = when (1) { 0 -> { - fun named4(): Int {return 1} + fun named4(): Int {return 1} } else -> { - fun named5(): Int {return 1} + fun named5(): Int {return 1} } } - y checkType { _() } + y checkType { _() } } diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.kt index 0783efd2d35..f938bcafd34 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.kt @@ -9,10 +9,10 @@ class A(outer: Outer) { var g: String by outer.getContainer().getMyProperty() - var b: String by foo(getMyProperty()) - var r: String by foo(outer.getContainer().getMyProperty()) - var e: String by + foo(getMyProperty()) - var f: String by foo(getMyProperty()) - 1 + var b: String by foo(getMyProperty()) + var r: String by foo(outer.getContainer().getMyProperty()) + var e: String by + foo(getMyProperty()) + var f: String by foo(getMyProperty()) - 1 } fun foo(a: Any?) = MyProperty() diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.kt index 0eaf8779c39..b2dffbb0989 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.kt @@ -3,10 +3,10 @@ package foo import kotlin.reflect.KProperty open class A { - val B.w: Int by MyProperty() + val B.w: Int by MyProperty() } -val B.r: Int by MyProperty() +val B.r: Int by MyProperty() val A.e: Int by MyProperty() diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.kt index f18f53b6e64..462d4c0511f 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.kt @@ -7,7 +7,7 @@ class A() { operator fun setValue(t: Any?, p: KProperty<*>, x: T) = Unit } -var a1: Int by A() +var a1: Int by A() var a2: Int by A() class B() { @@ -24,4 +24,4 @@ class C() { } var c1: Int by C() -var c2: Int by C() +var c2: Int by C() diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.kt index 171f126cf43..1e9bfcf10c3 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.kt @@ -4,7 +4,7 @@ package test import first.* import second.* -val a12 by A() +val a12 by A() // FILE: first.kt package first diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.kt index 7567a02eeee..68c0eb2d53d 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.kt @@ -3,8 +3,8 @@ package foo import kotlin.reflect.KProperty class A { - var a5: String by MyProperty1() - var b5: String by getMyProperty1() + var a5: String by MyProperty1() + var b5: String by getMyProperty1() } fun getMyProperty1() = MyProperty1() @@ -23,8 +23,8 @@ class MyProperty1 { // ----------------- class B { - var a5: String by MyProperty2() - var b5: String by getMyProperty2() + var a5: String by MyProperty2() + var b5: String by getMyProperty2() } fun getMyProperty2() = MyProperty2() diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.kt index 03e73314c98..e170ab23d91 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.kt @@ -2,7 +2,7 @@ import kotlin.reflect.KProperty class A { - var a by MyProperty() + var a by MyProperty() } class MyProperty { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/propertyDefferedType.kt b/compiler/testData/diagnostics/tests/delegatedProperty/propertyDefferedType.kt index 48a0d8f191f..0acf51ee29d 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/propertyDefferedType.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/propertyDefferedType.kt @@ -4,7 +4,7 @@ import kotlin.reflect.KProperty class B { - val c by Delegate(ag) + val c by Delegate(ag) } class Delegate(val init: T) { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/commonCaseForInference.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/commonCaseForInference.kt index 96abfb0a2ea..939dc591ccf 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/commonCaseForInference.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/commonCaseForInference.kt @@ -8,6 +8,6 @@ object CommonCase { operator fun Fas.provideDelegate(host: D, p: Any?): Fas = TODO() operator fun Fas.getValue(receiver: E, p: Any?): R = TODO() - val Long.test1: String by delegate() // common test, not working because of Inference1 + val Long.test1: String by delegate() // common test, not working because of Inference1 val Long.test2: String by delegate() // should work } diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/hostAndReceiver2.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/hostAndReceiver2.kt index 912cbd332ce..88fd51b3f3b 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/hostAndReceiver2.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/hostAndReceiver2.kt @@ -9,5 +9,5 @@ object T2 { operator fun Foo.getValue(receiver: String, p: Any?): T = TODO() val String.test1: String by delegate() - val test2: String by delegate() + val test2: String by delegate() } diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.kt index 3307d9547ca..5732f1daa4e 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.kt @@ -8,7 +8,7 @@ object Inference1 { operator fun Foo.getValue(receiver: T, p: Any?): String = TODO() // not working because resulting descriptor for getValue contains type `???` instead of `T` - val test1: String by delegate() + val test1: String by delegate() val test2: String by delegate() } diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt index 751afebbaa8..b7e181b7a47 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt @@ -8,6 +8,6 @@ object Inference2 { operator fun Foo.provideDelegate(host: T, p: Any?): Foo = TODO() operator fun Foo.getValue(receiver: Inference2, p: Any?): String = TODO() - val test1: String by delegate() // same story like in Inference1 + val test1: String by delegate() // same story like in Inference1 val test2: String by delegate() } diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.kt index 4e036de80a9..d92e6ab8bf5 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.kt @@ -12,6 +12,5 @@ fun String.provideDelegate(a: Any?, p: KProperty<*>) = StringDelegate(this) operator fun String.getValue(a: Any?, p: KProperty<*>) = this val test1: String by "OK" -val test2: Int by "OK" +val test2: Int by "OK" val test3 by "OK" - diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/setValue.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/setValue.kt index 1e52379b53e..c0c565e46d8 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/setValue.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/setValue.kt @@ -7,10 +7,10 @@ operator fun Delegate.setValue(receiver: Any?, p: Any, value: T) {} operator fun String.provideDelegate(receiver: Any?, p: Any) = Delegate() -var test1: String by Delegate() +var test1: String by Delegate() var test2: String by Delegate() var test3: String by "OK" -var test4: String by "OK".provideDelegate(null, "") +var test4: String by "OK".provideDelegate(null, "") var test5: String by "OK".provideDelegate(null, "") diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.kt index 9028f3f8d0d..e92730fa924 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.kt @@ -10,5 +10,5 @@ class WrongDelegate(val x: Int) { operator fun String.getValue(thisRef: Any?, prop: Any) = this val test1: String by "OK" -val test2: Int by "OK" +val test2: Int by "OK" val test3 by "OK" diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.kt b/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.kt index 256d2a421d8..39286ef1ed3 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.kt @@ -3,12 +3,12 @@ import kotlin.reflect.KProperty -val a by a +val a by a -val b by Delegate(b) +val b by Delegate(b) val c by d -val d by c +val d by c class Delegate(i: Int) { operator fun getValue(t: Any?, p: KProperty<*>): Int { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForGetReturnType.kt b/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForGetReturnType.kt index 740a7d7176c..babcd067eb8 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForGetReturnType.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForGetReturnType.kt @@ -2,7 +2,7 @@ import kotlin.reflect.KProperty -val c: Int by Delegate() +val c: Int by Delegate() class Delegate { operator fun getValue(t: Any?, p: KProperty<*>): String { diff --git a/compiler/testData/diagnostics/tests/delegation/DelegationExpectedType.kt b/compiler/testData/diagnostics/tests/delegation/DelegationExpectedType.kt index 3a7baea34f5..c8c38aaab90 100644 --- a/compiler/testData/diagnostics/tests/delegation/DelegationExpectedType.kt +++ b/compiler/testData/diagnostics/tests/delegation/DelegationExpectedType.kt @@ -20,6 +20,6 @@ class D : A by baz({ it + 1 }) fun boo(t: T): A = AImpl() -class E : A by boo("") +class E : A by boo("") class F : A by AImpl() diff --git a/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt b/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt index f18c3eb226b..1ab97b44123 100644 --- a/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt +++ b/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt @@ -1,6 +1,6 @@ enum class E : Cloneable { A; override fun clone(): Any { - return super.clone() + return super.clone() } } diff --git a/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.kt b/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.kt index 9d66173da70..507b6089e85 100644 --- a/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.kt +++ b/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.kt @@ -19,7 +19,7 @@ class A infix operator fun A.plus(a : Any) { 1.foo() - true.foo() + true.foo() 1 } diff --git a/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver.kt b/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver.kt index 28e12d062f2..2f33108dfb3 100644 --- a/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver.kt +++ b/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver.kt @@ -34,22 +34,22 @@ fun test4() { // should be an error on receiver, shouldn't be thrown away fun test5() { - 1.(fun String.()=1)() + 1.(fun String.()=1)() } fun R?.sure() : R = this!! fun test6(l: List?) { - l.sure<T>() + l.sure() } fun List.b() {} fun test7(l: List) { - l.b() + l.b() } fun test8(l: List?) { - l.b() + l.b() } diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.kt b/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.kt index e810eadd259..ca82f561e4c 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.kt @@ -11,7 +11,7 @@ fun test(a: (Int) -> Int) { } fun test2(a: () -> List) { - test2(fun () = listOf()) + test2(fun () = listOf()) } val a: (Int) -> Unit = fun(x) { checkSubtype(x) } diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.kt b/compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.kt index 97f43096fcc..5e87ac1cb50 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.kt @@ -1,2 +1,2 @@ fun foo(f: String.() -> Int) {} -val test = foo(fun () = length) +val test = foo(fun () = length) diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/WithGenericParameters.kt b/compiler/testData/diagnostics/tests/functionAsExpression/WithGenericParameters.kt index 3209a9efa5d..5e13d0cfe64 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/WithGenericParameters.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/WithGenericParameters.kt @@ -11,8 +11,8 @@ fun fun_with_where() = fun T.(t: T): T whe fun outer() { devNull(fun () {}) - devNull(fun T.() {}) - devNull(fun (): T = null!!) - devNull(fun (t: T) {}) + devNull(fun T.() {}) + devNull(fun (): T = null!!) + devNull(fun (t: T) {}) devNull(fun () where T:A {}) } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.kt b/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.kt index dba678eb05a..93d19bead5d 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/ExpectedParametersTypesMismatch.kt @@ -8,37 +8,37 @@ fun test1() { foo0 { "" } - foo0 { + foo0 { s: String-> "" } - foo0 { + foo0 { x, y -> "" } foo1 { "" } - foo1 { + foo1 { s: String -> "" } - foo1 { + foo1 { x, y -> "" } - foo1 { + foo1 { -> 42 } - foo2 { + foo2 { "" } - foo2 { + foo2 { s: String -> "" } - foo2 { + foo2 { x -> "" } - foo2 { + foo2 { -> 42 } } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.kt b/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.kt index 9b020300a14..4bcde82e60e 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.kt @@ -9,7 +9,7 @@ fun foo(a: A, f: () -> T): T = f() fun foo(b: B, f: () -> T): T = f() fun test(c: C) { - foo(c) f@ { + foo(c) f@ { c!! } } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/assignmentOperationInLambdaWithExpectedType.kt b/compiler/testData/diagnostics/tests/functionLiterals/assignmentOperationInLambdaWithExpectedType.kt index 27ed62005c0..4b0c8a9308d 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/assignmentOperationInLambdaWithExpectedType.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/assignmentOperationInLambdaWithExpectedType.kt @@ -11,5 +11,5 @@ fun test(bal: Array) { val e: Unit = run { bar += 4 } - val f: Int = run { bar += 4 } + val f: Int = run { bar += 4 } } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.kt index 7eeff83541d..08a5f4fab19 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.kt @@ -29,10 +29,10 @@ fun bar(aInstance: A, bInstance: B) { d checkType { _() } } - foo(bInstance) { + foo(bInstance) { (a, b), (c, d) -> - a checkType { _() } - b checkType { _() } + a checkType { _() } + b checkType { _() } c checkType { _() } d checkType { _() } } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.kt index c074bbbc53c..3a44a0c0577 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/inferredFunctionalType.kt @@ -26,8 +26,8 @@ fun bar(aList: List) { b checkType { _() } } - aList.foo { (a, b): B -> - b checkType { _() } - a checkType { _() } + aList.foo { (a, b): B -> + b checkType { _() } + a checkType { _() } } } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.kt index 5753f8c2c0b..24e5a0a220b 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.kt @@ -25,7 +25,7 @@ fun bar() { y2 checkType { _<(A) -> Unit>() } val z = { (a: Int, b: String) -> - a checkType { _() } - b checkType { _() } + a checkType { _() } + b checkType { _() } } } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/redeclaration.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/redeclaration.kt index f47c7d525fe..3a53a31943f 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/redeclaration.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/redeclaration.kt @@ -7,23 +7,23 @@ fun foo(block: (A, B) -> Unit) { } fun bar() { foo { (a, a), b -> - a checkType { _() } - b checkType { _() } + a checkType { _() } + b checkType { _() } } foo { (a, b), a -> - a checkType { _() } + a checkType { _() } b checkType { _() } } foo { a, (a, b) -> - a checkType { _() } - b checkType { _() } + a checkType { _() } + b checkType { _() } } foo { (a, b), (c, b) -> a checkType { _() } - b checkType { _() } - c checkType { _() } + b checkType { _() } + c checkType { _() } } } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/simple.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/simple.kt index cfb973869e4..b5c9606fcc9 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/simple.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/simple.kt @@ -46,7 +46,7 @@ fun bar() { b checkType { _() } } - foo { (a, b): B -> + foo { (a, b): B -> a checkType { _() } b checkType { _() } } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/underscore.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/underscore.kt index 585dec4c051..8f37743f60e 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/underscore.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/underscore.kt @@ -7,35 +7,35 @@ fun foo(block: (A) -> Unit) { } fun bar() { foo { (_, b) -> - _.hashCode() + _.hashCode() b checkType { _() } } foo { (a, _) -> a checkType { _() } - _.hashCode() + _.hashCode() } foo { (_, _) -> - _.hashCode() + _.hashCode() } foo { (_: Int, b: String) -> - _.hashCode() + _.hashCode() b checkType { _() } } foo { (a: Int, _: String) -> a checkType { _() } - _.hashCode() + _.hashCode() } foo { (_: Int, _: String) -> - _.hashCode() + _.hashCode() } foo { (_, _): A -> - _.hashCode() + _.hashCode() } foo { (`_`, _) -> @@ -51,12 +51,12 @@ fun bar() { } foo { (_: String, b) -> - _.hashCode() + _.hashCode() b checkType { _() } } - foo { (_, b): B -> - _.hashCode() + foo { (_, b): B -> + _.hashCode() b checkType { _() } } } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.kt b/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.kt index bf12887292c..54e02ed4d81 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.kt @@ -2,5 +2,5 @@ fun foo() { val f : Function1<*, *> = { x -> x.toString() } - f(1) + f(1) } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.kt index 8f97ce3f2f7..e86df822f8d 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.kt @@ -5,10 +5,10 @@ fun listOf(vararg values: T): List = null!! fun commonSystemFailed(a: List) { a.map { if (it == 0) return@map listOf(it) - listOf() + listOf() } a.map { - if (it == 0) return@map listOf() + if (it == 0) return@map listOf() listOf(it) } a.map { diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/SmartCast.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/SmartCast.kt index 8bbe3eaec5d..20b2ce0fc8c 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/SmartCast.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/SmartCast.kt @@ -9,7 +9,7 @@ val a /* :(Int?) -> Int? */ = l@ { it: Int? -> // but must be (Int?) -> Int fun let(f: (Int?) -> R): R = null!! val b /*: Int? */ = let { // but must be Int - if (it != null) return@let it + if (it != null) return@let it 5 } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.kt b/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.kt index 54199aebc46..966e4961a6f 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.kt @@ -4,7 +4,7 @@ interface Element fun test(handlers: MapUnit>) { - handlers.getOrElse("name", l@ { return@l null }) + handlers.getOrElse("name", l@ { return@l null }) } fun Map.getOrElse(key: K, defaultValue: ()-> V) : V = throw Exception("$key $defaultValue") diff --git a/compiler/testData/diagnostics/tests/generics/Projections.kt b/compiler/testData/diagnostics/tests/generics/Projections.kt index e751811eb81..ca5ac18e5b2 100644 --- a/compiler/testData/diagnostics/tests/generics/Projections.kt +++ b/compiler/testData/diagnostics/tests/generics/Projections.kt @@ -36,13 +36,13 @@ fun testInOut() { Inv().f(1) (null as Inv).f(1) - (null as Inv).f(1) // !! - (null as Inv<*>).f(1) // !! + (null as Inv).f(1) // !! + (null as Inv<*>).f(1) // !! Inv().inf(1) (null as Inv).inf(1) - (null as Inv).inf(1) // !! - (null as Inv<*>).inf(1) // !! + (null as Inv).inf(1) // !! + (null as Inv<*>).inf(1) // !! Inv().outf() checkSubtype((null as Inv).outf()) // Type mismatch diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.kt index 7353627a470..b34e6d45fc5 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.kt @@ -46,7 +46,7 @@ class Outer { x().bar() checkType { _>() } x = foobar() - x = z.foobar() + x = z.foobar() var y = noParameters() y = noParameters() diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/innerTP.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/innerTP.kt index ad2154e0abc..c97b405bcfa 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/innerTP.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/innerTP.kt @@ -31,7 +31,7 @@ fun main() { checkSubtype.Inner<*>>(outer.Inner()) checkSubtype.Inner>(outer.bar()) - checkSubtype.Inner>(outer.Inner()) + checkSubtype.Inner>(outer.Inner()) outer.set(outer.bar()) outer.set(outer.Inner()) diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/innerUncheckedCast.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/innerUncheckedCast.kt index 73d216fb93c..fff3d4680bd 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/innerUncheckedCast.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/innerUncheckedCast.kt @@ -14,7 +14,7 @@ class Outer { if (y is Inner) return if (z is Inner) { - z.prop.checkType { _() } + z.prop.checkType { _() } return } diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/iterator.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/iterator.kt index fa48202eef8..16c710152ec 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/iterator.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/iterator.kt @@ -32,5 +32,5 @@ fun foo() { val csIt: Iterator = A().iterator() - commonSupertype(A().iterator(), A().iterator()).checkType { _.MyIt>() } + commonSupertype(A().iterator(), A().iterator()).checkType { _.MyIt>() } } diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/qualifiedOuter.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/qualifiedOuter.kt index bb9c10f2d8e..df123536253 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/qualifiedOuter.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/qualifiedOuter.kt @@ -5,7 +5,7 @@ class Outer { inner class Inner fun foo(x: Outer.Inner, y: Outer.Inner, z: Inner) { var inner = Inner() - x.checkType { _() } + x.checkType { _() } x.checkType { _.Inner>() } z.checkType { _() } z.checkType { _.Inner>() } diff --git a/compiler/testData/diagnostics/tests/generics/innerClasses/simpleOutUseSite.kt b/compiler/testData/diagnostics/tests/generics/innerClasses/simpleOutUseSite.kt index 58130117bac..bcbf75f6f90 100644 --- a/compiler/testData/diagnostics/tests/generics/innerClasses/simpleOutUseSite.kt +++ b/compiler/testData/diagnostics/tests/generics/innerClasses/simpleOutUseSite.kt @@ -28,9 +28,9 @@ fun main() { checkSubtype.Inner>(outer.bar()) checkSubtype.Inner>(outer.Inner()) - outer.set(outer.bar()) - outer.set(outer.Inner()) + outer.set(outer.bar()) + outer.set(outer.Inner()) val x: Outer.Inner = factoryString() - outer.set(x) + outer.set(x) } diff --git a/compiler/testData/diagnostics/tests/generics/kt30590.kt b/compiler/testData/diagnostics/tests/generics/kt30590.kt index 065cd2c2fb7..7c2a6d5b6a8 100644 --- a/compiler/testData/diagnostics/tests/generics/kt30590.kt +++ b/compiler/testData/diagnostics/tests/generics/kt30590.kt @@ -5,4 +5,4 @@ interface A fun emptyStrangeMap(): Map = TODO() fun test7() : Map = emptyStrangeMap() -fun test() = emptyStrangeMap() +fun test() = emptyStrangeMap() diff --git a/compiler/testData/diagnostics/tests/generics/kt34729.kt b/compiler/testData/diagnostics/tests/generics/kt34729.kt index 9f993c27f14..03eb5f03a3a 100644 --- a/compiler/testData/diagnostics/tests/generics/kt34729.kt +++ b/compiler/testData/diagnostics/tests/generics/kt34729.kt @@ -13,6 +13,6 @@ fun bar(a: (Int) -> T) { } fun test() { - foo { } - bar { } + foo { } + bar { } } diff --git a/compiler/testData/diagnostics/tests/generics/nullability/expressionsBoundsViolation.kt b/compiler/testData/diagnostics/tests/generics/nullability/expressionsBoundsViolation.kt index 4d511fd15d0..ce2b515acc1 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/expressionsBoundsViolation.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/expressionsBoundsViolation.kt @@ -6,13 +6,12 @@ fun foo1(x: E) {} fun E.foo2() {} fun bar(x: F) { - A(x) + A(x) A<F>(x) - foo1(x) + foo1(x) foo1<F>(x) - x.foo2() + x.foo2() x.foo2<F>() } - diff --git a/compiler/testData/diagnostics/tests/generics/nullability/smartCasts.kt b/compiler/testData/diagnostics/tests/generics/nullability/smartCasts.kt index 0960439ba2e..341ff82d766 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/smartCasts.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/smartCasts.kt @@ -14,9 +14,9 @@ fun foo(x: T) { x.length x?.length - x.bar1() + x.bar1() x.bar2() - x.bar3() + x.bar3() x.bar4() @@ -29,7 +29,7 @@ fun foo(x: T) { x.length x?.length - x.bar1() + x.bar1() x.bar2() x.bar3() } @@ -38,7 +38,7 @@ fun foo(x: T) { x.length x?.length - x.bar1() + x.bar1() x.bar2() x.bar3() } diff --git a/compiler/testData/diagnostics/tests/generics/nullability/smartCastsOnThis.kt b/compiler/testData/diagnostics/tests/generics/nullability/smartCastsOnThis.kt index 40f25b33373..7c1ee10f311 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/smartCastsOnThis.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/smartCastsOnThis.kt @@ -10,13 +10,13 @@ fun T.foo() { if (this != null) { if (this != null) {} - length + length this?.length - bar1() + bar1() bar2() - bar3() - bar4() + bar3() + bar4() this?.bar1() @@ -28,8 +28,8 @@ fun T.foo() { length this?.length - bar1() + bar1() bar2() - bar3() + bar3() } } diff --git a/compiler/testData/diagnostics/tests/generics/nullability/smartCastsValueArgument.kt b/compiler/testData/diagnostics/tests/generics/nullability/smartCastsValueArgument.kt index c6bb3d8cf4b..34fe6c34e69 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/smartCastsValueArgument.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/smartCastsValueArgument.kt @@ -13,7 +13,7 @@ fun foo(x: T) { y1 = x y2 = x - bar1(x) + bar1(x) bar1(x) bar2(x) bar3(x) @@ -39,13 +39,13 @@ fun foo(x: T) { if (1 == 1) { val y = x!! - bar1(x) + bar1(x) bar1(x) bar2(x) bar3(x) - bar1(y) - bar2(y) + bar1(y) + bar2(y) bar3(y) } } diff --git a/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolation.kt b/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolation.kt index 6d16004c320..8df26301a06 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolation.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolation.kt @@ -17,7 +17,7 @@ class A { x2.checkType { _() } foo1<F?>(y) - foo1(y) + foo1(y) foo2(y) val x3 = foo2(y) @@ -37,7 +37,7 @@ class A { x4.checkType { _() } foo1<W>(w) - foo1(w) + foo1(w) foo2(w) val x6 = foo2(w) diff --git a/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolationVariance.kt b/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolationVariance.kt index df2221ef587..b67feaf885d 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolationVariance.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/tpBoundsViolationVariance.kt @@ -19,7 +19,7 @@ class A { fooInv1>(Inv()) fooInv2<Inv>(Inv()) fooInv1(Inv()) - fooInv2(Inv()) + fooInv2(Inv()) fooIn1>(In()) fooIn2>(In()) @@ -34,13 +34,13 @@ class A { // Z fooInv1<Inv>(Inv()) fooInv2<Inv>(Inv()) - fooInv1(Inv()) - fooInv2(Inv()) + fooInv1(Inv()) + fooInv2(Inv()) fooIn1<In>(In()) fooIn2<In>(In()) - fooIn1(In()) - fooIn2(In()) + fooIn1(In()) + fooIn2(In()) fooOut1>(Out()) fooOut2>(Out()) @@ -50,17 +50,17 @@ class A { // W fooInv1<Inv>(Inv()) fooInv2<Inv>(Inv()) - fooInv1(Inv()) - fooInv2(Inv()) + fooInv1(Inv()) + fooInv2(Inv()) fooIn1<In>(In()) fooIn2<In>(In()) - fooIn1(In()) - fooIn2(In()) + fooIn1(In()) + fooIn2(In()) fooOut1<Out>(Out()) fooOut2>(Out()) - fooOut1(Out()) + fooOut1(Out()) fooOut2(Out()) } } diff --git a/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.kt b/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.kt index 17998637049..38d6b9d8ad3 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.kt @@ -20,7 +20,7 @@ fun foo(x: T) { x?.bar1() x?.bar2() - x.bar3() + x.bar3() - x?.let { it.length } + x?.let { it.length } } diff --git a/compiler/testData/diagnostics/tests/generics/nullability/useAsValueArgument.kt b/compiler/testData/diagnostics/tests/generics/nullability/useAsValueArgument.kt index 05c72e519ae..2081749e5b8 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/useAsValueArgument.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/useAsValueArgument.kt @@ -12,6 +12,6 @@ fun foo(x: T) { bar1(x) bar2(x) - bar3(x) + bar3(x) bar4(x) } diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/addAll.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/addAll.kt index 08134790020..086969fa5e1 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/addAll.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/addAll.kt @@ -14,18 +14,18 @@ fun mc(): MC = null!! fun c(): C = null!! fun foo(x: MC) { - x.addAll(x) - x.addAllMC(x) + x.addAll(x) + x.addAllMC(x) - x.addAll(mc()) - x.addAllMC(mc()) + x.addAll(mc()) + x.addAllMC(mc()) - x.addAll(mc()) - x.addAllMC(mc()) + x.addAll(mc()) + x.addAllMC(mc()) x.addAll(c()) x.addAll(c()) - x.addAllInv(mc()) + x.addAllInv(mc()) x.addAll(1) } diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/extensionReceiverTypeMismatch.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/extensionReceiverTypeMismatch.kt index 6b98cff7f97..e652de641fa 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/extensionReceiverTypeMismatch.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/extensionReceiverTypeMismatch.kt @@ -8,10 +8,10 @@ fun test(x: A, y: Out) { with(x) { // TODO: this diagnostic could be replaced with TYPE_MISMATCH_DUE_TO_TYPE_PROJECTION "".foo() - y.bar() + y.bar() with(y) { - bar() + bar() } } } diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/inValueParameter.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/inValueParameter.kt index 7d019f81856..6d00b15763b 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/inValueParameter.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/inValueParameter.kt @@ -4,5 +4,5 @@ interface B { } fun foo(x: B, y: A) { - x.foo(y) + x.foo(y) } diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/multipleArgumentProjectedOut.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/multipleArgumentProjectedOut.kt index 812ef20d22b..6ee05ea6158 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/multipleArgumentProjectedOut.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/multipleArgumentProjectedOut.kt @@ -5,5 +5,5 @@ class A { } fun test(a: A) { - a.foo("", "") + a.foo("", "") } diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutConventions.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutConventions.kt index 104aa8869fa..70ec64013a8 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutConventions.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutConventions.kt @@ -7,7 +7,7 @@ class A { } fun test(a: A) { - a + "" - a[1] = "" - a[""] + a + "" + a[1] = "" + a[""] } diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutSmartCast.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutSmartCast.kt index b2a65a313af..c0b8f86f999 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutSmartCast.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutSmartCast.kt @@ -5,18 +5,18 @@ class C { } fun foo(x: Any?, y: C<*>) { - y.bindTo("") + y.bindTo("") if (x is C<*>) { - x.bindTo("") + x.bindTo("") with(x) { - bindTo("") + bindTo("") } } with(x) { if (this is C<*>) { - bindTo("") + bindTo("") } } } diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchConventions.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchConventions.kt index 49c400c9eb6..3e111f35339 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchConventions.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeMismatchConventions.kt @@ -9,9 +9,9 @@ class A { class Out fun test(a: A, y: Out) { - a + y - a[1] = y - a[y] + a + y + a[1] = y + a[y] a + Out() a[1] = Out() diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.kt index f65f208efe5..cbb6a8249de 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.kt @@ -12,15 +12,15 @@ class A { } fun foo2(a: A, b: A) { - a.foo1(Out()) - a.foo1<Out>(Out()) + a.foo1(Out()) + a.foo1<Out>(Out()) a.foo1(Out()) a.foo1(Out()) - a.foo2(Inv()) - a.foo2(Inv()) - a.foo2<Inv>(Inv()) + a.foo2(Inv()) + a.foo2(Inv()) + a.foo2<Inv>(Inv()) a.foo3(In()) a.foo3(In()) @@ -30,13 +30,13 @@ fun foo2(a: A, b: A) { b.foo1(Out()) b.foo1>(Out()) - b.foo2(Inv()) - b.foo2(Inv()) - b.foo2<Inv>(Inv()) + b.foo2(Inv()) + b.foo2(Inv()) + b.foo2<Inv>(Inv()) - b.foo3(In()) - b.foo3<In>(In()) + b.foo3(In()) + b.foo3<In>(In()) b.foo3(In()) b.foo3(In()) diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/varargs.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/varargs.kt index 7308ea36821..3082e5769c9 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/varargs.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/varargs.kt @@ -5,8 +5,8 @@ class A { } fun test(a: A, y: Array) { - a.foo("", "", "") - a.foo(*y) + a.foo("", "", "") + a.foo(*y) // TODO: TYPE_MISMATCH_DUE_TO_TYPE_PROJECTIONS probably redundant - a.foo(*y, "") + a.foo(*y, "") } diff --git a/compiler/testData/diagnostics/tests/generics/starProjections/invalid.kt b/compiler/testData/diagnostics/tests/generics/starProjections/invalid.kt index ff5029bd207..f378816a430 100644 --- a/compiler/testData/diagnostics/tests/generics/starProjections/invalid.kt +++ b/compiler/testData/diagnostics/tests/generics/starProjections/invalid.kt @@ -16,7 +16,7 @@ fun main(a: A<*>, j: JavaClass<*>, i2: Inv2<*>) { j.foo() checkType { _() } i2.x checkType { _() } - j.bar(1, 2, Any()) + j.bar(1, 2, Any()) j.bar(null) } diff --git a/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.kt b/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.kt index d2a85166754..c8e57da4172 100644 --- a/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.kt +++ b/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.kt @@ -3,7 +3,7 @@ class C<reified T> fun id(p: T): T = p fun main() { - C() + C() val a: C = C() C<A>() diff --git a/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.kt b/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.kt index eff39527cac..48ae341a911 100644 --- a/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.kt +++ b/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.kt @@ -9,7 +9,7 @@ inline fun f(): T = throw UnsupportedOperationException() fun id(p: T): T = p fun main() { - f() + f() val a: A = f() f<A>() diff --git a/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt b/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt index d899b0753e4..a436b2e3d79 100644 --- a/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt +++ b/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt @@ -4,12 +4,12 @@ fun myFun(i : String) {} fun myFun(i : Int) {} fun test1() { - myFun(3) + myFun(3) myFun('a') } fun test2() { - val m0 = java.util.HashMap() + val m0 = java.util.HashMap() val m1 = java.util.HashMap() val m2 = java.util.HashMap() } diff --git a/compiler/testData/diagnostics/tests/implicitIntersection.kt b/compiler/testData/diagnostics/tests/implicitIntersection.kt index 449fd529d9a..6e3886c7f06 100644 --- a/compiler/testData/diagnostics/tests/implicitIntersection.kt +++ b/compiler/testData/diagnostics/tests/implicitIntersection.kt @@ -6,24 +6,24 @@ interface A interface C // Error! -fun foo(b: B) = if (b is A && b is C) b else null +fun foo(b: B) = if (b is A && b is C) b else null // Ok: given explicitly fun gav(b: B): A? = if (b is A && b is C) b else null class My(b: B) { // Error! - val x = if (b is A && b is C) b else null + val x = if (b is A && b is C) b else null // Ok: given explicitly val y: C? = if (b is A && b is C) b else null // Error! - fun foo(b: B) = if (b is A && b is C) b else null + fun foo(b: B) = if (b is A && b is C) b else null } fun bar(b: B): String { // Ok: local variable val tmp = if (b is A && b is C) b else null // Error: local function - fun foo(b: B) = if (b is A && b is C) b else null + fun foo(b: B) = if (b is A && b is C) b else null return tmp.toString() } diff --git a/compiler/testData/diagnostics/tests/implicitNestedIntersection.kt b/compiler/testData/diagnostics/tests/implicitNestedIntersection.kt index 96e91be70b9..589b23dff7e 100644 --- a/compiler/testData/diagnostics/tests/implicitNestedIntersection.kt +++ b/compiler/testData/diagnostics/tests/implicitNestedIntersection.kt @@ -7,7 +7,7 @@ open class B : In fun select(x: T, y: T) = x -fun foo2() = select(A(), B()) // Type "In" is prohibited in return position +fun foo2() = select(A(), B()) // Type "In" is prohibited in return position @@ -20,4 +20,4 @@ open class H : In fun select8(a: S, b: S, c: S, d: S, e: S, f: S, g: S, h: S) = a -fun foo8() = select8(A(), B(), C(), D(), E(), F(), G(), H()) +fun foo8() = select8(A(), B(), C(), D(), E(), F(), G(), H()) diff --git a/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.kt b/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.kt index 03956ea2597..49019d9df3d 100644 --- a/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.kt +++ b/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.kt @@ -70,6 +70,6 @@ fun test(b: B) { val b_3 = B() b_3.m2() - val b_4 = a.B() - b_4.m2() + val b_4 = a.B() + b_4.m2() } diff --git a/compiler/testData/diagnostics/tests/imports/Imports.kt b/compiler/testData/diagnostics/tests/imports/Imports.kt index a55745d480b..d45d6abf67a 100644 --- a/compiler/testData/diagnostics/tests/imports/Imports.kt +++ b/compiler/testData/diagnostics/tests/imports/Imports.kt @@ -81,7 +81,7 @@ object C { } fun foo() { - if (i == 3) f() + if (i == 3) f() } //FILE:d.kt diff --git a/compiler/testData/diagnostics/tests/imports/twoImportLists.kt b/compiler/testData/diagnostics/tests/imports/twoImportLists.kt index ac2f6b8ee97..c12c50610b4 100644 --- a/compiler/testData/diagnostics/tests/imports/twoImportLists.kt +++ b/compiler/testData/diagnostics/tests/imports/twoImportLists.kt @@ -84,7 +84,7 @@ object C { } fun foo() { - if (i == 3) f() + if (i == 3) f() } //FILE:d.kt diff --git a/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.kt b/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.kt index 42221848c08..fe63448dba3 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.kt @@ -2,7 +2,7 @@ package a fun foo() { val a = getErrorType() - if (a == null) { //no senseless comparison + if (a == null) { //no senseless comparison } } diff --git a/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt b/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt index 2586168dfdc..194c30b40ba 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt @@ -6,7 +6,7 @@ interface A fun infer(a: A) : T {} fun test(nothing: Nothing?) { - val i = infer(nothing) + val i = infer(nothing) } fun sum(a : IntArray) : Int { diff --git a/compiler/testData/diagnostics/tests/incompleteCode/controlStructuresErrors.kt b/compiler/testData/diagnostics/tests/incompleteCode/controlStructuresErrors.kt index c4f23e769c3..dcde1be3527 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/controlStructuresErrors.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/controlStructuresErrors.kt @@ -1,19 +1,18 @@ - fun test1() { if (rr) { if (l) { - a.q() + a.q() } else { - a.w() + a.w() } } else { if (n) { - a.t() + a.t() } else { - a.u() + a.u() } } } diff --git a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.kt b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.kt index f5cabf77236..2c98f5472c3 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.kt @@ -3,5 +3,5 @@ package bar fun main() { class Some - Some[] names = ["ads"] + Some[] names = ["ads"] } diff --git a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.kt b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.kt index 3bd91b697a5..33b070810cc 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.kt @@ -5,5 +5,5 @@ fun foo(map: Map) : R = throw Exception() fun getMap() : Map = throw Exception() fun bar123() { - foo(getMap( + foo(getMap( } diff --git a/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt b/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt index 8a51ba2f890..86021c301c0 100644 --- a/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt +++ b/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt @@ -3,7 +3,7 @@ fun fooT22() : T? { } fun foo1() { - fooT22() + fooT22() } val n : Nothing = null.sure() diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt index 86daf144206..1ee62f30377 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt @@ -4,5 +4,5 @@ fun g(i: Int, a: Any): List {throw Exception()} fun g(a: Any, i: Int): Collection {throw Exception()} fun test() { - val c: List = g(1, 1) + val c: List = g(1, 1) } diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.kt index c8eff93154e..c90d9f55e36 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.kt @@ -3,4 +3,4 @@ package f fun h(i: Int, a: Any, r: R, f: (Boolean) -> Int) = 1 fun h(a: Any, i: Int, r: R, f: (Boolean) -> Int) = 1 -fun test() = h(1, 1, 1, { b -> 42 }) +fun test() = h(1, 1, 1, { b -> 42 }) diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt index 8a3f2b008e5..c2116e2279b 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt @@ -4,7 +4,7 @@ fun f(i: Int, c: Collection): List {throw Exception()} fun f(a: Any, l: List): Collection {throw Exception()} fun test(l: List) { - f(1, emptyList()) + f(1, emptyList()) } fun emptyList(): List {throw Exception()} diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt index 69db5cc44ef..4f7d4791c23 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt @@ -4,6 +4,6 @@ package f fun h(f: (Boolean) -> R) = 1 fun h(f: (String) -> R) = 2 -fun test() = h{ i -> getAnswer() } +fun test() = h{ i -> getAnswer() } fun getAnswer() = 42 diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/cannotCaptureInProjection.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/cannotCaptureInProjection.kt index 5a81b61c0c8..381f116b394 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/cannotCaptureInProjection.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/cannotCaptureInProjection.kt @@ -4,13 +4,13 @@ fun bar(a: Array): Array = null!! fun test1(a: Array) { - val r: Array = bar(a) - bar(a) + val r: Array = bar(a) + bar(a) } fun foo(l: Array): Array> = null!! fun test2(a: Array) { - val r: Array> = foo(a) - foo(a) + val r: Array> = foo(a) + foo(a) } diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureForNullableTypes.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureForNullableTypes.kt index fbb90ff3508..5ed6b546809 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureForNullableTypes.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureForNullableTypes.kt @@ -4,15 +4,15 @@ fun bar(a: Array): Array = null!! fun test1(a: Array) { - val r: Array = bar(a) - val t = bar(a) - t checkType { _>() } + val r: Array = bar(a) + val t = bar(a) + t checkType { _>() } } fun foo(l: Array): Array> = null!! fun test2(a: Array) { - val r: Array> = foo(a) - val t = foo(a) - t checkType { _>>() } + val r: Array> = foo(a) + val t = foo(a) + t checkType { _>>() } } diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromNullableTypeVariable.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromNullableTypeVariable.kt index 6ec7122de23..36423603e52 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromNullableTypeVariable.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromNullableTypeVariable.kt @@ -3,11 +3,11 @@ fun Array.filterNotNull(): List = throw Exception() fun test1(a: Array) { - val list = a.filterNotNull() - list checkType { _>() } + val list = a.filterNotNull() + list checkType { _>() } } fun test2(vararg a: Int?) { - val list = a.filterNotNull() - list checkType { _>() } + val list = a.filterNotNull() + list checkType { _>() } } diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.kt index 5fbbf48caf5..f1239dc2163 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.kt @@ -3,7 +3,7 @@ fun foo(array: Array>): Array> = array fun test(array: Array>) { - foo(array) + foo(array) - val f: Array> = foo(array) + val f: Array> = foo(array) } diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.kt index 8473202cc19..dec027aaa9c 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.kt @@ -4,6 +4,6 @@ fun foo(a1: Array, a2: Array): T = null!! fun test(a1: Array, a2: Array) { - val c: Int = foo(a1, a2) + val c: Int = foo(a1, a2) } diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/kt2872.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/kt2872.kt index d8264cd424e..66f5ea3b673 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/kt2872.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/kt2872.kt @@ -2,5 +2,5 @@ fun Array.foo() {} fun test(array: Array) { array.foo() - array.foo<out Int>() + array.foo<out Int>() } diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.kt b/compiler/testData/diagnostics/tests/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.kt index ac9360ccf02..49daf301070 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.kt @@ -10,7 +10,7 @@ fun bar(b: B>, bOut: B>, bOut2: B(b) - baz(bOut) + baz(bOut) baz(bOut) baz(bOut2) diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.kt index 82af478d09f..b2096a740cd 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.kt @@ -1,12 +1,11 @@ - fun materializeNumber(): T = TODO() fun a(): Unit = run { - materializeNumber() + materializeNumber() } fun b(): Unit = run { run { - materializeNumber() + materializeNumber() } } diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.kt index 2984d99ac31..ec97a534275 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.kt @@ -1,4 +1,3 @@ - fun materialize(): T = TODO() fun implicitCoercion() { @@ -13,6 +12,6 @@ fun implicitCoercion() { val c = l@{ // Error: block doesn't have an expected type, so call can't be inferred! - return@l materialize() + return@l materialize() } } diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.kt index 956de346b32..2d4a3eebe88 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.kt @@ -53,7 +53,7 @@ fun testParameter() { takeFnToParameter { Unit } takeFnToParameter { unresolved() } takeFnToParameter { if (true) unresolved() } - takeFnToParameter { + takeFnToParameter { if (true) unresolved() else unresolved() } takeFnToParameter(fun() = Unit) diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.kt index c56c02b7460..f1e66019d15 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.kt @@ -1,4 +1,3 @@ - fun materialize(): T = TODO() fun a(): Unit = run { @@ -18,13 +17,13 @@ fun c(): Unit = run { // Attention! // In OI expected type 'Unit' isn't applied here because of implementation quirks (note that OI still applies Unit in case 'e') // In NI, it is applied and call is correctly inferred, which is consistent with the previous case - materialize() + materialize() } } fun d(): Unit = run outer@{ run inner@{ - return@inner materialize() + return@inner materialize() } } diff --git a/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.kt b/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.kt index aa14bc206ff..62771517349 100644 --- a/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.kt +++ b/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.kt @@ -3,5 +3,5 @@ fun nullable(): T? = null fun test() { - val value = nullable() ?: nullable() + val value = nullable() ?: nullable() } diff --git a/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.kt b/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.kt index cee1a1d7013..eedd0bc1fd6 100644 --- a/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.kt +++ b/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.kt @@ -13,6 +13,6 @@ fun joinT(x: Comparable<*>, y: T): T? { } fun test() { - val x2 = joinT(Unit, "2") + val x2 = joinT(Unit, "2") checkSubtype(x2) } diff --git a/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.kt b/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.kt index 6d70dc89f1c..7041d68261b 100644 --- a/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.kt +++ b/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.kt @@ -7,9 +7,9 @@ fun elemAndList(r: R, t: MutableList): R = r fun R.elemAndListWithReceiver(r: R, t: MutableList): R = r fun test() { - val s = elemAndList(11, list("72")) + val s = elemAndList(11, list("72")) - val u = 11.elemAndListWithReceiver(4, list("7")) + val u = 11.elemAndListWithReceiver(4, list("7")) } fun list(value: T) : ArrayList { diff --git a/compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.kt b/compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.kt index bec3b059a21..84bd20e4b14 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.kt @@ -10,6 +10,6 @@ fun choose3(c: Inv>) {} fun f(o: Out>, i: In>, inv: Inv>) { choose1(o) - choose2(i) - choose3(inv) + choose2(i) + choose3(inv) } diff --git a/compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.kt b/compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.kt index 9003814c25d..45a75ba0b02 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.kt @@ -2,10 +2,9 @@ package c import java.util.ArrayList -fun Array.toIntArray(): IntArray = this.mapTo(IntArray(size), {it}) +fun Array.toIntArray(): IntArray = this.mapTo(IntArray(size), {it}) fun Array.toArrayList(): ArrayList = this.mapTo(ArrayList(size), {it}) public fun > Array.mapTo(result: C, transform : (T) -> R) : C = throw Exception("$result $transform") - diff --git a/compiler/testData/diagnostics/tests/inference/constraints/kt6320.kt b/compiler/testData/diagnostics/tests/inference/constraints/kt6320.kt index f2869dc5e6d..7483aab3234 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/kt6320.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/kt6320.kt @@ -15,6 +15,6 @@ class C class D(foo: C) { fun test(a: C) { - val d: D = D(a) + val d: D = D(a) } } diff --git a/compiler/testData/diagnostics/tests/inference/constraints/kt8879.kt b/compiler/testData/diagnostics/tests/inference/constraints/kt8879.kt index 702f91eca82..caa6880dc8e 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/kt8879.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/kt8879.kt @@ -8,5 +8,5 @@ fun > foo(klass: Inv): String? = null fun bar(): Inv = null!! fun test() { - foo(bar()) + foo(bar()) } diff --git a/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.kt b/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.kt index 64059a3760c..b83edc82577 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.kt @@ -27,5 +27,5 @@ abstract class MySettingsListener {} fun test() { val a = MySettings.getSettings() a.getLinkedProjectsSettings() - a.linkedProjectsSettings + a.linkedProjectsSettings } diff --git a/compiler/testData/diagnostics/tests/inference/constraints/notNullConstraintOnNullableType.kt b/compiler/testData/diagnostics/tests/inference/constraints/notNullConstraintOnNullableType.kt index 730306295d9..ebb32733fdf 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/notNullConstraintOnNullableType.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/notNullConstraintOnNullableType.kt @@ -17,8 +17,8 @@ fun test(out: Out, i: In, inv: A) { r checkType { _() } // T? <: Int => error - doIn(i) + doIn(i) // T? >: Int => error - doA(inv) + doA(inv) } diff --git a/compiler/testData/diagnostics/tests/inference/dependantOnVariance.kt b/compiler/testData/diagnostics/tests/inference/dependantOnVariance.kt index b45c3bc600d..ce768e2a60c 100644 --- a/compiler/testData/diagnostics/tests/inference/dependantOnVariance.kt +++ b/compiler/testData/diagnostics/tests/inference/dependantOnVariance.kt @@ -13,7 +13,7 @@ fun readFromMyList(l: MyList, t: T) {} fun test1(int: Int, any: Any) { val a0 : MyList = getMyList(int) - val a1 : MyList = getMyList(any) + val a1 : MyList = getMyList(any) val a2 : MyList = getMyList(int) @@ -28,23 +28,23 @@ fun test1(int: Int, any: Any) { val a7 : MyList = getMyList(int) val a8 : MyList = getMyListToReadFrom(int) - val a9 : MyList = getMyListToReadFrom(int) + val a9 : MyList = getMyListToReadFrom(int) val a10 : MyList = getMyList(any) - val a11 : MyList = getMyList(any) + val a11 : MyList = getMyList(any) val a12 : MyList = getMyListToWriteTo(any) - val a13 : MyList = getMyListToWriteTo(any) + val a13 : MyList = getMyListToWriteTo(any) useMyList(getMyList(int), int) useMyList(getMyList(any), int) - useMyList(getMyList(int), any) + useMyList(getMyList(int), any) readFromMyList(getMyList(int), any) readFromMyList(getMyList(any), int) - readFromMyList(getMyList(any), int) + readFromMyList(getMyList(any), int) - readFromMyList(getMyListToReadFrom(any), int) + readFromMyList(getMyListToReadFrom(any), int) readFromMyList(getMyListToReadFrom(any), int) readFromMyList(getMyListToReadFrom(int), any) @@ -53,14 +53,14 @@ fun test1(int: Int, any: Any) { writeToMyList(getMyList(any), int) writeToMyList(getMyList(int), any) writeToMyList(getMyList(int), any) - writeToMyList(getMyList(int), any) + writeToMyList(getMyList(int), any) writeToMyList(getMyListToWriteTo(any), int) - writeToMyList(getMyListToWriteTo(int), any) + writeToMyList(getMyListToWriteTo(int), any) readFromMyList(getMyListToWriteTo(any), any) - writeToMyList(getMyListToReadFrom(any), any) + writeToMyList(getMyListToReadFrom(any), any) use(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) } diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.kt index 67a862daf57..9b091bb8c2f 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.kt @@ -6,7 +6,7 @@ fun foo() = foo() as T fun foo2(): T = TODO() -val test = foo2().plus("") as String +val test = foo2().plus("") as String fun T.bar() = this val barTest = "".bar() as Number diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.kt index 7aca4352654..4fca897921f 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.kt @@ -8,12 +8,11 @@ class A { fun id(value: V) = value -val asA = foo().fooA() as A +val asA = foo().fooA() as A -val receiverParenthesized = (foo()).fooA() as A -val no2A = A().fooA().fooA() as A +val receiverParenthesized = (foo()).fooA() as A +val no2A = A().fooA().fooA() as A val correct1 = A().fooA() as A val correct2 = foo().fooA() as A val correct3 = A().fooA().fooA() as A - diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.kt index 958a9bd62dd..402b7d650f8 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.kt @@ -6,7 +6,7 @@ fun id(value: V) = value val asString = foo() as String -val viaId = id(foo()) as String +val viaId = id(foo()) as String val insideId = id(foo() as String) @@ -16,5 +16,5 @@ val asStarList = foo() as List<*> val safeAs = foo() as? String -val fromIs = foo() is String -val fromNoIs = foo() !is String +val fromIs = foo() is String +val fromNoIs = foo() !is String diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.kt index baa1cdf33c5..cdf2e017bf5 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.kt @@ -11,7 +11,7 @@ fun test(x: X) { fun g() { fun foo(): T = TODO() - val y = foo() as Int + val y = foo() as Int val y2 = foo() as D } diff --git a/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.kt b/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.kt index ba8576f56e0..17dbcf48d09 100644 --- a/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.kt +++ b/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.kt @@ -3,4 +3,4 @@ fun foo(f: (Y) -> Z, g: (X) -> Y, x: X): Z = f(g(x)) // TODO: Actually, this is a bug and will work when new inference is enabled // see ([NI] Select variable with proper non-trivial constraint first) for more details -fun test() = foo({ it + 1 }, { it.length }, "") +fun test() = foo({ it + 1 }, { it.length }, "") diff --git a/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.kt b/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.kt index 35b58a21d1a..338c1397a81 100644 --- a/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.kt +++ b/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.kt @@ -12,5 +12,5 @@ fun test() { val q = foo(fun Int.() {}, emptyList()) //type inference no information for parameter error checkSubtype(q) - foo({}, emptyList()) + foo({}, emptyList()) } diff --git a/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.kt b/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.kt index 0fae38e8a42..1d68322817f 100644 --- a/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.kt +++ b/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.kt @@ -24,5 +24,5 @@ fun test(s: SelectorFor): Double { val e = s { return p1 } e checkType { _>() } - return null!! + return null!! } diff --git a/compiler/testData/diagnostics/tests/inference/kt28598.kt b/compiler/testData/diagnostics/tests/inference/kt28598.kt index 083d76ebd6a..4c3519132af 100644 --- a/compiler/testData/diagnostics/tests/inference/kt28598.kt +++ b/compiler/testData/diagnostics/tests/inference/kt28598.kt @@ -2,7 +2,7 @@ fun case_1(a: MutableList?>?>?>?>?>?>?) { if (a != null) { - val b = a[0] // no SMARTCAST diagnostic + val b = a[0] // no SMARTCAST diagnostic if (b != null) { val c = b[0] if (c != null) { @@ -30,19 +30,19 @@ fun case_1(a: MutableList?>?>?>?>?>?>?) { if (a != null) { - val b = a[0] // no SMARTCAST diagnostic + val b = a[0] // no SMARTCAST diagnostic if (b != null) { val c = b[0] if (c != null) { val d = c[0] if (d != null) { - val e = d[0] // no SMARTCAST diagnostic + val e = d[0] // no SMARTCAST diagnostic if (e != null) { val f = e[0] if (f != null) { val g = f[0] if (g != null) { - val h = g[0] // no SMARTCAST diagnostic + val h = g[0] // no SMARTCAST diagnostic if (h != null) { h.inc() } diff --git a/compiler/testData/diagnostics/tests/inference/kt28654.kt b/compiler/testData/diagnostics/tests/inference/kt28654.kt index d3dcbde3d44..5597f73206d 100644 --- a/compiler/testData/diagnostics/tests/inference/kt28654.kt +++ b/compiler/testData/diagnostics/tests/inference/kt28654.kt @@ -1,9 +1,9 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE // Related issue: KT-28654 -fun select(): K = run { } +fun select(): K = run { } fun test() { val x: Int = select() - val t = select() + val t = select() } diff --git a/compiler/testData/diagnostics/tests/inference/kt6175.kt b/compiler/testData/diagnostics/tests/inference/kt6175.kt index 5f359b9039f..530b25cba2a 100644 --- a/compiler/testData/diagnostics/tests/inference/kt6175.kt +++ b/compiler/testData/diagnostics/tests/inference/kt6175.kt @@ -3,10 +3,10 @@ fun foo(body: (R?) -> T): T = fail() fun test1() { - foo { + foo { true } - foo { x -> + foo { x -> true } } @@ -15,10 +15,10 @@ fun test1() { fun bar(body: (R) -> T): T = fail() fun test2() { - bar { + bar { true } - bar { x -> + bar { x -> true } } @@ -26,10 +26,10 @@ fun test2() { fun baz(body: (List) -> T): T = fail() fun test3() { - baz { + baz { true } - baz { x -> + baz { x -> true } } @@ -37,10 +37,10 @@ fun test3() { fun brr(body: (List) -> T): T = fail() fun test4() { - brr { + brr { true } - brr { x -> + brr { x -> true } } diff --git a/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.kt b/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.kt index 59f2fc047b4..06e75f318e2 100644 --- a/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.kt +++ b/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.kt @@ -13,7 +13,7 @@ fun id(t: T): T = t infix fun Z.foo(a: A): A = a fun test(z: Z) { - z foo newA() + z foo newA() val a: A = id(z foo newA()) val b: A = id(z.foo(newA())) use(a, b) @@ -23,7 +23,7 @@ fun test(z: Z) { operator fun Z.plus(a: A): A = a fun test1(z: Z) { - id(z + newA()) + id(z + newA()) val a: A = z + newA() val b: A = z.plus(newA()) val c: A = id(z + newA()) @@ -35,7 +35,7 @@ fun test1(z: Z) { operator fun Z.compareTo(a: A): Int { use(a); return 1 } fun test2(z: Z) { - val a: Boolean = id(z < newA()) + val a: Boolean = id(z < newA()) val b: Boolean = id(z < newA()) use(a, b) } @@ -44,18 +44,18 @@ fun test2(z: Z) { fun Z.equals(any: Any): Int { use(any); return 1 } fun test3(z: Z) { - z == newA() + z == newA() z == newA() - id(z == newA()) + id(z == newA()) id(z == newA()) - id(z === newA()) + id(z === newA()) id(z === newA()) } //'in' operation fun test4(collection: Collection>) { - id(newA() in collection) + id(newA() in collection) id(newA() in collection) } @@ -63,7 +63,7 @@ fun test4(collection: Collection>) { fun toBeOrNot(): Boolean = throw Exception() fun test5() { - if (toBeOrNot() && toBeOrNot()) {} + if (toBeOrNot() && toBeOrNot()) {} if (toBeOrNot() && toBeOrNot()) {} } diff --git a/compiler/testData/diagnostics/tests/inference/noInformationForParameter.kt b/compiler/testData/diagnostics/tests/inference/noInformationForParameter.kt index 27256dbee90..5044d325e80 100644 --- a/compiler/testData/diagnostics/tests/inference/noInformationForParameter.kt +++ b/compiler/testData/diagnostics/tests/inference/noInformationForParameter.kt @@ -4,7 +4,7 @@ package noInformationForParameter import java.util.* fun test() { - val n = newList() + val n = newList() val n1 : List = newList() } diff --git a/compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.kt b/compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.kt index 5f1095c2065..630d0a7a116 100644 --- a/compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.kt +++ b/compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.kt @@ -14,19 +14,19 @@ fun testAny() { fun testAnyCall() { callAny { - error -> error() + error -> error() } } fun testParam() { - callParam { + callParam { param -> param } } fun testParamCall() { - callParam { - param -> param() + callParam { + param -> param() } } diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/kt34335.kt b/compiler/testData/diagnostics/tests/inference/nothingType/kt34335.kt index 82d4917eb75..a9d5e97bb09 100644 --- a/compiler/testData/diagnostics/tests/inference/nothingType/kt34335.kt +++ b/compiler/testData/diagnostics/tests/inference/nothingType/kt34335.kt @@ -10,9 +10,9 @@ fun foo(action: (Int) -> Unit) { } fun test1() { - call({ x -> println(x::class) }) // x inside the lambda is inferred to `Nothing`, the lambda is `(Nothing) -> Unit`. + call({ x -> println(x::class) }) // x inside the lambda is inferred to `Nothing`, the lambda is `(Nothing) -> Unit`. } fun test2() { - ::foo.call({ x -> println(x::class) }) + ::foo.call({ x -> println(x::class) }) } diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt b/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt index 2c734b6ea6e..d4537af5218 100644 --- a/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt +++ b/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt @@ -4,8 +4,8 @@ fun select2(x: K, y: K): K = TODO() fun select3(x: K, y: K, z: K): K = TODO() fun test2(f: ((String) -> Int)?) { - val a0: ((Int) -> Int)? = select2({ it -> it }, null) - val b0: ((Nothing) -> Unit)? = select2({ it -> it }, null) + val a0: ((Int) -> Int)? = select2({ it -> it }, null) + val b0: ((Nothing) -> Unit)? = select2({ it -> it }, null) select3({ it.length }, f, null) } diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/notEnoughInformationFromNullabilityConstraint.kt b/compiler/testData/diagnostics/tests/inference/nothingType/notEnoughInformationFromNullabilityConstraint.kt index b6590aa510e..94e1c869f24 100644 --- a/compiler/testData/diagnostics/tests/inference/nothingType/notEnoughInformationFromNullabilityConstraint.kt +++ b/compiler/testData/diagnostics/tests/inference/nothingType/notEnoughInformationFromNullabilityConstraint.kt @@ -5,11 +5,11 @@ fun id(arg: I): I = arg fun select(vararg args: S): S = TODO() fun test() { - id( - make() + id( + make() ) select(make(), null) - if (true) make() else TODO() + if (true) make() else TODO() } diff --git a/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt b/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt index 1380320c6df..a1805f4560a 100644 --- a/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt +++ b/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt @@ -6,8 +6,8 @@ fun g (f: () -> List) : T {} fun test() { //here possibly can be a cycle on constraints - val x = g { Collections.emptyList() } + val x = g { Collections.emptyList() } val y = g { Collections.emptyList() } - val z : List = g { Collections.emptyList() } + val z : List = g { Collections.emptyList() } } diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.kt index fa18f6f31af..f38d9cfd30b 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.kt @@ -28,6 +28,6 @@ fun chained2(arg: First) = run { } fun test(arg: First) { - chained1(arg).first() - chained2(arg).first() + chained1(arg).first() + chained2(arg).first() } diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.kt index 2ce11620656..f80465a4f3c 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.kt @@ -16,11 +16,11 @@ fun intersect(vararg elements: S): S = TODO() fun intersectAfterSmartCast(arg: Base, arg2: Base) = intersect( run { if (arg !is One) throw Exception() - arg + arg }, run { if (arg2 !is Two) throw Exception() - arg2 + arg2 } ) @@ -32,6 +32,6 @@ fun intersectArgWithSmartCastFromLambda(arg: One, arg2: Base) = argOrFn(arg) { } fun test() { - intersectAfterSmartCast(O1, O2).base() - intersectArgWithSmartCastFromLambda(O1, O2).base() + intersectAfterSmartCast(O1, O2).base() + intersectArgWithSmartCastFromLambda(O1, O2).base() } diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.kt index d0a9c08ebef..d0bc3b701a7 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.kt @@ -17,5 +17,5 @@ fun smartCastAfterIntersection(a: One, b: Two) = run { } fun test(one: One, two: Two) { - smartCastAfterIntersection(one, two)?.base() + smartCastAfterIntersection(one, two)?.base() } diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.kt index 80f4c89adb3..ec9ec9090d1 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.kt @@ -20,5 +20,5 @@ fun intersectNoBound(vararg elements: S): S = TODO() fun some(a: One, b: Two, c: Three) = intersectNoBound(intersect(a, b), c) fun test(arg: Base, arg2: Base) { - some(O1, O2, O3).base() + some(O1, O2, O3).base() } diff --git a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/localFactorial.kt b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/localFactorial.kt index a198c606e42..37cc64d26fe 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/localFactorial.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/localFactorial.kt @@ -3,7 +3,7 @@ fun foo() { fun fact(n: Int) = { if (n > 0) { - fact(n - 1) * n + fact(n - 1) * n } else { 1 diff --git a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt index c571f49e90b..096dda38711 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt @@ -2,8 +2,8 @@ fun foo() { fun bar1() = bar1() - fun bar2() = 1 + bar2() - fun bar3() = id(bar3()) + fun bar2() = 1 + bar2() + fun bar3() = id(bar3()) } fun id(x: T) = x diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt1127.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt1127.kt index 0b1dd4fb676..e4bb9c66a69 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt1127.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt1127.kt @@ -5,5 +5,5 @@ package d fun asList(t: T) : List? {} fun main() { - val list : List = asList("") + val list : List = asList("") } diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2200.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2200.kt index 9667f42ae6e..5d62895c8cd 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2200.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2200.kt @@ -5,7 +5,7 @@ package n import checkSubtype fun main() { - val a = array(array()) + val a = array(array()) val a0 : Array> = array(array()) val a1 = array(array()) checkSubtype>>(a1) diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2283.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2283.kt index 6fdebb43d85..4ebb50e9f2f 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2283.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2283.kt @@ -9,5 +9,5 @@ fun Foo.map(f: (A) -> B): Foo = object : Foo {} fun foo() { val l: Foo = object : Foo {} - val m: Foo = l.map { ppp -> 1 } + val m: Foo = l.map { ppp -> 1 } } diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2286.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2286.kt index 64f34a67432..e5379b9ed55 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2286.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2286.kt @@ -11,14 +11,14 @@ abstract class Buggy { } val anotherThree : Int - get() = coll.find{ it > 3 } // does not work here + get() = coll.find{ it > 3 } // does not work here val yetAnotherThree : Int - get() = coll.find({ v:Int -> v > 3 }) // neither here + get() = coll.find({ v:Int -> v > 3 }) // neither here val extendedGetter : Int get() { - return coll.find{ it > 3 } // not even here! + return coll.find{ it > 3 } // not even here! } } diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt index 12e244db875..94def98c406 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt @@ -3,7 +3,7 @@ package a fun main() { - test { + test { } } diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2741.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2741.kt index 389ea4200be..9f672dfae24 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2741.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2741.kt @@ -8,5 +8,5 @@ fun _arrayList(vararg values: T) : List = throw Exception() class _Pair(val a: A) fun test() { - _arrayList(_Pair(1))._sortBy { it -> xxx } + _arrayList(_Pair(1))._sortBy { it -> xxx } } diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2838.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2838.kt index 495577d6210..88f5b5daf04 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2838.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2838.kt @@ -7,7 +7,7 @@ fun bar(a: T, b: Map) = b.get(a) fun test(a: Int) { foo(a, null) - bar(a, null) + bar(a, null) } fun test1(a: Int) { foo(a, throw Exception()) diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2883.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2883.kt index 0c612239ea4..79d3783eddf 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2883.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2883.kt @@ -21,7 +21,7 @@ fun test() { doAction { bar(12) } - val u: Unit = bar(11) + val u: Unit = bar(11) } fun testWithoutInference(col: MutableCollection) { diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt32862_both.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt32862_both.kt index 395a604413b..e564499f040 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt32862_both.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt32862_both.kt @@ -11,5 +11,5 @@ fun G.foo(vararg values: V2) = build() fun forReference(ref: Any?) {} fun test() { - forReference(G::foo) + forReference(G::foo) } diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt32862_none.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt32862_none.kt index af1d8278f15..becb4a0a146 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt32862_none.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt32862_none.kt @@ -6,5 +6,5 @@ fun foo(i: Long) {} fun bar(f: (Boolean) -> Unit) {} fun test() { - bar(::foo) + bar(::foo) } diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt33629.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt33629.kt index 759bb1f9a02..a719a6f09d2 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt33629.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt33629.kt @@ -16,5 +16,5 @@ fun acquireIntervals(): List = TODO() fun main() { buildTree(acquireIntervals()) - ?: emptyList() + ?: emptyList() } diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt36342.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt36342.kt index 0a0b62c7b96..89a52b7fac3 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt36342.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt36342.kt @@ -1,11 +1,10 @@ - import java.lang.Exception fun id(arg: K): K = arg fun test() { id(unresolved)!! - unresolved!!!! + unresolved!!!! try { id(unresolved) } catch (e: Exception) { diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt36342_2.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt36342_2.kt index b384ff74f6c..cc26c8ff532 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt36342_2.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt36342_2.kt @@ -1,13 +1,12 @@ - fun id(arg: K): K = arg fun materialize(): M = TODO() fun test(b: Boolean) { - id(if (b) { + id(if (b) { id(unresolved) } else { - id( - materialize() + id( + materialize() ) }) } diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt731.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt731.kt index f1b25d7420a..1ea2b98d979 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt731.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt731.kt @@ -15,6 +15,6 @@ fun A.foo(x: (T)-> G): G { fun main() { val a = A(1) - val t: String = a.foo({p -> p}) + val t: String = a.foo({p -> p}) checkSubtype(t) } diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt742.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt742.kt index f2b4c58dc17..a2ebf359325 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt742.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt742.kt @@ -9,4 +9,4 @@ fun List.map1(f: (T)-> Q): List? = tail!!.map1(f) fun List.map2(f: (T)-> Q): List? = tail.sure().map2(f) -fun List.map3(f: (T)-> Q): List? = tail.sure<T>().map3(f) +fun List.map3(f: (T)-> Q): List? = tail.sure().map3(f) diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt832.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt832.kt index 38fb0c5550d..13e57f4df37 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt832.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt832.kt @@ -6,5 +6,5 @@ fun fooT2() : (t : T) -> T { } fun test() { - fooT2()(1) // here 1 should not be marked with an error + fooT2()(1) // here 1 should not be marked with an error } diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt948.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt948.kt index 2e9d2edba77..40a788a7ed1 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt948.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt948.kt @@ -12,7 +12,7 @@ fun emptyList() : List? = ArrayList() fun foo() { // type arguments shouldn't be required val l : List = emptyList()!! - val l1 = emptyList()!! + val l1 = emptyList()!! checkSubtype>(emptyList()!!) checkSubtype?>(emptyList()) diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt index ddb429392ef..7855b17a013 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt @@ -6,11 +6,11 @@ fun foo(a: A) = a fun bar(f: (T) -> R) = f fun test() { - foo { it } - foo { x -> x} - foo { x: Int -> x} + foo { it } + foo { x -> x} + foo { x: Int -> x} - bar { it + 1 } - bar { x -> x + 1} + bar { it + 1 } + bar { x -> x + 1} bar { x: Int -> x + 1} } diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.kt index 3272c3704a3..6f8d089028f 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.kt @@ -3,7 +3,7 @@ package aa fun foo(block: (T)-> R) = block fun test1() { - foo { + foo { x -> // here we have 'cannot infer parameter type' error 43 } diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/inferTypeFromUnresolvedArgument.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/inferTypeFromUnresolvedArgument.kt index fd0ece028c8..eb7ab774259 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/inferTypeFromUnresolvedArgument.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/inferTypeFromUnresolvedArgument.kt @@ -7,6 +7,6 @@ fun test() { id2(unresolved, "foo") id2(unresolved, 42) - ret("foo") - ret(42) + ret("foo") + ret(42) } diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.kt index fca19ac0b3f..882e484a57e 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.kt @@ -4,8 +4,8 @@ fun foo (f: ()->R, r: MutableList) = r.add(f()) fun bar (r: MutableList, f: ()->R) = r.add(f()) fun test() { - val a = foo({1}, arrayListOf("")) //no type inference error on 'arrayListOf' - val b = bar(arrayListOf(""), {1}) + val a = foo({1}, arrayListOf("")) //no type inference error on 'arrayListOf' + val b = bar(arrayListOf(""), {1}) } // from standard library diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.kt index 01c63bbcf7e..3b974696335 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.kt @@ -5,5 +5,5 @@ class X operator fun X.component1(): T = TODO() fun test() { - val (y) = X() + val (y) = X() } diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.kt index ea73d04b5ae..88c7785527a 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.kt @@ -3,6 +3,6 @@ class X operator fun X.iterator(): Iterable = TODO() fun test() { - for (i in X()) { + for (i in X()) { } } diff --git a/compiler/testData/diagnostics/tests/inference/typeConstructorMismatch.kt b/compiler/testData/diagnostics/tests/inference/typeConstructorMismatch.kt index 5e342cc3707..b70d2209b16 100644 --- a/compiler/testData/diagnostics/tests/inference/typeConstructorMismatch.kt +++ b/compiler/testData/diagnostics/tests/inference/typeConstructorMismatch.kt @@ -4,9 +4,9 @@ package typeConstructorMismatch import java.util.* fun test(set: Set) { - elemAndList("2", set) + elemAndList("2", set) - "".elemAndListWithReceiver("", set) + "".elemAndListWithReceiver("", set) } fun elemAndList(r: R, t: List): R = r diff --git a/compiler/testData/diagnostics/tests/inference/typeInferenceExpectedTypeMismatch.kt b/compiler/testData/diagnostics/tests/inference/typeInferenceExpectedTypeMismatch.kt index 631ba119c38..bb52ba6584f 100644 --- a/compiler/testData/diagnostics/tests/inference/typeInferenceExpectedTypeMismatch.kt +++ b/compiler/testData/diagnostics/tests/inference/typeInferenceExpectedTypeMismatch.kt @@ -3,7 +3,7 @@ package typeInferenceExpectedTypeMismatch import java.util.* fun test() { - val s : Set = newList() + val s : Set = newList() use(s) } @@ -25,16 +25,16 @@ fun foo(o: Out, i: In): Two = throw Exception("$o $i") fun test1(outA: Out, inB: In) { foo(outA, inB) - val b: Two = foo(outA, inB) + val b: Two = foo(outA, inB) use(b) } fun bar(o: Out, i: In): Two = throw Exception("$o $i") fun test2(outA: Out, inC: In) { - bar(outA, inC) + bar(outA, inC) - val b: Two = bar(outA, inC) + val b: Two = bar(outA, inC) use(b) } diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt index 31dfbeb5d86..ec39ce009e7 100644 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt +++ b/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt @@ -5,7 +5,7 @@ interface A fun emptyList(): List = throw Exception() fun test1() { - emptyList() + emptyList() } //-------------- @@ -13,7 +13,7 @@ fun test1() { fun emptyListOfA(): List = throw Exception() fun test2() { - emptyListOfA() + emptyListOfA() } //-------------- @@ -21,7 +21,7 @@ fun test2() { fun emptyStrangeMap(): Map = throw Exception() fun test3() { - emptyStrangeMap() + emptyStrangeMap() } //-------------- diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.kt index 3b489f54847..2307f85ecdd 100644 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.kt +++ b/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.kt @@ -14,7 +14,7 @@ fun foo(in1: In, in2: In): T = throw Exception("$in1 $in2") fun test(inA: In, inB: In, inC: In) { - foo(inA, inB) + foo(inA, inB) val r = foo(inA, inC) checkSubtype(r) diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsToInferTypeParamsSimple.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsToInferTypeParamsSimple.kt index fc9857f5a39..b1a67497700 100644 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsToInferTypeParamsSimple.kt +++ b/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsToInferTypeParamsSimple.kt @@ -15,7 +15,7 @@ fun checkItIsExactlyAny(t: T, l: MutableList) {} fun baz(v: V, u: MutableSet) = u fun test(a: Any, s: MutableSet) { - baz(a, s) + baz(a, s) } //from standard library diff --git a/compiler/testData/diagnostics/tests/infos/SmartCasts.kt b/compiler/testData/diagnostics/tests/infos/SmartCasts.kt index 95b6e033051..8cfa8ef21fb 100644 --- a/compiler/testData/diagnostics/tests/infos/SmartCasts.kt +++ b/compiler/testData/diagnostics/tests/infos/SmartCasts.kt @@ -88,17 +88,17 @@ fun f13(a : A?) { } else { a?.foo() - c.bar() + c.bar() } a?.foo() if (!(a is B)) { a?.foo() - c.bar() + c.bar() } else { a.foo() - c.bar() + c.bar() } a?.foo() @@ -108,7 +108,7 @@ fun f13(a : A?) { } else { a?.foo() - c.bar() + c.bar() } if (!(a is B) || !(a is C)) { @@ -201,7 +201,7 @@ fun mergeSmartCasts(a: Any?) { val i: Int = a.compareTo("") } if (a is String && a.compareTo("") == 0) {} - if (a is String || a.compareTo("") == 0) {} + if (a is String || a.compareTo("") == 0) {} } //mutability diff --git a/compiler/testData/diagnostics/tests/inline/nonLocalReturns/lambdaAsGeneric.kt b/compiler/testData/diagnostics/tests/inline/nonLocalReturns/lambdaAsGeneric.kt index 35593279205..d74277e2e0d 100644 --- a/compiler/testData/diagnostics/tests/inline/nonLocalReturns/lambdaAsGeneric.kt +++ b/compiler/testData/diagnostics/tests/inline/nonLocalReturns/lambdaAsGeneric.kt @@ -1,6 +1,5 @@ - fun box() : String { - test { + test { return@box "123" } diff --git a/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.kt b/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.kt index 1f9b03b0354..7e430229e0a 100644 --- a/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.kt +++ b/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.kt @@ -4,6 +4,6 @@ class Outer { } fun nested() = Outer.Nested() -fun noArguments() = Outer.Nested() +fun noArguments() = Outer.Nested() fun noArgumentsExpectedType(): Outer.Nested = Outer.Nested() fun manyArguments() = Outer.Nested() diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/classTypeParameterInferredFromArgument.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/classTypeParameterInferredFromArgument.kt index 9087463f034..49b1cdaf171 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/classTypeParameterInferredFromArgument.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/classTypeParameterInferredFromArgument.kt @@ -8,7 +8,7 @@ public class A { // FILE: main.kt fun test(x: List, y: List) { - A("", x) checkType { _>() } + A("", x) checkType { _>() } A("", y) checkType { _>() } A("", x) diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/innerClass.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/innerClass.kt index 8f9c486a20f..0b96d957b2c 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/innerClass.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/innerClass.kt @@ -12,6 +12,6 @@ fun test(x: List, y: List) { Outer().Inner("", y, 1) checkType { _.Inner>() } Outer().Inner("", y, 1) checkType { _.Inner>() } - Outer().Inner("", x, 1) checkType { _.Inner>() } + Outer().Inner("", x, 1) checkType { _.Inner>() } Outer().Inner("", x, 1) } diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/noClassTypeParametersInvParameter.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/noClassTypeParametersInvParameter.kt index 95a10a3920f..d9b8943e60f 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/noClassTypeParametersInvParameter.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/noClassTypeParametersInvParameter.kt @@ -9,7 +9,7 @@ public class A { class Inv fun test(x: Inv, y: Inv) { - A("", x) + A("", x) A("", y) A("", x) diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.kt index 3a68bcaef9e..86affa593ef 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.kt @@ -8,4 +8,4 @@ public class C { // FILE: main.kt -fun foo() = C() +fun foo() = C() diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCall.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCall.kt index 936fd195aaf..f88f3aadb01 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCall.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCall.kt @@ -9,9 +9,9 @@ public class A { // FILE: main.kt class B1(x: List) : A("", x) -class B2(x: List) : A("", x) +class B2(x: List) : A("", x) class C : A { constructor(x: List) : super("", x) - constructor(x: List, y: Int) : super("", x) + constructor(x: List, y: Int) : super("", x) } diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.kt index 573a1bfb21d..e2498cc3a51 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.kt @@ -11,10 +11,10 @@ public class A { // TODO: It's effectively impossible to perform super call to such constructor // if there is not enough information to infer corresponding arguments // May be we could add some special syntax for such arguments -class B1(x: List) : A("", x) -class B2(x: List) : A("", x) +class B1(x: List) : A("", x) +class B2(x: List) : A("", x) class C : A { - constructor(x: List) : super("", x) - constructor(x: List, y: Int) : super("", x) + constructor(x: List) : super("", x) + constructor(x: List, y: Int) : super("", x) } diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructorWithMultipleBounds.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructorWithMultipleBounds.kt index b35b271babe..9f29b7052a7 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructorWithMultipleBounds.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructorWithMultipleBounds.kt @@ -10,8 +10,8 @@ public class J { import java.io.Serializable -fun cloneable(c: Cloneable) = J(c) +fun cloneable(c: Cloneable) = J(c) -fun serializable(s: Serializable) = J(s) +fun serializable(s: Serializable) = J(s) fun both(t: T) where T : Cloneable, T : Serializable = J(t) diff --git a/compiler/testData/diagnostics/tests/j+k/sam/enhancedSamConstructor.kt b/compiler/testData/diagnostics/tests/j+k/sam/enhancedSamConstructor.kt index 304f29bfd10..5d73a4d031b 100644 --- a/compiler/testData/diagnostics/tests/j+k/sam/enhancedSamConstructor.kt +++ b/compiler/testData/diagnostics/tests/j+k/sam/enhancedSamConstructor.kt @@ -15,12 +15,12 @@ public interface J2 extends J { // FILE: main.kt fun main() { - J { s: String -> s} // should be prohibited, because SAM value parameter has nullable type + J { s: String -> s} // should be prohibited, because SAM value parameter has nullable type J { "" + it.length } J { null } J { it?.length?.toString() } - J2 { s: String -> s} + J2 { s: String -> s} J2 { "" + it.length } J2 { null } J2 { it?.length?.toString() } diff --git a/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.kt b/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.kt index c7c0d347ef4..70543008bc0 100644 --- a/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.kt +++ b/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.kt @@ -19,5 +19,5 @@ class In { fun test() { A.foo().x() checkType { _() } - A.bar().y(null) + A.bar().y(null) } diff --git a/compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.kt b/compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.kt index 5be111bbe0a..048512d373a 100644 --- a/compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.kt +++ b/compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.kt @@ -1,2 +1,2 @@ -annotation class A(val a: IntArray = arrayOf(1)) +annotation class A(val a: IntArray = arrayOf(1)) annotation class B(val a: IntArray = intArrayOf(1)) diff --git a/compiler/testData/diagnostics/tests/multimodule/duplicateMethod/classVsFunctionGenericsInParamsMismatch.kt b/compiler/testData/diagnostics/tests/multimodule/duplicateMethod/classVsFunctionGenericsInParamsMismatch.kt index dc2df929564..14586906ce5 100644 --- a/compiler/testData/diagnostics/tests/multimodule/duplicateMethod/classVsFunctionGenericsInParamsMismatch.kt +++ b/compiler/testData/diagnostics/tests/multimodule/duplicateMethod/classVsFunctionGenericsInParamsMismatch.kt @@ -31,6 +31,6 @@ fun test(b: B?, c: C) { b?.foo(1, 1) c.foo(1, 1) if (b is C) { - b?.foo(1, 1) + b?.foo(1, 1) } } diff --git a/compiler/testData/diagnostics/tests/multiplatform/namedArguments.kt b/compiler/testData/diagnostics/tests/multiplatform/namedArguments.kt index 40d0d70dca6..208487f3414 100644 --- a/compiler/testData/diagnostics/tests/multiplatform/namedArguments.kt +++ b/compiler/testData/diagnostics/tests/multiplatform/namedArguments.kt @@ -11,9 +11,9 @@ expect class Foo(zzz: Int) { expect fun f2(xxx: Int) fun testCommon() { - Foo(zzz = 0) - val f = Foo(aaa = true) - f.f1(xxx = "") + Foo(zzz = 0) + val f = Foo(aaa = true) + f.f1(xxx = "") f2(xxx = 42) } diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/AssertNotNull.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/AssertNotNull.kt index 54ec6a905b4..aa78719b947 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/AssertNotNull.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/AssertNotNull.kt @@ -34,5 +34,5 @@ fun main() { } val f : String = a!! - checkSubtype(a!!) + checkSubtype(a!!) } diff --git a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2216.kt b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2216.kt index a3ef6f94083..6e84be5cd75 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2216.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2216.kt @@ -14,7 +14,7 @@ fun foo() { val y: Int? = 0 val z: Int? = 0 - bar(if (y != null) y else z, y) + bar(if (y != null) y else z, y) y + 2 baz(y, y, if (y == null) return else y, y) baz(y, z!!, z, y) diff --git a/compiler/testData/diagnostics/tests/nullableTypes/safeCallOnTypeWithNullableUpperBound.kt b/compiler/testData/diagnostics/tests/nullableTypes/safeCallOnTypeWithNullableUpperBound.kt index 219d05ab2ef..98814c13ba0 100644 --- a/compiler/testData/diagnostics/tests/nullableTypes/safeCallOnTypeWithNullableUpperBound.kt +++ b/compiler/testData/diagnostics/tests/nullableTypes/safeCallOnTypeWithNullableUpperBound.kt @@ -9,5 +9,5 @@ fun T.testThis(): String? { if (this != null) { return this?.toString() } - return this?.toString() + return this?.toString() } diff --git a/compiler/testData/diagnostics/tests/numbers/characterIsNotANumber.kt b/compiler/testData/diagnostics/tests/numbers/characterIsNotANumber.kt index 03a89ca0fd5..534bb0f626a 100644 --- a/compiler/testData/diagnostics/tests/numbers/characterIsNotANumber.kt +++ b/compiler/testData/diagnostics/tests/numbers/characterIsNotANumber.kt @@ -7,5 +7,5 @@ fun test() { foo(c) val d: Char? = 'd' - foo(d!!) + foo(d!!) } diff --git a/compiler/testData/diagnostics/tests/numbers/doublesInSimpleConstraints.kt b/compiler/testData/diagnostics/tests/numbers/doublesInSimpleConstraints.kt index f59be6be1fa..1aec135e0ca 100644 --- a/compiler/testData/diagnostics/tests/numbers/doublesInSimpleConstraints.kt +++ b/compiler/testData/diagnostics/tests/numbers/doublesInSimpleConstraints.kt @@ -20,5 +20,5 @@ fun test() { val d = either(11, 2.3) checkSubtype(d) - val e: Float = id(1) + val e: Float = id(1) } diff --git a/compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.kt b/compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.kt index 4f87a343ddf..d3a34f31636 100644 --- a/compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.kt +++ b/compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.kt @@ -12,5 +12,5 @@ fun main() { //not 'An integer literal does not conform to the expected type Int/Long' val l: Long = 1111111111111117777777777777777 foo(11111111111111177777777777777) - bar(11111111111111177777777777777) + bar(11111111111111177777777777777) } diff --git a/compiler/testData/diagnostics/tests/numbers/numbersInSimpleConstraints.kt b/compiler/testData/diagnostics/tests/numbers/numbersInSimpleConstraints.kt index f5574644cd0..642b0809528 100644 --- a/compiler/testData/diagnostics/tests/numbers/numbersInSimpleConstraints.kt +++ b/compiler/testData/diagnostics/tests/numbers/numbersInSimpleConstraints.kt @@ -16,9 +16,9 @@ fun otherGeneric(l: List) {} fun test() { val a: Byte = id(1) - val b: Byte = id(300) + val b: Byte = id(300) - val c: Int = id(9223372036854775807) + val c: Int = id(9223372036854775807) val d = id(22) checkSubtype(d) @@ -28,14 +28,14 @@ fun test() { val f: Byte = either(1, 2) - val g: Byte = either(1, 300) + val g: Byte = either(1, 300) other(11) - otherGeneric(1) + otherGeneric(1) val r = either(1, "") - r checkType { _() } + r checkType { _() } use(a, b, c, d, e, f, g, r) } @@ -47,7 +47,7 @@ interface Inv fun exactBound(t: T, l: Inv): T = throw Exception("$t $l") fun testExactBound(invS: Inv, invI: Inv, invB: Inv) { - exactBound(1, invS) + exactBound(1, invS) exactBound(1, invI) val b = exactBound(1, invB) @@ -60,7 +60,7 @@ fun lowerBound(t: T, l : Cov): T = throw Exception("$t $l") fun testLowerBound(cov: Cov, covN: Cov) { val r = lowerBound(1, cov) - r checkType { _() } + r checkType { _() } val n = lowerBound(1, covN) n checkType { _() } @@ -71,7 +71,7 @@ interface Contr fun upperBound(t: T, l: Contr): T = throw Exception("$t $l") fun testUpperBound(contrS: Contr, contrB: Contr, contrN: Contr) { - upperBound(1, contrS) + upperBound(1, contrS) val n = upperBound(1, contrN) n checkType { _() } diff --git a/compiler/testData/diagnostics/tests/operatorsOverloading/kt11300.kt b/compiler/testData/diagnostics/tests/operatorsOverloading/kt11300.kt index a46a695d85a..cb285d5e90a 100644 --- a/compiler/testData/diagnostics/tests/operatorsOverloading/kt11300.kt +++ b/compiler/testData/diagnostics/tests/operatorsOverloading/kt11300.kt @@ -1,4 +1,3 @@ - class A { operator fun get(x: Int): Int = x fun set(x: Int, y: Int) {} // no `operator` modifier @@ -6,7 +5,7 @@ class A { fun main() { val a = A() - a[1]++ - a[1] += 3 + a[1]++ + a[1] += 3 a[1] = a[1] + 3 } diff --git a/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.kt b/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.kt index f15c3745d4b..8c216b41b5a 100644 --- a/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.kt +++ b/compiler/testData/diagnostics/tests/operatorsOverloading/kt13330.kt @@ -1,3 +1,3 @@ //KT-13330 AssertionError: Illegal resolved call to variable with invoke -fun foo(exec: (String.() -> Unit)?) = "".exec<caret>() // is test data tag here +fun foo(exec: (String.() -> Unit)?) = "".exec<caret>() // is test data tag here diff --git a/compiler/testData/diagnostics/tests/overload/kt2493.kt b/compiler/testData/diagnostics/tests/overload/kt2493.kt index 17d6b03bbf9..6e72ebd2b2e 100644 --- a/compiler/testData/diagnostics/tests/overload/kt2493.kt +++ b/compiler/testData/diagnostics/tests/overload/kt2493.kt @@ -15,5 +15,5 @@ class C: A, B fun main() { AImpl().f() BImpl().f() - C().f() + C().f() } diff --git a/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/withNothing.kt b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/withNothing.kt index ae03227f7a7..a3744cddf8f 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/withNothing.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/withNothing.kt @@ -22,5 +22,5 @@ fun out(t: T): Out> = null!! fun test(a: Out, b: Out>) { val v = f(a, b, out(J.j())) v checkType { _>() } - v checkType { _>() } + v checkType { _>() } } diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.kt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.kt index c3ce3e75b6b..5476ab5b5c6 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.kt @@ -4,6 +4,6 @@ interface Foo fun test() { var nullable: Foo? = null - val foo: Collection = java.util.Collections.singleton(nullable) + val foo: Collection = java.util.Collections.singleton(nullable) val foo1: Collection = java.util.Collections.singleton(nullable!!) } diff --git a/compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter/methodTypeParameter.kt b/compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter/methodTypeParameter.kt index 5b16e5c9bfa..cec0554560c 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter/methodTypeParameter.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter/methodTypeParameter.kt @@ -10,9 +10,9 @@ public class A { // FILE: k.kt fun test() { - A.bar(null, "") + A.bar(null, "") A.bar(null, "") A.bar(null, "") - A.bar(null, A.platformString()) + A.bar(null, A.platformString()) } diff --git a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.kt b/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.kt index c6653eac642..c0f9db1c7b8 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.kt @@ -20,7 +20,7 @@ class B { fun main() { fun println() {} // All parameters in SAM adapter of `foo` have functional types - B().foo({ println() }, B.bar()) + B().foo({ println() }, B.bar()) // So you should use SAM constructors when you want to use mix lambdas and Java objects B().foo(Runnable { println() }, B.bar()) B().foo({ println() }, { it: Any? -> it == null } ) diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.kt index 50b2d297578..612e6cd04b8 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.kt @@ -1,6 +1,6 @@ // NI_EXPECTED_FILE -val x get() = foo() -val y get() = bar() +val x get() = foo() +val y get() = bar() fun foo(): E = null!! fun bar(): List = null!! diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/objectExpression.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/objectExpression.kt index 8e707b06ff6..4912c8201d2 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/objectExpression.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/objectExpression.kt @@ -6,7 +6,7 @@ object Outer { get() = 0 override fun get(index: Int): Char { - checkSubtype(x) + checkSubtype(x) return ' ' } diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt index 8da2453ec26..3c28e0cee61 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt @@ -1,16 +1,16 @@ // !CHECK_TYPE // NI_EXPECTED_FILE -val x get() = x +val x get() = x class A { - val y get() = y + val y get() = y val a get() = b - val b get() = a + val b get() = a - val z1 get() = id(z1) - val z2 get() = l(z2) + val z1 get() = id(z1) + val z2 get() = l(z2) val u get() = field } diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt index fdce8c4da00..dcda83cf847 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt @@ -7,8 +7,8 @@ } // cantBeInferred.kt -val x1 get() = foo() -val y1 get() = bar() +val x1 get() = foo() +val y1 get() = bar() fun foo(): E = null!! fun bar(): List = null!! @@ -42,7 +42,7 @@ fun l(x: E): List = null!! } // recursive -val x4 get() = x4 +val x4 get() = x4 // null as nothing val x5 get() = null diff --git a/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.kt b/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.kt index b2e09756ffe..c6c34353adb 100644 --- a/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.kt +++ b/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.kt @@ -16,16 +16,16 @@ fun test1(a: A.B.): A.B. { fun test2(a: A.e.C): A.e.C { val aa: A.e.C = null!! -} +} fun test3(a: a.A.C): a.A.C { val aa: a.A.C = null!! -} +} fun test4(a: A.B.ee): A.B.ee { val aa: A.B.ee = null!! -} +} fun test5(a: A.ee): A.ee { val aa: A.ee = null!! -} +} diff --git a/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt b/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt index 2fb84b035c7..8572c5024fb 100644 --- a/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt +++ b/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt @@ -1 +1 @@ -val unwrapped = some<sdf()()Any>::unwrap +val unwrapped = some<sdf()()Any>::unwrap diff --git a/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.kt b/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.kt index 9f5270292cf..3e1d5fce80b 100644 --- a/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.kt +++ b/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.kt @@ -1,3 +1,3 @@ // NI_EXPECTED_FILE -val unwrapped = some.<cabc$WrapperAny>::unwrap +val unwrapped = some.<cabc$WrapperAny>::unwrap diff --git a/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.kt b/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.kt index 65a0b43d879..dcfcf5f8f42 100644 --- a/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.kt +++ b/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.kt @@ -7,9 +7,9 @@ fun composite() { } fun html() { - <html></html> + <html></html> } fun html1() { - <html></html>html + <html></html>html } diff --git a/compiler/testData/diagnostics/tests/regressions/Jet81.kt b/compiler/testData/diagnostics/tests/regressions/Jet81.kt index a6663d65dd2..8692deeaf17 100644 --- a/compiler/testData/diagnostics/tests/regressions/Jet81.kt +++ b/compiler/testData/diagnostics/tests/regressions/Jet81.kt @@ -3,7 +3,7 @@ class Test { private val y = object { - val a = y; + val a = y; } val z = y.a; @@ -17,12 +17,12 @@ object A { class Test2 { private val a = object { init { - b + 1 + b + 1 } val x = b val y = 1 } - val b = a.x + val b = a.x val c = a.y } diff --git a/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.kt b/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.kt index 3cf1f5044ff..9613fd9b519 100644 --- a/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.kt +++ b/compiler/testData/diagnostics/tests/regressions/correctResultSubstitutorForErrorCandidate.kt @@ -1,7 +1,7 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER fun test(a: Int, b: Boolean) { - bar(a.foo(b)) + bar(a.foo(b)) } fun T.foo(l: (T) -> R): R = TODO() diff --git a/compiler/testData/diagnostics/tests/regressions/ea72837.kt b/compiler/testData/diagnostics/tests/regressions/ea72837.kt index 80a9e4777bb..93fd484cbfe 100644 --- a/compiler/testData/diagnostics/tests/regressions/ea72837.kt +++ b/compiler/testData/diagnostics/tests/regressions/ea72837.kt @@ -3,7 +3,7 @@ fun g(x: T) = 1 fun h(x: () -> Unit) = 1 fun foo() { - f(::) - g(::) + f(::) + g(::) h(::) } diff --git a/compiler/testData/diagnostics/tests/regressions/itselfAsUpperBoundLocal.kt b/compiler/testData/diagnostics/tests/regressions/itselfAsUpperBoundLocal.kt index 31f6359da71..99faa91ad63 100644 --- a/compiler/testData/diagnostics/tests/regressions/itselfAsUpperBoundLocal.kt +++ b/compiler/testData/diagnostics/tests/regressions/itselfAsUpperBoundLocal.kt @@ -1,4 +1,4 @@ fun bar() { fun <T: T?> foo() {} - foo() + foo() } diff --git a/compiler/testData/diagnostics/tests/regressions/kt10243.kt b/compiler/testData/diagnostics/tests/regressions/kt10243.kt index c5f5ce0b938..6d84de26566 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt10243.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt10243.kt @@ -3,9 +3,9 @@ private fun doUpdateRegularTasks() { try { while (f) { val xmlText = getText() - if (xmlText == null) {} + if (xmlText == null) {} else { - xmlText.value = 0 // !!! + xmlText.value = 0 // !!! } } diff --git a/compiler/testData/diagnostics/tests/regressions/kt10843.kt b/compiler/testData/diagnostics/tests/regressions/kt10843.kt index 797327290cb..50a313b667b 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt10843.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt10843.kt @@ -1,7 +1,7 @@ // NI_EXPECTED_FILE // See EA-76890 / KT-10843: NPE during analysis -fun lambda(x : Int?) = x?.let l { +fun lambda(x : Int?) = x?.let l { y -> - if (y > 0) return@l x + if (y > 0) return@l x y }!! diff --git a/compiler/testData/diagnostics/tests/regressions/kt11979.kt b/compiler/testData/diagnostics/tests/regressions/kt11979.kt index aca2c7e8184..4d137bb0afe 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt11979.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt11979.kt @@ -16,7 +16,7 @@ class Foo>(val f: F) fun id(t1: T, t2: T) = t2 fun test(foo: Foo<*>, g: Bar<*>) { - id(foo.f, g).t.t + id(foo.f, g).t.t } fun main() { diff --git a/compiler/testData/diagnostics/tests/regressions/kt12898.kt b/compiler/testData/diagnostics/tests/regressions/kt12898.kt index 8e77087ea6c..6171b0fdf6c 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt12898.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt12898.kt @@ -7,9 +7,9 @@ interface B { class C(override val t: Any?) : B fun f(b: B<*, Any>) { - val y = b.t - if (y is String?) { - y.length + val y = b.t + if (y is String?) { + y.length } } diff --git a/compiler/testData/diagnostics/tests/regressions/kt13685.kt b/compiler/testData/diagnostics/tests/regressions/kt13685.kt index baef6a303b4..c2fb19d48f7 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt13685.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt13685.kt @@ -2,5 +2,5 @@ fun foo() { val text: List = null!! - text.map Any?::toString + text.map Any?::toString } diff --git a/compiler/testData/diagnostics/tests/regressions/kt1489_1728.kt b/compiler/testData/diagnostics/tests/regressions/kt1489_1728.kt index f15bdb3d45e..91a46a457cc 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt1489_1728.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt1489_1728.kt @@ -18,7 +18,7 @@ class C { fun p() : Resource? = null fun bar() { - foo(p()) { + foo(p()) { } } diff --git a/compiler/testData/diagnostics/tests/regressions/kt24488.kt b/compiler/testData/diagnostics/tests/regressions/kt24488.kt index 09e9fea9cea..4755c64c698 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt24488.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt24488.kt @@ -4,7 +4,7 @@ class Bar { val a: Array? = null } -fun foo(bar: Bar) = bar.a?.asIterable() ?: emptyArray() +fun foo(bar: Bar) = bar.a?.asIterable() ?: emptyArray() fun Array.asIterable(): Iterable = TODO() diff --git a/compiler/testData/diagnostics/tests/regressions/kt312.kt b/compiler/testData/diagnostics/tests/regressions/kt312.kt index 10975743dc2..6dd7cf4b27e 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt312.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt312.kt @@ -5,5 +5,5 @@ fun Array.safeGet(index : Int) : T? { } val args : Array = Array(1, {""}) -val name : String = args.safeGet(0) // No error, must be type mismatch +val name : String = args.safeGet(0) // No error, must be type mismatch val name1 : String? = args.safeGet(0) diff --git a/compiler/testData/diagnostics/tests/regressions/kt328.kt b/compiler/testData/diagnostics/tests/regressions/kt328.kt index 0b29be62287..935ebe7670f 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt328.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt328.kt @@ -12,18 +12,17 @@ fun bar2() = { //properties //in a class class A() { - val x = { x } + val x = { x } } //in a package -val x = { x } +val x = { x } //KT-787 AssertionError on code 'val x = x' -val z = z +val z = z //KT-329 Assertion failure on local function fun block(f : () -> Unit) = f() fun bar3() = block{ foo3() // <-- missing closing curly bracket fun foo3() = block{ bar3() } - diff --git a/compiler/testData/diagnostics/tests/regressions/kt353.kt b/compiler/testData/diagnostics/tests/regressions/kt353.kt index adb137b882d..4ebfe1e457c 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt353.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt353.kt @@ -12,7 +12,7 @@ fun foo(a: A) { val u: Unit = a.gen() // Unit should be inferred if (true) { - a.gen() // Shouldn't work: no info for inference + a.gen() // Shouldn't work: no info for inference } val b : () -> Unit = { @@ -28,5 +28,5 @@ fun foo(a: A) { a.gen() //type mismatch, but Int can be derived } - a.gen() // Shouldn't work: no info for inference + a.gen() // Shouldn't work: no info for inference } diff --git a/compiler/testData/diagnostics/tests/regressions/kt557.kt b/compiler/testData/diagnostics/tests/regressions/kt557.kt index 3f8fec24bb6..d34f5a7b580 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt557.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt557.kt @@ -7,5 +7,5 @@ fun Array.length() : Int { } fun test(array : Array?) { - array?.sure>().length() + array?.sure>().length() } diff --git a/compiler/testData/diagnostics/tests/resolve/dslMarker/dslMarkerWithTypealiasRecursion.kt b/compiler/testData/diagnostics/tests/resolve/dslMarker/dslMarkerWithTypealiasRecursion.kt index 0448706e1a1..d4bf9f5efdc 100644 --- a/compiler/testData/diagnostics/tests/resolve/dslMarker/dslMarkerWithTypealiasRecursion.kt +++ b/compiler/testData/diagnostics/tests/resolve/dslMarker/dslMarkerWithTypealiasRecursion.kt @@ -12,12 +12,12 @@ typealias YBar = ZBar typealias ZBar = YBar fun Foo.foo(body: Foo.() -> Unit) = body() -fun Foo.zbar(body: ZBar.() -> Unit) = Bar().body() +fun Foo.zbar(body: ZBar.() -> Unit) = Bar().body() fun test() { Foo().foo { zbar { - foo {} + foo {} } } } diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.kt index 7f4d131807e..58f7aadd45c 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.kt @@ -1,10 +1,10 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER - + fun Int.invoke(i: Int, a: Any) {} fun Int.invoke(a: Any, i: Int) {} fun foo(i: Int) { - i(1, 1) + i(1, 1) - 5(1, 2) + 5(1, 2) } diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/typeInferenceErrorForInvoke.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/typeInferenceErrorForInvoke.kt index d82833dbd5a..8deb24a7166 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/typeInferenceErrorForInvoke.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/typeInferenceErrorForInvoke.kt @@ -7,7 +7,7 @@ operator fun T.invoke(a: A) {} fun foo(s: String, ai: A) { 1(ai) - s(ai) + s(ai) - ""(ai) + ""(ai) } diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.kt index 7cf9720bfb3..ff61573523e 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/unsafeCallWithInvoke.kt @@ -5,5 +5,5 @@ operator fun String.invoke(i: Int) {} fun foo(s: String?) { s(1) - (s ?: null)(1) + (s ?: null)(1) } diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.kt index d5780d57811..a97e364f474 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.kt @@ -1,16 +1,15 @@ - fun test1() { - 1. (fun String.(i: Int) = i )(1) - 1.(label@ fun String.(i: Int) = i )(1) + 1. (fun String.(i: Int) = i )(1) + 1.(label@ fun String.(i: Int) = i )(1) } fun test2(f: String.(Int) -> Unit) { - 11.(f)(1) - 11.(f)() + 11.(f)(1) + 11.(f)() } fun test3() { fun foo(): String.(Int) -> Unit = {} - 1.(foo())(1) + 1.(foo())(1) } diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.kt b/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.kt index 8fd35158d2a..acc7042275d 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.kt @@ -18,5 +18,5 @@ fun foo(): A.() -> Int { val b: Int = foo()(A()) val c: Int = (foo())(A()) - return null!! + return null!! } diff --git a/compiler/testData/diagnostics/tests/resolve/kt36264.kt b/compiler/testData/diagnostics/tests/resolve/kt36264.kt index 1772355390e..ab4ec9489f7 100644 --- a/compiler/testData/diagnostics/tests/resolve/kt36264.kt +++ b/compiler/testData/diagnostics/tests/resolve/kt36264.kt @@ -11,7 +11,7 @@ class Cls { fun test(s: String) { if (s.ext is B) - take(s.ext) + take(s.ext) } } diff --git a/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.kt b/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.kt index dc52e245f20..0a6893c8b7d 100644 --- a/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.kt +++ b/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.kt @@ -4,7 +4,7 @@ fun foo(i: Int) = i fun foo(s: String) = s fun test() { - foo(emptyList()) + foo(emptyList()) } fun emptyList(): List {throw Exception()} diff --git a/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.kt b/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.kt index dd4f7d0b20c..74b8670b80a 100644 --- a/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.kt +++ b/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.kt @@ -10,7 +10,7 @@ public class ResolutionTaskHolder { tasks.add(ResolutionTask(candidate)) //todo the problem is the type of ResolutionTask is inferred as ResolutionTask too early - tasks.bar(ResolutionTask(candidate)) + tasks.bar(ResolutionTask(candidate)) tasks.add(ResolutionTask(candidate)) } } diff --git a/compiler/testData/diagnostics/tests/resolve/newLineLambda.kt b/compiler/testData/diagnostics/tests/resolve/newLineLambda.kt index 4d1e59efc31..63691dbed3f 100644 --- a/compiler/testData/diagnostics/tests/resolve/newLineLambda.kt +++ b/compiler/testData/diagnostics/tests/resolve/newLineLambda.kt @@ -99,10 +99,10 @@ fun testTwoLambdas() { {} {} - return if (true) { - twoLambdaArgs({}) + return if (true) { + twoLambdaArgs({}) {} - {} + {} } else { {} } @@ -112,6 +112,6 @@ fun testTwoLambdas() { fun f1(): (() -> Unit) -> (() -> Unit) -> Unit { return { l1 -> l1() - { l2 -> l2() } + { l2 -> l2() } } } diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/allLambdas.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/allLambdas.kt index 720d82682d6..dfd344a41c7 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/allLambdas.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/allLambdas.kt @@ -6,4 +6,4 @@ object X2 fun foo(x: T1, f: (T1) -> T1) = X1 fun foo(xf: () -> T2, f: (T2) -> T2) = X2 -val test: X2 = foo({ 0 }, { it -> it + 1 }) +val test: X2 = foo({ 0 }, { it -> it + 1 }) diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt index b0ccc400d48..bfcf957196d 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt @@ -14,6 +14,6 @@ fun baz(x: String, y: E) {} fun bar(x: A) { x.foo("") - x.baz("", "") - baz("", "") + x.baz("", "") + baz("", "") } diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.kt index 660db038f41..520acd5367f 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.kt @@ -6,4 +6,4 @@ fun T2.myUse(f: (T2) -> R2): R2 = f(this) fun test1(x: Closeable) = x.myUse { 42 } fun test2(x: Closeable) = x.myUse { 42 } -fun test3(x: Closeable) = x.myUse<AutoCloseable, Int> { 42 } // TODO KT-10681 +fun test3(x: Closeable) = x.myUse { 42 } // TODO KT-10681 diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.kt index 1fbb7b61944..bf767d349d9 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.kt @@ -11,5 +11,5 @@ fun B.foo(block: (T) -> Unit) { } fun main() { - B("string").foo { } + B("string").foo { } } diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.kt index c25bea63184..7f99d37bbde 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.kt @@ -21,5 +21,5 @@ import a.* import b.* fun test() { - foo { } + foo { } } diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.kt index c61a06997d6..a9b8e646898 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.kt @@ -19,5 +19,5 @@ import a.* import b.* fun main() { - foo { } + foo { } } diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/withVariance.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/withVariance.kt index c91b1261e50..0276c54a690 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/withVariance.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/withVariance.kt @@ -6,4 +6,4 @@ class A fun A.foo() = X1 fun A.foo() = X2 -fun A.test() = foo() // TODO fix constraint system +fun A.test() = foo() // TODO fix constraint system diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/constantsInIf.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/constantsInIf.kt index d38b8386b33..34817b55440 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/constantsInIf.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/constantsInIf.kt @@ -1,13 +1,13 @@ // !DIAGNOSTICS: -USELESS_ELVIS fun test() { - bar(if (true) { - 1 + bar(if (true) { + 1 } else { - 2 + 2 }) - bar(1 ?: 2) + bar(1 ?: 2) } fun bar(s: String) = s diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/elvisAsCall.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/elvisAsCall.kt index 862a731981c..cb44030c595 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/elvisAsCall.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/elvisAsCall.kt @@ -13,7 +13,7 @@ fun testElvis(a: Int?, b: Int?) { if (a != null) { doInt(b ?: a) } - doList(getList() ?: emptyListOfA()) //should be an error + doList(getList() ?: emptyListOfA()) //should be an error doList(getList() ?: strangeList { doInt(it) }) //lambda was not analyzed } @@ -32,5 +32,5 @@ fun testDataFlowInfo2(a: Int?, b: Int?) { } fun testTypeMismatch(a: String?, b: Any) { - doInt(a ?: b) + doInt(a ?: b) } diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/exclExclAsCall.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/exclExclAsCall.kt index 1db39ad5555..52d11c382ca 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/exclExclAsCall.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/exclExclAsCall.kt @@ -12,8 +12,8 @@ fun emptyNullableListOfA(): List? = null //------------------------------- fun testExclExcl() { - doList(emptyNullableListOfA()!!) //should be an error here - val l: List = id(emptyNullableListOfA()!!) + doList(emptyNullableListOfA()!!) //should be an error here + val l: List = id(emptyNullableListOfA()!!) doList(strangeNullableList { doInt(it) }!!) //lambda should be analyzed (at completion phase) } diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.kt index 11c23dfe05d..d552ecf374c 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.kt @@ -8,7 +8,7 @@ interface D: A, B interface E: A, B fun foo(c: C?, d: D?, e: E?) { - val test1: A? = c ?: d ?: e + val test1: A? = c ?: d ?: e val test2: B? = if (false) if (true) c else d else e diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.kt index 2c4d876bcec..d72be17b35e 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.kt @@ -3,25 +3,25 @@ package b fun bar(i: Int) = i fun test(a: Int?, b: Int?) { - bar(if (a == null) return else b) + bar(if (a == null) return else b) } fun test(a: Int?, b: Int?, c: Int?) { - bar(if (a == null) return else if (b == null) return else c) + bar(if (a == null) return else if (b == null) return else c) } fun test(a: Any?, b: Any?, c: Int?) { - bar(if (a == null) if (b == null) c else return else return) + bar(if (a == null) if (b == null) c else return else return) } fun test(a: Int?, b: Any?, c: Int?) { - bar(if (a == null) { + bar(if (a == null) { return } else { if (b == null) { return } else { - c + c } }) } diff --git a/compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.kt b/compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.kt index 613a6e6d025..d2f66177bbe 100644 --- a/compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.kt +++ b/compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.kt @@ -3,12 +3,12 @@ fun foo(t: T) = t fun test1() { - foo("") + foo("") } fun bar(t: T, r: R) {} fun test2() { - bar("", "") + bar("", "") } diff --git a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.kt b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.kt index 4775674e343..f2359b6a7b4 100644 --- a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.kt +++ b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.kt @@ -20,7 +20,7 @@ class B : A() { } if (d.x is B) { - d.x.foo {} + d.x.foo {} } } } diff --git a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/unstableSmartCast.kt b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/unstableSmartCast.kt index 980f769fc71..1da2463f075 100644 --- a/compiler/testData/diagnostics/tests/scopes/protectedVisibility/unstableSmartCast.kt +++ b/compiler/testData/diagnostics/tests/scopes/protectedVisibility/unstableSmartCast.kt @@ -12,7 +12,7 @@ class Derived : BaseOuter() { fun test(foo: Foo) { if (foo.base is Derived) { foo.base.foo() checkType { _() } // Resolved to extension - foo.base.bar() + foo.base.bar() } } } diff --git a/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.kt b/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.kt index 9b43b8ab38b..59bbe40ef17 100644 --- a/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.kt +++ b/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.kt @@ -20,8 +20,8 @@ val y4: B = B("") val y5: B = B(1) val y6: B = B("") -val y7: B = B(1) +val y7: B = B(1) val y8: B = B("") val y9 = B(1) -val y10 = B("") +val y10 = B("") diff --git a/compiler/testData/diagnostics/tests/smartCasts/alwaysNull.kt b/compiler/testData/diagnostics/tests/smartCasts/alwaysNull.kt index d382f90bc92..91ce8cbb463 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/alwaysNull.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/alwaysNull.kt @@ -2,12 +2,12 @@ fun foo(): String { var s: String? s = null s?.length - s.length + s.length if (s == null) return s!! var t: String? = "y" if (t == null) t = "x" var x: Int? = null - if (x == null) x += null + if (x == null) x += null return t + s } @@ -15,7 +15,7 @@ fun String?.gav() {} fun bar(s: String?) { if (s != null) return - s.gav() + s.gav() s as? String s as String? s as String diff --git a/compiler/testData/diagnostics/tests/smartCasts/alwaysNullWithJava.kt b/compiler/testData/diagnostics/tests/smartCasts/alwaysNullWithJava.kt index 27f1855b0ed..e4012d70daa 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/alwaysNullWithJava.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/alwaysNullWithJava.kt @@ -10,7 +10,6 @@ public class My { fun test() { val my = My.create() if (my == null) { - my.foo() + my.foo() } } - diff --git a/compiler/testData/diagnostics/tests/smartCasts/castchecks/variables.kt b/compiler/testData/diagnostics/tests/smartCasts/castchecks/variables.kt index 02a71f401b9..e5ffe5cf0cb 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/castchecks/variables.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/castchecks/variables.kt @@ -40,7 +40,7 @@ fun f(a: SomeClass?) { if (aa as? SomeSubClass != null) { aa = null // 'aa' cannot be cast to SomeSubClass - aa.hashCode() + aa.hashCode() aa.foo (aa as? SomeSubClass).foo (aa as SomeSubClass).foo @@ -49,7 +49,7 @@ fun f(a: SomeClass?) { aa = null if (b != null) { // 'aa' cannot be cast to SomeSubClass - aa.hashCode() + aa.hashCode() aa.foo (aa as? SomeSubClass).foo (aa as SomeSubClass).foo diff --git a/compiler/testData/diagnostics/tests/smartCasts/comparisonUnderAnd.kt b/compiler/testData/diagnostics/tests/smartCasts/comparisonUnderAnd.kt index 3c76fa5cefd..a2601acaecc 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/comparisonUnderAnd.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/comparisonUnderAnd.kt @@ -15,12 +15,12 @@ fun foo(x : String?, y : String?) { else { // y == null but x != y x.length - y.length + y.length } if (y == null && x != y) { // y == null but x != y x.length - y.length + y.length } else { x.length diff --git a/compiler/testData/diagnostics/tests/smartCasts/complexComparison.kt b/compiler/testData/diagnostics/tests/smartCasts/complexComparison.kt index 88ca7ecf7e3..10bc876dba2 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/complexComparison.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/complexComparison.kt @@ -6,7 +6,7 @@ fun foo(x: String?, y: String?, z: String?, w: String?) { if (x != null || y != null || (x != z && y != z)) z.length else - z.length + z.length if (x == null || y == null || (x != z && y != z)) z.length else diff --git a/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.kt b/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.kt index dec370ba256..dd4184904de 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.kt @@ -17,7 +17,7 @@ fun foo(list: StringList, arg: Unstable) { list.remove(arg.first) if (arg.first?.isEmpty() ?: false) { // Should be still resolved to extension, without smart cast or smart cast impossible - list.remove(arg.first) + list.remove(arg.first) } } @@ -35,6 +35,6 @@ fun bar(list: BooleanList, arg: UnstableBoolean) { list.remove(arg.first) if (arg.first ?: false) { // Should be still resolved to extension, without smart cast or smart cast impossible - list.remove(arg.first) + list.remove(arg.first) } } diff --git a/compiler/testData/diagnostics/tests/smartCasts/inference/intersectionTypes.kt b/compiler/testData/diagnostics/tests/smartCasts/inference/intersectionTypes.kt index ebe4201b4c2..2298c240db7 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/inference/intersectionTypes.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/inference/intersectionTypes.kt @@ -16,7 +16,7 @@ interface C: A fun test(a: A, b: B, c: C) { if (a is B && a is C) { - val d: C = id(a) + val d: C = id(a) val e: Any = id(a) val f = id(a) checkSubtype(f) @@ -30,7 +30,7 @@ fun test(a: A, b: B, c: C) { val k = three(a, b, c) checkSubtype(k) checkSubtype(k) - val l: Int = three(a, b, c) + val l: Int = three(a, b, c) use(d, e, f, g, h, k, l) } @@ -40,11 +40,11 @@ fun foo(t: T, l: MutableList): T = t fun testErrorMessages(a: A, ml: MutableList) { if (a is B && a is C) { - foo(a, ml) + foo(a, ml) } if(a is C) { - foo(a, ml) + foo(a, ml) } } diff --git a/compiler/testData/diagnostics/tests/smartCasts/inference/kt29767.kt b/compiler/testData/diagnostics/tests/smartCasts/inference/kt29767.kt index a74e92e5c06..dad38a1b86a 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/inference/kt29767.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/inference/kt29767.kt @@ -2,7 +2,7 @@ fun test(a: MutableList?) { if (a != null) { - val b = a[0] // no SMARTCAST diagnostic + val b = a[0] // no SMARTCAST diagnostic if (b != null) { b.inc() } diff --git a/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/flexibleTypes.kt b/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/flexibleTypes.kt index c01162d7617..7732a8d819e 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/flexibleTypes.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/flexibleTypes.kt @@ -16,37 +16,37 @@ interface C { fun foo(x: Any?) { if (x is A && x is B) { - x.foo().checkType { _() } + x.foo().checkType { _() } x.foo().checkType { _() } } if (x is B && x is A) { - x.foo().checkType { _() } + x.foo().checkType { _() } x.foo().checkType { _() } } if (x is A && x is C) { x.foo().checkType { _() } - x.foo().checkType { _() } + x.foo().checkType { _() } } if (x is C && x is A) { x.foo().checkType { _() } - x.foo().checkType { _() } + x.foo().checkType { _() } } if (x is A && x is B && x is C) { x.foo().checkType { _() } - x.foo().checkType { _() } + x.foo().checkType { _() } } if (x is B && x is A && x is C) { x.foo().checkType { _() } - x.foo().checkType { _() } + x.foo().checkType { _() } } if (x is B && x is C && x is A) { x.foo().checkType { _() } - x.foo().checkType { _() } + x.foo().checkType { _() } } } diff --git a/compiler/testData/diagnostics/tests/smartCasts/kt10444.kt b/compiler/testData/diagnostics/tests/smartCasts/kt10444.kt index 3ab7acc1663..0cd9f6b2b56 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/kt10444.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/kt10444.kt @@ -9,7 +9,7 @@ class Qwe(val a: T?) { fun test1(obj: Qwe<*>) { obj as Qwe - check(obj.a) + check(obj.a) } fun check(a: T?) { diff --git a/compiler/testData/diagnostics/tests/smartCasts/kt2865.kt b/compiler/testData/diagnostics/tests/smartCasts/kt2865.kt index e5ce6450bff..d5f9e204a18 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/kt2865.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/kt2865.kt @@ -6,6 +6,6 @@ fun foo(a: MutableMap, x: String?) { } fun foo1(a: MutableMap, x: String?) { - a[x] = x!! + a[x] = x!! a[x!!] = x } diff --git a/compiler/testData/diagnostics/tests/smartCasts/kt30927.kt b/compiler/testData/diagnostics/tests/smartCasts/kt30927.kt index 4caf76f6d28..b27b61d3a2a 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/kt30927.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/kt30927.kt @@ -5,22 +5,22 @@ fun case_0() { val z: Any? = 10 val y = z.run { this as Int - this // error in NI: required Int, found Any?; just inferred to Any? in OI + this // error in NI: required Int, found Any?; just inferred to Any? in OI } - y checkType { _() } - y checkType { _() } + y checkType { _() } + y checkType { _() } } fun case_1(z: Any?) { val y = z.run { when (this) { - is String -> return@run this // type mismatch in the new inference (required String, found Any?) + is String -> return@run this // type mismatch in the new inference (required String, found Any?) is Float -> "" else -> return@run "" } } - y checkType { _() } - y checkType { _() } + y checkType { _() } + y checkType { _() } // y is inferred to Any? } @@ -39,12 +39,12 @@ fun case_2(z: Any?) { fun case_3(z: Any?) { val y = z.let { when (it) { - is String -> return@let it + is String -> return@let it is Float -> "" else -> return@let "" } } - y checkType { _() } - y checkType { _() } + y checkType { _() } + y checkType { _() } // y is inferred to String } diff --git a/compiler/testData/diagnostics/tests/smartCasts/lambdaArgumentWithBoundWithoutType.kt b/compiler/testData/diagnostics/tests/smartCasts/lambdaArgumentWithBoundWithoutType.kt index 0e6ac8e12f0..c73e2efec83 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/lambdaArgumentWithBoundWithoutType.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/lambdaArgumentWithBoundWithoutType.kt @@ -12,14 +12,14 @@ val foo: Foo = run { x } -val foofoo: Foo = run { +val foofoo: Foo = run { val x = foo() if (x == null) throw Exception() - x + x } -val bar: Bar = run { +val bar: Bar = run { val x = foo() if (x == null) throw Exception() - x + x } diff --git a/compiler/testData/diagnostics/tests/smartCasts/variables/ifNullAssignment.kt b/compiler/testData/diagnostics/tests/smartCasts/variables/ifNullAssignment.kt index 7ca923d2eb0..02e58157287 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/variables/ifNullAssignment.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/variables/ifNullAssignment.kt @@ -68,5 +68,5 @@ fun gau(flag: Boolean, arg: String?) { } } - x.hashCode() + x.hashCode() } diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/assignment.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/assignment.kt index fc8eaf4e00d..ad82cdb18e5 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/assignment.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/assignment.kt @@ -4,7 +4,7 @@ fun foo() { v = "abc" v.length v = null - v.length + v.length v = "abc" v.length } diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/boundInitializerWrong.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/boundInitializerWrong.kt index c6478189d1b..3af91c1234b 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/boundInitializerWrong.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/boundInitializerWrong.kt @@ -5,7 +5,7 @@ fun foo() { val y = x x = null if (y != null) { - x.hashCode() + x.hashCode() } } @@ -22,7 +22,7 @@ fun bar(s: String?) { val hashCode = ss?.hashCode() ss = null if (hashCode != null) { - ss.hashCode() + ss.hashCode() } } diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initInTryReturnInCatch.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initInTryReturnInCatch.kt index 00d2269a78e..c68150b7609 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initInTryReturnInCatch.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initInTryReturnInCatch.kt @@ -75,5 +75,5 @@ fun test6() { finally { a = null } - a.hashCode() // a is null here + a.hashCode() // a is null here } diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt index 567d8290789..b1bbc823964 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt @@ -3,5 +3,5 @@ fun foo() { // It is possible in principle to provide smart cast here v.length v = null - v.length + v.length } diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.kt index 1cc64980ac5..a10f6ae693c 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.kt @@ -11,7 +11,7 @@ operator fun Long?.inc() = this?.let { it + 1 } fun bar(arg: Long?): Long { var i = arg if (i++ == 5L) { - return i-- + i + return i-- + i } if (i++ == 7L) { return i++ + i diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/postfixNotnullClassIncrement.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/postfixNotnullClassIncrement.kt index 9596d64a6d8..fa5ee173d15 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/postfixNotnullClassIncrement.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/postfixNotnullClassIncrement.kt @@ -1,6 +1,6 @@ class MyClass -operator fun MyClass.inc(): MyClass { return null!! } +operator fun MyClass.inc(): MyClass { return null!! } public fun box() : MyClass? { var i : MyClass? diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/prefixNotnullClassIncrement.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/prefixNotnullClassIncrement.kt index 85c2e48241a..e2df6a91601 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/prefixNotnullClassIncrement.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/prefixNotnullClassIncrement.kt @@ -1,6 +1,6 @@ class MyClass -operator fun MyClass.inc(): MyClass { return null!! } +operator fun MyClass.inc(): MyClass { return null!! } public fun box() { var i : MyClass? diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/unnecessaryWithMap.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/unnecessaryWithMap.kt index 913020fcebd..4004c932e00 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/unnecessaryWithMap.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/unnecessaryWithMap.kt @@ -1,4 +1,3 @@ - fun create(): Map = null!! operator fun Map.iterator(): Iterator> = null!! @@ -14,7 +13,7 @@ class MyClass { m = create() // See KT-7428 for ((k, v) in m) - res += (k.length + v.length) + res += (k.length + v.length) return res } } diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varIntNull.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varIntNull.kt index cc8df087fd7..6fd528d5d8f 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varIntNull.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varIntNull.kt @@ -1,5 +1,5 @@ fun foo(): Int { var i: Int? = 42 i = null - return i + 1 + return i + 1 } diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varNull.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varNull.kt index 2977569c52f..4cc06ddf621 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varNull.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varNull.kt @@ -1,5 +1,5 @@ fun foo(): Int { var s: String? = "abc" s = null - return s.length + return s.length } diff --git a/compiler/testData/diagnostics/tests/substitutions/starProjections.kt b/compiler/testData/diagnostics/tests/substitutions/starProjections.kt index be80ee9407f..82c094953bc 100644 --- a/compiler/testData/diagnostics/tests/substitutions/starProjections.kt +++ b/compiler/testData/diagnostics/tests/substitutions/starProjections.kt @@ -16,9 +16,8 @@ interface B, T>> { } fun testB(b: B<*, *>) { - b.r().checkType { _() } - b.t().checkType { _, *>>() } + b.r().checkType { _() } + b.t().checkType { _, *>>() } - b.t().r().size + b.t().r().size } - diff --git a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt index 1a775a5d913..b381cd916ee 100644 --- a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt +++ b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt @@ -14,5 +14,5 @@ import foo.* import bar.* fun test(l: List) { - f(l) + f(l) } diff --git a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.kt b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.kt index 6f3a22c6407..86392f91495 100644 --- a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.kt +++ b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.kt @@ -4,5 +4,5 @@ fun f1(l: List2): T {throw Exception()} // ERR fun f1(c: Collection): T{throw Exception()} fun test(l: List) { - f1(l) + f1(l) } diff --git a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/InnerClassInGeneric.kt b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/InnerClassInGeneric.kt index 8060cdab343..d396369d74a 100644 --- a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/InnerClassInGeneric.kt +++ b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/InnerClassInGeneric.kt @@ -1,7 +1,7 @@ // FILE: KotlinFile.kt fun foo(javaClass: JavaClass): Int { val inner = javaClass.createInner() - return inner.doSomething(1, "") { } + return inner.doSomething(1, "") { } } // FILE: JavaClass.java diff --git a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/Private.kt b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/Private.kt index 1d1f9804e89..fb8e881f62b 100644 --- a/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/Private.kt +++ b/compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/Private.kt @@ -1,6 +1,6 @@ // FILE: KotlinFile.kt fun foo(javaClass: JavaClass) { - javaClass.doSomething { } + javaClass.doSomething { } } // FILE: JavaClass.java diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.kt b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.kt index 1f3c2ecde08..eab44b72628 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.kt @@ -13,7 +13,7 @@ class GenericDerivedClass : GenericBaseClass(), GenericBaseInterface { override fun bar(x: T): T = super.bar(x) override fun ambiguous(x: T): T = - super.ambiguous(x) + super.ambiguous(x) } class SpecializedDerivedClass : GenericBaseClass(), GenericBaseInterface { @@ -21,9 +21,9 @@ class SpecializedDerivedClass : GenericBaseCl override fun bar(x: String): String = super.bar(x) override fun ambiguous(x: String): String = - super.ambiguous(x) + super.ambiguous(x) override fun ambiguous(x: Int): Int = - super.ambiguous(x) + super.ambiguous(x) } class MixedDerivedClass : GenericBaseClass(), GenericBaseInterface { @@ -31,7 +31,7 @@ class MixedDerivedClass : GenericBaseClass override fun bar(x: T): T = super.bar(x) override fun ambiguous(x: Int): Int = - super.ambiguous(x) + super.ambiguous(x) override fun ambiguous(x: T): T = - super.ambiguous(x) + super.ambiguous(x) } diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.kt b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.kt index 46f00d11e68..42093886dff 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.kt @@ -13,7 +13,7 @@ interface InterfaceWithFun { class DerivedUsingFun : BaseWithCallableProp(), InterfaceWithFun { fun foo(): String = - super.fn() + super.fn() override fun bar(): String = super.bar() diff --git a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingInReturnPosition.kt b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingInReturnPosition.kt index a0a8bf37a92..63552fea2e5 100644 --- a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingInReturnPosition.kt +++ b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingInReturnPosition.kt @@ -39,7 +39,7 @@ class Context fun Any.decodeIn(typeFrom: Context): T = something() fun Any?.decodeOut1(typeFrom: Context): T { - return this?.decodeIn(typeFrom) ?: kotlin.Unit + return this?.decodeIn(typeFrom) ?: kotlin.Unit } fun Any.decodeOut2(typeFrom: Context): T { diff --git a/compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasExpansion.kt b/compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasExpansion.kt index 0abf9708a82..badd11e9c6c 100644 --- a/compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasExpansion.kt +++ b/compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasExpansion.kt @@ -17,8 +17,8 @@ fun test4(x: NL) {} val test5 = NA() val test6 = NA<Any>() val test7 = NL() -val test8 = MMMM<Int>() -val test9dwd = NL() +val test8 = MMMM<Int>() +val test9dwd = NL() fun test9(x: TC>) {} fun test10(x: TC>) {} diff --git a/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructor.kt b/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructor.kt index 70599f8c1fa..4a7b173a0cf 100644 --- a/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructor.kt +++ b/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructor.kt @@ -19,5 +19,5 @@ typealias GIntI = Generic.Inner fun test2(x: Generic) = x.GI() fun test3(x: Generic) = x.GI() fun test4(x: Generic>) = x.GI() -fun test5(x: Generic) = x.GIntI() +fun test5(x: Generic) = x.GIntI() fun Generic.test6() = GIntI() diff --git a/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructorInSupertypes.kt b/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructorInSupertypes.kt index d4afb618214..613a02b45a5 100644 --- a/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructorInSupertypes.kt +++ b/compiler/testData/diagnostics/tests/typealias/innerClassTypeAliasConstructorInSupertypes.kt @@ -21,16 +21,16 @@ class Generic { open inner class Generic inner class Test1 : GI() - inner class Test2 : GIInt() + inner class Test2 : GIInt() inner class Test3 : GIStar() inner class Test3a : test.Generic<*>.Inner() inner class Test4 : GG() inner class Test5 : GG() - inner class Test6 : GG() - inner class Test7 : GG() - inner class Test8 : GIntG() - inner class Test9 : GGInt() + inner class Test6 : GG() + inner class Test7 : GG() + inner class Test8 : GIntG() + inner class Test9 : GGInt() inner class Test10 : GGInt() inner class Test11 : GG { diff --git a/compiler/testData/diagnostics/tests/typealias/innerTypeAliasConstructor.kt b/compiler/testData/diagnostics/tests/typealias/innerTypeAliasConstructor.kt index 9280bcf6801..5cc719abff4 100644 --- a/compiler/testData/diagnostics/tests/typealias/innerTypeAliasConstructor.kt +++ b/compiler/testData/diagnostics/tests/typealias/innerTypeAliasConstructor.kt @@ -19,5 +19,5 @@ val test4 = C.P2(1, // C.P() syntax could work if we add captured type parameters as type variables in a constraint system for corresponding call. // However, this should be consistent with inner classes capturing type parameters. val test5 = C.P(1, 1) -val test6 = C.P1("", 1) -val test7 = C.P2(1, "") +val test6 = C.P1("", 1) +val test7 = C.P2(1, "") diff --git a/compiler/testData/diagnostics/tests/typealias/noApproximationInTypeAliasArgumentSubstitution.kt b/compiler/testData/diagnostics/tests/typealias/noApproximationInTypeAliasArgumentSubstitution.kt index 32f344d14c4..6ad583d1dbe 100644 --- a/compiler/testData/diagnostics/tests/typealias/noApproximationInTypeAliasArgumentSubstitution.kt +++ b/compiler/testData/diagnostics/tests/typealias/noApproximationInTypeAliasArgumentSubstitution.kt @@ -13,4 +13,4 @@ typealias TMap = Map fun foo2(m: TMap) = m fun bar2(m: TMap<*>) = - foo2(m) + foo2(m) diff --git a/compiler/testData/diagnostics/tests/typealias/starProjection.kt b/compiler/testData/diagnostics/tests/typealias/starProjection.kt index 7f7c9699cd5..a91edf0a288 100644 --- a/compiler/testData/diagnostics/tests/typealias/starProjection.kt +++ b/compiler/testData/diagnostics/tests/typealias/starProjection.kt @@ -9,6 +9,6 @@ fun test2(x: Map) = check(x) fun test3(x: Map) = check(x).size -fun test4(x: Map) = check(x)["42"] +fun test4(x: Map) = check(x)["42"] -fun test5(x: Map) = check(x)[42] +fun test5(x: Map) = check(x)[42] diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorCrazyProjections.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorCrazyProjections.kt index d2065df10ff..70f2117730e 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorCrazyProjections.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorCrazyProjections.kt @@ -10,6 +10,6 @@ fun listOf(): List = null!! // Unresolved reference is ok here: // we can't create a substituted signature for type alias constructor // since it has 'out' type projection in 'in' position. -val test1 = BOutIn(listOf(), null!!) +val test1 = BOutIn(listOf(), null!!) -val test2 = BInIn(listOf(), null!!) +val test2 = BInIn(listOf(), null!!) diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.kt index a933b076bb8..f856dede5a4 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.kt @@ -7,8 +7,8 @@ typealias CIn = C typealias COut = C typealias CT = C -val test1 = CStar() -val test2 = CIn() -val test3 = COut() -val test4 = CT<*>() +val test1 = CStar() +val test2 = CIn() +val test3 = COut() +val test4 = CT<*>() val test5 = CT>() diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjectionInSupertypes.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjectionInSupertypes.kt index e56fc7f9b41..9a6c654bfff 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjectionInSupertypes.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjectionInSupertypes.kt @@ -5,12 +5,12 @@ typealias CIn = C typealias COut = C typealias CT = C -class Test1 : CStar() -class Test2 : CIn() -class Test3 : COut() +class Test1 : CStar() +class Test2 : CIn() +class Test3 : COut() class Test4 : CStar { - constructor() : super() + constructor() : super() } class Test5 : CT<*>() diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.kt index e7d0847dba5..96f71bb6eac 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.kt @@ -4,15 +4,15 @@ class Num(val x: Tn) typealias N = Num val test0 = N(1) -val test1 = N("1") +val test1 = N("1") class Cons(val head: T, val tail: Cons?) typealias C = Cons typealias CC = C> -val test2 = C(1, 2) -val test3 = CC(1, 2) +val test2 = C(1, 2) +val test3 = CC(1, 2) val test4 = CC(C(1, null), null) @@ -20,13 +20,13 @@ class Pair(val x: X, val y: Y) typealias PL = Pair> typealias PN = Pair> -val test5 = PL(1, null) +val test5 = PL(1, null) class Foo(val p: Pair) typealias F = Foo -fun testProjections1(x: Pair) = F(x) -fun testProjections2(x: Pair) = F(x) -fun testProjections3(x: Pair) = F(x) -fun testProjections4(x: Pair) = F(x) +fun testProjections1(x: Pair) = F(x) +fun testProjections2(x: Pair) = F(x) +fun testProjections3(x: Pair) = F(x) +fun testProjections4(x: Pair) = F(x) diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt index dab82144ff6..3f0becf950c 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt @@ -31,8 +31,8 @@ val r3 = LateInitNumRef(1) val r3a = LateNR(1) fun test() { - r1.x = r1.x - r1a.x = r1a.x + r1.x = r1.x + r1a.x = r1a.x r2.x = r2.x r2a.x = r2a.x r3.x = r3.x diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt index b4c59136b8e..fff41b71315 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt @@ -8,9 +8,9 @@ class Hr(val a: A, val b: B) typealias Test = Hr, Bar> val test1 = Test(1, "") -val test2 = Test(1, 2) +val test2 = Test(1, 2) typealias Bas = Hr, Bar> -val test3 = Bas(1, 1) +val test3 = Bas(1, 1) diff --git a/compiler/testData/diagnostics/tests/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.kt b/compiler/testData/diagnostics/tests/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.kt index 3c8e33aad33..bc5a996214f 100644 --- a/compiler/testData/diagnostics/tests/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.kt +++ b/compiler/testData/diagnostics/tests/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.kt @@ -20,15 +20,15 @@ val test2p2 = P2(1, 1) val test3p2 = P2(1, 1) val test0pr = PR(1, "") -val test1pr = PR(1, "") +val test1pr = PR(1, "") val test2pr = PR(1, "") val test2pra = PR(1, "") -val test3pr = P2(1, "") +val test3pr = P2(1, "") class Num(val x: T) typealias N = Num -val testN0 = N("") +val testN0 = N("") val testN1 = N(1) val testN1a = N<String>("") val testN2 = N(1) @@ -37,5 +37,5 @@ class MyPair(val string: T1, val number: T2) typealias MP = MyPair val testMP0 = MP("", 1) -val testMP1 = MP(1, "") +val testMP1 = MP(1, "") val testMP2 = MP<String>("", "") diff --git a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/conversionOfSignedToUnsigned.kt b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/conversionOfSignedToUnsigned.kt index 50bf2b5a160..91b4d970823 100644 --- a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/conversionOfSignedToUnsigned.kt +++ b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/conversionOfSignedToUnsigned.kt @@ -54,7 +54,7 @@ fun test() { takeUBytes(IMPLICIT_INT, EXPLICIT_INT, 42u) - takeLong(IMPLICIT_INT) + takeLong(IMPLICIT_INT) takeIntWithoutAnnotation(IMPLICIT_INT) diff --git a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.kt b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.kt index 6f552fbd67d..0e2cd85c66f 100644 --- a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.kt +++ b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.kt @@ -9,8 +9,8 @@ fun select(x: K, y: K): K = TODO() fun takeUByte(u: UByte) {} fun foo() { - select(1, 1u) checkType { _>() } - takeUByte(id(1)) + select(1, 1u) checkType { _>() } + takeUByte(id(1)) 1 + 1u (1u + 1) checkType { _() } diff --git a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.kt b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.kt index 67c0488a20c..b3514dc6dfa 100644 --- a/compiler/testData/diagnostics/tests/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.kt +++ b/compiler/testData/diagnostics/tests/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.kt @@ -26,7 +26,7 @@ fun test() { takeUInt(1) takeULong(1) - takeULong(18446744073709551615) + takeULong(18446744073709551615) takeULong(1844674407370955161) takeULong(18446744073709551615u) diff --git a/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.kt b/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.kt index 56f99761caf..dbdde446817 100644 --- a/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.kt +++ b/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.kt @@ -31,13 +31,13 @@ fun getArr(): Array? = null fun f() { A().foo(1, *args) bar(2, *args) - baz(*args) + baz(*args) } fun g(args: Array?) { if (args != null) { - A().foo(1, *args) + A().foo(1, *args) } A().foo(1, *A.ar) } @@ -48,14 +48,14 @@ class B { fun h(b: B) { if (b.args != null) { - A().foo(1, *b.args) + A().foo(1, *b.args) } } fun k() { A().foo(1, *getArr()) bar(2, *getArr()) - baz(*getArr()) + baz(*getArr()) } fun invokeTest(goodArgs: Array) { diff --git a/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.kt b/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.kt index 800c844b1a0..8536a331c19 100644 --- a/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.kt +++ b/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.kt @@ -19,7 +19,7 @@ fun test_fun(s: String, arr: Array) { } fun test_ann(s: String, arr: Array) { - @Ann([""], x = 1) + @Ann([""], x = 1) foo() @Ann(*[""], x = 1) foo() diff --git a/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_4.kt b/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_4.kt index b153550462a..36d3037212a 100644 --- a/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_4.kt +++ b/compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_4.kt @@ -19,7 +19,7 @@ fun test_fun(s: String, arr: Array) { } fun test_ann(s: String, arr: Array) { - @Ann([""], x = 1) + @Ann([""], x = 1) foo() @Ann(*[""], x = 1) foo() diff --git a/compiler/testData/diagnostics/tests/varargs/assigningArraysToVarargsInAnnotations.kt b/compiler/testData/diagnostics/tests/varargs/assigningArraysToVarargsInAnnotations.kt index 9dfd03c0423..490612be1c2 100644 --- a/compiler/testData/diagnostics/tests/varargs/assigningArraysToVarargsInAnnotations.kt +++ b/compiler/testData/diagnostics/tests/varargs/assigningArraysToVarargsInAnnotations.kt @@ -17,7 +17,7 @@ fun test1() {} @Ann(s = intArrayOf()) fun test2() {} -@Ann(s = arrayOf(1)) +@Ann(s = arrayOf(1)) fun test3() {} @Ann("value1", "value2") diff --git a/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.kt b/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.kt index 9417213e3de..ed8c8a13476 100644 --- a/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.kt +++ b/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.kt @@ -52,8 +52,8 @@ fun testMany(a: Any) { manyFoo(s = "") manyFoo(a) - manyFoo(v = a) - manyFoo(s = a) + manyFoo(v = a) + manyFoo(s = a) manyFoo(v = a as Int) manyFoo(s = a as String) } diff --git a/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.kt b/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.kt index c27c3492786..934707a86ca 100644 --- a/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.kt +++ b/compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.kt @@ -52,8 +52,8 @@ fun testMany(a: Any) { manyFoo(s = "") manyFoo(a) - manyFoo(v = a) - manyFoo(s = a) + manyFoo(v = a) + manyFoo(s = a) manyFoo(v = a as Int) manyFoo(s = a as String) } diff --git a/compiler/testData/diagnostics/tests/varargs/noAssigningArraysToVarargsFeature.kt b/compiler/testData/diagnostics/tests/varargs/noAssigningArraysToVarargsFeature.kt index c9e446d7eaa..5946f47e662 100644 --- a/compiler/testData/diagnostics/tests/varargs/noAssigningArraysToVarargsFeature.kt +++ b/compiler/testData/diagnostics/tests/varargs/noAssigningArraysToVarargsFeature.kt @@ -11,30 +11,30 @@ annotation class Ann(vararg val s: String) -@Ann(s = arrayOf()) +@Ann(s = arrayOf()) fun test1() {} @Ann(s = intArrayOf()) fun test2() {} -@Ann(s = arrayOf(1)) +@Ann(s = arrayOf(1)) fun test3() {} -@Ann(s = ["value"]) +@Ann(s = ["value"]) fun test5() {} -@JavaAnn(value = arrayOf("value")) +@JavaAnn(value = arrayOf("value")) fun jTest1() {} -@JavaAnn(value = ["value"]) +@JavaAnn(value = ["value"]) fun jTest2() {} -@JavaAnn(value = ["value"], path = ["path"]) +@JavaAnn(value = ["value"], path = ["path"]) fun jTest3() {} annotation class IntAnn(vararg val i: Int) -@IntAnn(i = [1, 2]) +@IntAnn(i = [1, 2]) fun foo1() {} @IntAnn(i = intArrayOf(0)) diff --git a/compiler/testData/diagnostics/tests/when/kt10439.kt b/compiler/testData/diagnostics/tests/when/kt10439.kt index fafc694ac4d..fce2158a3b5 100644 --- a/compiler/testData/diagnostics/tests/when/kt10439.kt +++ b/compiler/testData/diagnostics/tests/when/kt10439.kt @@ -13,12 +13,12 @@ fun foo(x: Int) = x fun test0(flag: Boolean) { - foo(if (flag) true else "") + foo(if (flag) true else "") } fun test1(flag: Boolean) { - foo(when (flag) { - true -> true - else -> "" + foo(when (flag) { + true -> true + else -> "" }) } diff --git a/compiler/testData/diagnostics/tests/when/kt10809.kt b/compiler/testData/diagnostics/tests/when/kt10809.kt index 84dfd3c3d05..29c1db2bf3a 100644 --- a/compiler/testData/diagnostics/tests/when/kt10809.kt +++ b/compiler/testData/diagnostics/tests/when/kt10809.kt @@ -24,7 +24,7 @@ class ListData(val list: List) : Data fun listOf(vararg items: T): List = null!! -fun test1(o: Any) = when (o) { +fun test1(o: Any) = when (o) { is List<*> -> ListData(listOf()) is Int -> when { @@ -51,7 +51,7 @@ fun test1x(o: Any): Data? = when (o) { } fun test2() = - if (true) + if (true) ListData(listOf()) else FlagData(true) @@ -64,4 +64,3 @@ fun test2y(): Any = fun test2z(): Any = run { if (true) ListData(listOf()) else FlagData(true) } - diff --git a/compiler/testData/diagnostics/tests/when/kt9929.kt b/compiler/testData/diagnostics/tests/when/kt9929.kt index cd78501d239..3f65bf8c106 100644 --- a/compiler/testData/diagnostics/tests/when/kt9929.kt +++ b/compiler/testData/diagnostics/tests/when/kt9929.kt @@ -1,7 +1,7 @@ -val test: Int = if (true) { +val test: Int = if (true) { when (2) { 1 -> 1 - else -> null + else -> null } } else { diff --git a/compiler/testData/diagnostics/tests/when/kt9972.kt b/compiler/testData/diagnostics/tests/when/kt9972.kt index dba27d433bc..8a2b11c44d4 100644 --- a/compiler/testData/diagnostics/tests/when/kt9972.kt +++ b/compiler/testData/diagnostics/tests/when/kt9972.kt @@ -10,18 +10,18 @@ */ fun test1(): Int { - val x: String = if (true) { + val x: String = if (true) { when { - true -> Any() - else -> null + true -> Any() + else -> null } } else "" return x.hashCode() } fun test2(): Int { - val x: String = when { - true -> Any() + val x: String = when { + true -> Any() else -> null } ?: return 0 return x.hashCode() diff --git a/compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.kt b/compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.kt index bd085494344..cba05bc0377 100644 --- a/compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.kt +++ b/compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.kt @@ -29,6 +29,6 @@ val test3: (String) -> Boolean = val test4: (String) -> Boolean = when { - true -> { s1, s2 -> true } + true -> { s1, s2 -> true } else -> null!! } diff --git a/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.kt b/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.kt index 9edc89979ca..9ed176bd000 100644 --- a/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.kt +++ b/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.kt @@ -11,8 +11,8 @@ * overload-resolution, determining-function-applicability-for-a-specific-call, description -> paragraph 1 -> sentence 3 */ -val test1 = when { - true -> { { true } } +val test1 = when { + true -> { { true } } else -> TODO() } @@ -21,10 +21,10 @@ val test1a: () -> Boolean = when { else -> TODO() } -val test2 = when { - true -> { { true } } +val test2 = when { + true -> { { true } } else -> when { - true -> { { true } } + true -> { { true } } else -> TODO() } } @@ -32,14 +32,14 @@ val test2 = when { val test2a: () -> Boolean = when { true -> { { true } } else -> when { - true -> { { true } } // TODO + true -> { { true } } // TODO else -> TODO() } } -val test3 = when { - true -> { { true } } - true -> { { true } } +val test3 = when { + true -> { { true } } + true -> { { true } } else -> TODO() } diff --git a/compiler/testData/diagnostics/testsWithStdLib/addAllProjection.kt b/compiler/testData/diagnostics/testsWithStdLib/addAllProjection.kt index 4aeeff61812..1ed95a36e53 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/addAllProjection.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/addAllProjection.kt @@ -1,13 +1,12 @@ - fun test(mc: MutableCollection) { - mc.addAll(mc) + mc.addAll(mc) - mc.addAll(arrayListOf()) + mc.addAll(arrayListOf()) mc.addAll(arrayListOf()) - mc.addAll(listOf("")) - mc.addAll(listOf("")) - mc.addAll(listOf("")) + mc.addAll(listOf("")) + mc.addAll(listOf("")) + mc.addAll(listOf("")) mc.addAll(emptyList()) mc.addAll(emptyList()) diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationApplicability/suppressOnFunctionReference.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationApplicability/suppressOnFunctionReference.kt index 59f075bd98f..71d69e80c8a 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationApplicability/suppressOnFunctionReference.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationApplicability/suppressOnFunctionReference.kt @@ -1,3 +1,3 @@ // See KT-15839 -val x = "1".let(@Suppress("DEPRECATION") Integer::parseInt) +val x = "1".let(@Suppress("DEPRECATION") Integer::parseInt) diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/javaAnnotationWithVarargArgument.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/javaAnnotationWithVarargArgument.kt index f41ac41f44d..24ffbbe08cc 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/javaAnnotationWithVarargArgument.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/javaAnnotationWithVarargArgument.kt @@ -1,10 +1,9 @@ - // FILE: A.java public @interface A { String[] value(); } // FILE: b.kt -@A(*arrayOf(1, "b")) +@A(*arrayOf(1, "b")) fun test() { } diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/kotlinAnnotationWithVarargArgument.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/kotlinAnnotationWithVarargArgument.kt index 67b5cc03b1f..ac0736180f1 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/kotlinAnnotationWithVarargArgument.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationWithVarargParameter/kotlinAnnotationWithVarargArgument.kt @@ -1,6 +1,5 @@ - annotation class B(vararg val args: String) -@B(*arrayOf(1, "b")) +@B(*arrayOf(1, "b")) fun test() { } diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsInVariance.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsInVariance.kt index 3db186e15ad..4f3c8271e94 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsInVariance.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsInVariance.kt @@ -1,4 +1,3 @@ - import kotlin.reflect.KClass open class A @@ -13,7 +12,7 @@ class MyClass1 @Ann1(arrayOf(Any::class)) class MyClass1a -@Ann1(arrayOf(B1::class)) +@Ann1(arrayOf(B1::class)) class MyClass2 annotation class Ann2(val arg: Array>) @@ -24,5 +23,5 @@ class MyClass3 @Ann2(arrayOf(B1::class)) class MyClass4 -@Ann2(arrayOf(B2::class)) +@Ann2(arrayOf(B2::class)) class MyClass5 diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsOutVariance.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsOutVariance.kt index b56f6a6e25f..834992e19db 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsOutVariance.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/kClass/kClassArrayInAnnotationsOutVariance.kt @@ -10,7 +10,7 @@ annotation class Ann1(val arg: Array>) @Ann1(arrayOf(A::class)) class MyClass1 -@Ann1(arrayOf(Any::class)) +@Ann1(arrayOf(Any::class)) class MyClass1a @Ann1(arrayOf(B1::class)) @@ -18,11 +18,11 @@ class MyClass2 annotation class Ann2(val arg: Array>) -@Ann2(arrayOf(A::class)) +@Ann2(arrayOf(A::class)) class MyClass3 @Ann2(arrayOf(B1::class)) class MyClass4 -@Ann2(arrayOf(B2::class)) +@Ann2(arrayOf(B2::class)) class MyClass5 diff --git a/compiler/testData/diagnostics/testsWithStdLib/assert/cast.kt b/compiler/testData/diagnostics/testsWithStdLib/assert/cast.kt index 5385aa77265..6b304dfd080 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/assert/cast.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/assert/cast.kt @@ -10,11 +10,11 @@ class B: A { fun test1(a: A) { assert((a as B).bool()) - a.bool() + a.bool() } fun test2() { val a: A? = null; assert((a as B).bool()) - a?.bool() + a?.bool() } diff --git a/compiler/testData/diagnostics/testsWithStdLib/assert/safeCall.kt b/compiler/testData/diagnostics/testsWithStdLib/assert/safeCall.kt index 1af96ff29fa..11d0efaa78e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/assert/safeCall.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/assert/safeCall.kt @@ -4,34 +4,33 @@ fun test1(s: String?) { assert(s!!.isEmpty()) - s?.length + s?.length } fun test2(s: String?) { assert(s!!.isEmpty()) - s!!.length + s!!.length } fun test3(s: String?) { assert(s!!.isEmpty()) - s.length + s.length } fun test4() { val s: String? = null; assert(s!!.isEmpty()) - s?.length + s?.length } fun test5() { val s: String? = null; assert(s!!.isEmpty()) - s!!.length + s!!.length } fun test6() { val s: String? = null; assert(s!!.isEmpty()) - s.length + s.length } - diff --git a/compiler/testData/diagnostics/testsWithStdLib/commonCollections.kt b/compiler/testData/diagnostics/testsWithStdLib/commonCollections.kt index 405a0c71626..9dda3d1cc3c 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/commonCollections.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/commonCollections.kt @@ -1,9 +1,8 @@ - import java.util.* fun foo() { val al = ArrayList() al.size - al.contains(1) + al.contains(1) al.contains("") al.remove("") @@ -11,7 +10,7 @@ fun foo() { val hs = HashSet() hs.size - hs.contains(1) + hs.contains(1) hs.contains("") hs.remove("") @@ -19,10 +18,10 @@ fun foo() { val hm = HashMap() hm.size - hm.containsKey(1) + hm.containsKey(1) hm.containsKey("") - hm[1] + hm[1] hm[""] hm.remove("") diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/externalArguments.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/externalArguments.kt index 3104228db12..ea184603188 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/externalArguments.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/externalArguments.kt @@ -5,7 +5,7 @@ import kotlin.reflect.KProperty fun testLambdaArgumentSmartCast(foo: Int?) { val v = run { if (foo != null) - return@run foo + return@run foo 15 } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.kt index 3052e6f85c5..eaf94f2d699 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.kt @@ -7,26 +7,26 @@ class Controller { fun generate(g: suspend Controller.() -> Unit): S = TODO() -val test1 = generate { - apply { - yield(4) +val test1 = generate { + apply { + yield(4) } } -val test2 = generate { +val test2 = generate { yield(B) - apply { - yield(C) + apply { + yield(C) } } -val test3 = generate { - this.let { +val test3 = generate { + this.let { yield(B) } - apply { - yield(C) + apply { + yield(C) } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.kt index 7910630ece8..e4c6654c54d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.kt @@ -28,7 +28,7 @@ val test1 = generate { baseExtension() } -val test2 = generate { +val test2 = generate { baseExtension() } @@ -37,22 +37,22 @@ val test3 = generate { outNullableAnyExtension() } -val test4 = generate { +val test4 = generate { outNullableAnyExtension() } -val test5 = generate { +val test5 = generate { yield(42) outAnyExtension() } -val test6 = generate { +val test6 = generate { yield("bar") invNullableAnyExtension() } -val test7 = generate { - yield("baz") +val test7 = generate { + yield("baz") genericExtension() } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.kt index 115445a6c11..fbc9b73aeab 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.kt @@ -27,11 +27,11 @@ val test1 = generate { yield("foo") } -val test2 = generate { +val test2 = generate { starBase() } -val test3 = generate { +val test3 = generate { yield("bar") stringBase() } @@ -46,6 +46,6 @@ val test5 = generateSpecific { stringBase() } -val test6 = generateSpecific { +val test6 = generateSpecific { stringBase() } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/incorrectCalls.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/incorrectCalls.kt index b4312f8d92f..634ec01b919 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/incorrectCalls.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/incorrectCalls.kt @@ -24,12 +24,12 @@ val test2 = generate { notYield(3) } -val test3 = generate { +val test3 = generate { yield(3) yieldBarReturnType(3) } -val test4 = generate { +val test4 = generate { yield(3) barReturnType() } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.kt index 72ef1eedcd3..d755acd8578 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.kt @@ -16,11 +16,11 @@ val member = build { add(42) } -val memberWithoutAnn = wrongBuild { +val memberWithoutAnn = wrongBuild { add(42) } -val extension = build { +val extension = build { extensionAdd("foo") } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt index 93fd5d45844..f6cbc1ccaf2 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt @@ -12,8 +12,8 @@ class TypeDefinition { fun defineType(@BuilderInference definition: TypeDefinition.() -> Unit): Unit = TODO() fun main() { - defineType { + defineType { parse { it.toInt() } - serialize { it.toString() } + serialize { it.toString() } } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.kt index b569bff1a4e..9aa73a642d8 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.kt @@ -15,9 +15,9 @@ fun generate(@BuilderInference g: suspend GenericController.() -> Unit): @BuilderInference suspend fun GenericController>.yieldGenerate(g: suspend GenericController.() -> Unit): Unit = TODO() -val test1 = generate { +val test1 = generate { // TODO: KT-15185 - yieldGenerate { + yieldGenerate { yield(4) } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.kt index b55df7a6889..ce06fb70c99 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.kt @@ -23,11 +23,11 @@ val member = build { add(42) } -val memberWithoutAnn = wrongBuild { +val memberWithoutAnn = wrongBuild { add(42) } -val extension = build { +val extension = build { extensionAdd("foo") } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.kt index 0e7d974a068..784b7d3be3a 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.kt @@ -14,10 +14,10 @@ fun generate(@BuilderInference g: suspend Controller.() -> Unit): S = TOD class A -val test1 = generate { +val test1 = generate { yield(A) } -val test2: Int = generate { - yield(A()) +val test2: Int = generate { + yield(A()) } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.kt index 07dd66a6a42..916b60bc8b0 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.kt @@ -7,6 +7,6 @@ class Controller { fun generate(g: suspend Controller.() -> Unit): S = TODO() -val test = generate { +val test = generate { yield("foo") } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/useInferenceInformationFromExtension.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/useInferenceInformationFromExtension.kt index c561fbdc54d..86d13bf0ff0 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/useInferenceInformationFromExtension.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/useInferenceInformationFromExtension.kt @@ -23,7 +23,7 @@ val normal = generate { yield(42) } -val extension = generate { +val extension = generate { extensionYield("foo") } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.kt index 0719b4dc4d8..4e2499f3c0f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.kt @@ -7,7 +7,7 @@ class GenericController { fun generate(g: suspend GenericController.(S) -> Unit): S = TODO() -val test1 = generate { +val test1 = generate { yield(4) } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt18292.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt18292.kt index 0c7ea8dfdfe..401f6f548e2 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt18292.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt18292.kt @@ -13,6 +13,6 @@ suspend fun fib(n: Long) = async { when { n < 2 -> n - else -> fib(n - 1).await() + fib(n - 2).await() + else -> fib(n - 1).await() + fib(n - 2).await() } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt index f558997fc5f..12d1442698d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt @@ -20,7 +20,7 @@ fun foo() { builder { 1 } val x = { 1 } - builder(x) + builder(x) builder({1} as (suspend () -> Int)) var i: Int = 1 @@ -31,7 +31,7 @@ fun foo() { genericBuilder { "" } val y = { 1 } - genericBuilder(y) + genericBuilder(y) unitBuilder {} unitBuilder { 1 } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt index 0eb6b427707..557201ce95a 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt @@ -18,7 +18,7 @@ class Controller { suspend fun yieldString(value: String) = suspendCoroutineUninterceptedOrReturn { it.resume(1) it checkType { _>() } - it.resume("") + it.resume("") // We can return anything here, 'suspendCoroutineUninterceptedOrReturn' is not very type-safe // Also we can call resume and then return the value too, but it's still just our problem diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.kt index 5897c51aba7..90d12a0b985 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.kt @@ -35,7 +35,7 @@ fun test() { severalParams("", 89) checkType { _() } // TODO: should we allow somehow to call with passing continuation explicitly? - severalParams("", 89, 6.9) checkType { _() } + severalParams("", 89, 6.9) checkType { _() } "".stringReceiver(1) Any().anyReceiver(1) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.kt index 546b2f4e33a..88e42439738 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.kt @@ -36,7 +36,7 @@ fun test() { severalParams("", 89) checkType { _() } // TODO: should we allow somehow to call with passing continuation explicitly? - severalParams("", 89, 6.9) checkType { _() } - severalParams("", 89, this as Continuation) checkType { _() } + severalParams("", 89, 6.9) checkType { _() } + severalParams("", 89, this as Continuation) checkType { _() } } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/tryCatchLambda.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/tryCatchLambda.kt index 8f60a6c3d23..754b5a833d9 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/tryCatchLambda.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/tryCatchLambda.kt @@ -7,10 +7,10 @@ fun genericBuilder(c: suspend () -> T): T = null!! fun foo() { var result = "" genericBuilder { - try { + try { await("") } catch(e: Exception) { - result = "fail" + result = "fail" } } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/elvisOnJavaList.kt b/compiler/testData/diagnostics/testsWithStdLib/elvisOnJavaList.kt index 863e5f54f9f..1f9cc495860 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/elvisOnJavaList.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/elvisOnJavaList.kt @@ -1,4 +1,3 @@ - // FILE: P.java import java.util.ArrayList; @@ -14,5 +13,5 @@ public class P { fun foo(c: P): MutableList { // Error should be here: see KT-8168 Typechecker fails for platform collection type - return c.getList() ?: listOf() + return c.getList() ?: listOf() } diff --git a/compiler/testData/diagnostics/testsWithStdLib/implicitCastToAny.kt b/compiler/testData/diagnostics/testsWithStdLib/implicitCastToAny.kt index dedba940c8a..c4a9d7390fa 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/implicitCastToAny.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/implicitCastToAny.kt @@ -1,24 +1,23 @@ - var longWords = 0 val smallWords = hashSetOf() fun test1(word: String) = run { if (word.length > 4) { - longWords++ + longWords++ } else { - smallWords.add(word) + smallWords.add(word) } } fun test2(word: String) = run { if (word.length > 4) { - if (word.startsWith("a")) longWords++ + if (word.startsWith("a")) longWords++ } else { - smallWords.add(word) + smallWords.add(word) } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/exactAnnotation.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/exactAnnotation.kt index 2face642281..bf0479c8e92 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/exactAnnotation.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/exactAnnotation.kt @@ -7,5 +7,5 @@ fun test1(l: List) { val i: Int = l.firstTyped() - val s: String = l.firstTyped() + val s: String = l.firstTyped() } diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt26698.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt26698.kt index 2708e1985b4..737823dfc5e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt26698.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt26698.kt @@ -16,6 +16,6 @@ fun <@kotlin.internal.OnlyInputTypes T : Base> fooB(a: T, b: T) {} fun usage(x: CX, y: CY) { foo(x, y) // expected err, got err - fooA(x, y) // expected err, got ok - fooB(x, y) // expected err, got ok + fooA(x, y) // expected err, got ok + fooB(x, y) // expected err, got ok } diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt29307.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt29307.kt index e508f647e6b..372c24663c2 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt29307.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/kt29307.kt @@ -2,7 +2,7 @@ // ISSUE: KT-29307 fun test_1(map: Map) { - val x = map[42] // OK + val x = map[42] // OK } open class A @@ -10,7 +10,7 @@ open class A class B : A() fun test_2(map: Map) { - val x = map[42] + val x = map[42] } fun test_3(m: Map<*, String>) { diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAndLowPriority.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAndLowPriority.kt index e71b07198f4..22b90106560 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAndLowPriority.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAndLowPriority.kt @@ -10,6 +10,6 @@ public fun Iterable.contains1(element: @kotlin.internal.NoInfer T): Boole fun test() { - val a: Boolean = listOf(1).contains1("") + val a: Boolean = listOf(1).contains1("") val b: Boolean = listOf(1).contains1(1) } diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.kt index c7346fdcbd9..b166d665803 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.kt @@ -10,23 +10,23 @@ fun @kotlin.internal.NoInfer T.test2(t1: T): T = t1 fun test3(t1: @kotlin.internal.NoInfer T): T = t1 fun usage() { - test1(1, "312") - 1.test2("") - test3("") + test1(1, "312") + 1.test2("") + test3("") } @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") fun List.contains1(e: @kotlin.internal.NoInfer T): Boolean = true fun test(i: Int?, a: Any, l: List) { - l.contains1(a) - l.contains1("") - l.contains1(i) + l.contains1(a) + l.contains1("") + l.contains1(i) } @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") fun assertEquals1(e1: T, e2: @kotlin.internal.NoInfer T): Boolean = true fun test(s: String) { - assertEquals1(s, 11) + assertEquals1(s, 11) } diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndLowPriority.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndLowPriority.kt index fac3cf0b7ec..abb2457404d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndLowPriority.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndLowPriority.kt @@ -17,7 +17,7 @@ public fun Map.get1(key: Any?): Int = null!! public fun <@kotlin.internal.OnlyInputTypes K, V> Map.get1(key: K): V? = null!! fun test(map: Map) { - val a: Int = listOf(1).contains1("") + val a: Int = listOf(1).contains1("") val b: Boolean = listOf(1).contains1(1) val c: String? = map.get1("") diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndTopLevelCapturedTypes.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndTopLevelCapturedTypes.kt index c513c6303a9..28bb9e6c8b9 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndTopLevelCapturedTypes.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesAndTopLevelCapturedTypes.kt @@ -20,12 +20,12 @@ fun test( invOut.onlyOut(42) invOut.onlyOut(1L) - invOut.onlyOutUB("str") - invStar.onlyOutUB(0) + invOut.onlyOutUB("str") + invStar.onlyOutUB(0) invOut.onlyOutUB(42) invOut.onlyOutUB(1L) - invIn.onlyIn("str") + invIn.onlyIn("str") invIn.onlyIn(42) invIn.onlyIn(1L) } @@ -65,7 +65,7 @@ class Test5 { set(value) { if (value != null) { val a = a - require(a != null && value in a.children) + require(a != null && value in a.children) } field = value } diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCaptured.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCaptured.kt index b08fc6713ec..1fef887c722 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCaptured.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesCaptured.kt @@ -16,7 +16,7 @@ class Out // ------------------------------------------------------- fun test_0(x: Inv2, list: List>) { - list.foo(x) + list.foo(x) } // ------------------------- Inv ------------------------- @@ -34,11 +34,11 @@ fun test_3(x: Inv, list: List>) { } fun test_4(x: Inv, list: List>) { - list.contains1(x) + list.contains1(x) } fun test_5(x: Inv, list: List>) { - list.contains1(x) + list.contains1(x) } fun test_6(x: Inv, list: List>) { diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesUpperBound.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesUpperBound.kt index ec114a88b18..74d2b7ea787 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesUpperBound.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/onlyInputTypesUpperBound.kt @@ -5,7 +5,7 @@ class Inv class Out fun foo(i: Inv, o: Out) { - bar(i, o) + bar(i, o) } fun <@kotlin.internal.OnlyInputTypes K> bar(r: Inv, o: Out): K = TODO() diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/kt27772.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/kt27772.kt index 31e5a326aee..7f1bc332fe2 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/kt27772.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/kt27772.kt @@ -1,6 +1,5 @@ - fun foo(resources: List) { - resources.map { runCatching { it } }.mapNotNull { it.getOrNull() } + resources.map { runCatching { it } }.mapNotNull { it.getOrNull() } } fun bar(resources: List) { diff --git a/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContains.kt b/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContains.kt index e72d8472b34..0bc2a86660d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContains.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContains.kt @@ -28,8 +28,8 @@ fun main() { "" in (hm as Map) "" !in (hm as Map) - 1 in (hm as Map) - 1 !in (hm as Map) + 1 in (hm as Map) + 1 !in (hm as Map) val a = A() "" in a @@ -44,8 +44,8 @@ fun main() { "" in (a as Map) "" !in (a as Map) - 1 in (a as Map) - 1 !in (a as Map) + 1 in (a as Map) + 1 !in (a as Map) val b = B() "" in b @@ -58,8 +58,8 @@ fun main() { "" in (b as Map) "" !in (b as Map) - 1 in (b as Map) - 1 !in (b as Map) + 1 in (b as Map) + 1 !in (b as Map) // Actually, we could've allow calls here because the owner explicitly declared as operator, but semantics is still weird val c = C() @@ -73,6 +73,6 @@ fun main() { "" in (c as Map) "" !in (c as Map) - 1 in (c as Map) - 1 !in (c as Map) + 1 in (c as Map) + 1 !in (c as Map) } diff --git a/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContainsError.kt b/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContainsError.kt index 4fd107f37c6..3574bd1092f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContainsError.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/java/concurrentHashMapContainsError.kt @@ -28,8 +28,8 @@ fun main() { "" in (hm as Map) "" !in (hm as Map) - 1 in (hm as Map) - 1 !in (hm as Map) + 1 in (hm as Map) + 1 !in (hm as Map) val a = A() "" in a @@ -44,8 +44,8 @@ fun main() { "" in (a as Map) "" !in (a as Map) - 1 in (a as Map) - 1 !in (a as Map) + 1 in (a as Map) + 1 !in (a as Map) val b = B() "" in b @@ -58,8 +58,8 @@ fun main() { "" in (b as Map) "" !in (b as Map) - 1 in (b as Map) - 1 !in (b as Map) + 1 in (b as Map) + 1 !in (b as Map) // Actually, we could've allow calls here because the owner explicitly declared as operator, but semantics is still weird val c = C() @@ -73,6 +73,6 @@ fun main() { "" in (c as Map) "" !in (c as Map) - 1 in (c as Map) - 1 !in (c as Map) + 1 in (c as Map) + 1 !in (c as Map) } diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/maps.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/maps.kt index 4a9780e1474..71a5404ed92 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/maps.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/maps.kt @@ -14,9 +14,9 @@ fun hashMapTest() { x.put(bar(), 1) x.put("", 1) - x[null] = 1 - x[bar()] = 1 - x[""] = nullableInt + x[null] = 1 + x[bar()] = 1 + x[""] = nullableInt x[""] = 1 val b1: MutableMap = x @@ -38,9 +38,9 @@ fun treeMapTest() { x.put(bar(), 1) x.put("", 1) - x[null] = 1 - x[bar()] = 1 - x[""] = nullableInt + x[null] = 1 + x[bar()] = 1 + x[""] = nullableInt x[""] = 1 val b1: MutableMap = x @@ -62,9 +62,9 @@ fun concurrentHashMapTest() { x.put(bar(), 1) x.put("", 1) - x[null] = 1 - x[bar()] = 1 - x[""] = nullableInt + x[null] = 1 + x[bar()] = 1 + x[""] = nullableInt x[""] = 1 val b1: MutableMap = x diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableKey.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableKey.kt index 00f4da2a757..5cc6b9d2d5c 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableKey.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableKey.kt @@ -15,7 +15,7 @@ fun hashMapTest() { x[null] = 1 x[bar()] = 1 - x[""] = nullableInt + x[""] = nullableInt x[""] = 1 val b1: MutableMap = x @@ -40,7 +40,7 @@ fun treeMapTest() { x[null] = 1 x[bar()] = 1 - x[""] = nullableInt + x[""] = nullableInt x[""] = 1 val b1: MutableMap = x diff --git a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableValues.kt b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableValues.kt index ad9f38ecdeb..de641bff88f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableValues.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/mapsWithNullableValues.kt @@ -13,8 +13,8 @@ fun hashMapTest() { x.put(bar(), 1) x.put("", 1) - x[null] = 1 - x[bar()] = 1 + x[null] = 1 + x[bar()] = 1 x[""] = nullableInt x[""] = 1 @@ -37,8 +37,8 @@ fun treeMapTest() { x.put(bar(), 1) x.put("", 1) - x[null] = 1 - x[bar()] = 1 + x[null] = 1 + x[bar()] = 1 x[""] = nullableInt x[""] = 1 diff --git a/compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.kt b/compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.kt index 40b4be9fcac..32873e10661 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.kt @@ -1,4 +1,3 @@ - // FILE: J.java import kotlin.jvm.functions.Function1; @@ -13,5 +12,5 @@ fun useJ(j: J) { } fun jj() { - useJ({}) + useJ({}) } diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.kt index ba0999324f0..4efea558376 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.kt @@ -6,15 +6,15 @@ fun main() { val startTimeNanos = System.nanoTime() // the problem sits on the next line: - val pi = 4.0.toDouble() * delta * (1..n).reduce( + val pi = 4.0.toDouble() * delta * (1..n).reduce( {t, i -> val x = (i - 0.5) * delta - t + 1.0 / (1.0 + x * x) + t + 1.0 / (1.0 + x * x) }) // !!! pi has error type here val elapseTime = (System.nanoTime() - startTimeNanos) / 1e9 - println("pi_sequential_reduce $pi $n $elapseTime") + println("pi_sequential_reduce $pi $n $elapseTime") } diff --git a/compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns/unsupportedFeature.kt b/compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns/unsupportedFeature.kt index 569e6094d48..399a8b4a2d4 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns/unsupportedFeature.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns/unsupportedFeature.kt @@ -27,7 +27,7 @@ interface A2 : List { override fun stream(): java.util.stream.Stream = null!! } -class B : Throwable("", null, false, false) +class B : Throwable("", null, false, false) class B1 : RuntimeException() { override fun fillInStackTrace(): Throwable { // 'override' keyword must be prohibited, as it was in 1.0.x diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/assignTry.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/assignTry.kt index 1f7a9ff95af..9fd734b03ee 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/assignTry.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/assignTry.kt @@ -11,8 +11,8 @@ fun test2() { catch (e: ExcA) { null } - catch (e: ExcB) { - 10 + catch (e: ExcB) { + 10 } s.length } diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.kt index f59a6f9bbbb..7e7f86a06c0 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.kt @@ -13,7 +13,7 @@ fun test1(s1: String?) { return } finally { - s.length + s.length } s.length } diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.kt index 4b5243073a0..e132986cb42 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.kt @@ -13,15 +13,15 @@ fun test1() { try { x = null } catch (e: Exception) { - x.length // smartcast shouldn't be allowed (OOME could happen after `x = null`) + x.length // smartcast shouldn't be allowed (OOME could happen after `x = null`) throw e } finally { // smartcast shouldn't be allowed, `x = null` could've happened - x.length + x.length } // smartcast shouldn't be allowed, `x = null` could've happened - x.length + x.length } // With old DFA of try/catch info about unsound smartcasts after try @@ -34,7 +34,7 @@ fun test2() { x = null } catch (e: Exception) { // BAD - x.length + x.length } finally { x.length @@ -50,7 +50,7 @@ fun test3() { } catch (e: Exception) { t2 = null } - t2.not() // wrong smartcast, NPE + t2.not() // wrong smartcast, NPE } } @@ -60,7 +60,7 @@ fun test4() { try { t2 = null } finally { } - t2.not() // wrong smartcast, NPE + t2.not() // wrong smartcast, NPE } } @@ -80,10 +80,10 @@ fun test5() { return } finally { - s1.length - s2.length + s1.length + s2.length } - s1.length + s1.length s2.length } @@ -98,10 +98,10 @@ fun test6(s1: String?, s2: String?) { return } finally { - s.length + s.length requireNotNull(s2) } - s.length - s1.length + s.length + s1.length s2.length } diff --git a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/tryExpression.kt b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/tryExpression.kt index 77b468663c5..a5dd533a84a 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/tryCatch/tryExpression.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/tryCatch/tryExpression.kt @@ -26,9 +26,9 @@ fun test1(): Map = run { } fun test2(): Map = run { - try { + try { emptyMap() } catch (e: ExcA) { - mapOf("" to "") + mapOf("" to "") } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.kt b/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.kt index d8a6e640302..d8ce98a56cf 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.kt @@ -1,4 +1,3 @@ - import java.util.* fun nullable(x: T): T? = x @@ -27,9 +26,9 @@ val test4: Collection = } val test5: Collection = - listOf(1, 2, 3).flatMapTo(LinkedHashSet()) { // TODO + listOf(1, 2, 3).flatMapTo(LinkedHashSet()) { // TODO if (true) listOf(it) else listOf(it) - } + } val test6: Collection = listOf(1, 2, 3).flatMapTo(LinkedHashSet()) { diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/6.kt b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/6.kt index a12fd9717b0..3d79a616f2e 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/6.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/6.kt @@ -36,7 +36,7 @@ fun case_2(a: Any) { fun case_3_1(a: Any) {} fun case_3_2(a: Any) { - case_3_1(a as @Ann(unresolved_reference) String) // OK, no error in IDE and in the compiler + case_3_1(a as @Ann(unresolved_reference) String) // OK, no error in IDE and in the compiler } // TESTCASE NUMBER: 4 diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg/1.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg/1.kt index 826cb90e88d..331c934aa58 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg/1.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg/1.kt @@ -65,8 +65,8 @@ fun case_2(value_1: Int?, value_2: Int?, value_3: Any?) { true -> { println(value_3?.xor(true)) println(value_4) - println(value_1.inv()) - println(value_2.inv()) + println(value_1.inv()) + println(value_2.inv()) } false -> { println(value_4) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/1.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/1.kt index 730bafb89ef..ffed2829937 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/1.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/1.kt @@ -19,13 +19,13 @@ fun case_1(value_1: Any?) { // TESTCASE NUMBER: 2 fun case_2(value_1: Int?) { funWithReturnsAndInvertCondition(value_1 != null) - println(value_1.inc()) + println(value_1.inc()) } // TESTCASE NUMBER: 3 fun case_3(value_1: Int?) { funWithReturns(value_1 == null) - println(value_1.inc()) + println(value_1.inc()) } // TESTCASE NUMBER: 4 @@ -37,13 +37,13 @@ fun case_4(value_1: Any?) { // TESTCASE NUMBER: 5 fun case_5(value_1: String?) { funWithReturnsAndNullCheck(value_1) - println(value_1.length) + println(value_1.length) } // TESTCASE NUMBER: 6 fun case_6(value_1: String?) { funWithReturnsAndNullCheck(value_1) - println(value_1.length) + println(value_1.length) } // TESTCASE NUMBER: 7 @@ -52,7 +52,7 @@ object case_7_object { } fun case_7() { funWithReturns(case_7_object.prop_1 == null) - case_7_object.prop_1.inc() + case_7_object.prop_1.inc() } // TESTCASE NUMBER: 8 diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/2.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/2.kt index 584a04960cf..d89bd31269b 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/2.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/2.kt @@ -162,7 +162,7 @@ class case_10_class { // TESTCASE NUMBER: 11 fun case_11(value_1: Any?, value_2: Any?, value_3: Any?) { funWithReturnsAndInvertCondition(value_1 !is String? || value_2 !is Number && value_3 !is Float) - println(value_1!!.length) + println(value_1!!.length) println(value_2.toByte()) println(value_3.dec()) } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/4.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/4.kt index ac8f7e9f4a5..16862bb8e23 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/4.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/4.kt @@ -159,7 +159,7 @@ fun case_2(value_1: Number) { // TESTCASE NUMBER: 3 fun case_3(value_1: String?, value_2: String?) { value_1.case_3_1() - println(value_1.length) + println(value_1.length) value_2.case_3_2() println(value_2) } @@ -167,7 +167,7 @@ fun case_3(value_1: String?, value_2: String?) { // TESTCASE NUMBER: 4 fun case_4(value_1: String?, value_2: String?) { value_1.case_4_1() - println(value_1.length) + println(value_1.length) value_2.case_4_2() println(value_2) } @@ -190,7 +190,7 @@ fun case_6(value_1: Number) { // TESTCASE NUMBER: 7 fun case_7(value_1: String?, value_2: String?) { - if (value_1.case_7_1()) println(value_1.length) + if (value_1.case_7_1()) println(value_1.length) if (value_2.case_7_2()) println(value_2) if (!(value_2.case_7_3() == null)) println(value_2) if (value_2.case_7_3() == null) println(value_2) @@ -198,7 +198,7 @@ fun case_7(value_1: String?, value_2: String?) { // TESTCASE NUMBER: 8 fun case_8(value_1: String?, value_2: String?) { - when { value_1.case_8_1() -> println(value_1.length) } + when { value_1.case_8_1() -> println(value_1.length) } when { value_2.case_8_2() -> println(value_2) } when { !(value_2.case_8_3() == null) -> println(value_2) } when { value_2.case_8_3() == null -> println(value_2) } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/7.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/7.kt index ba9f89b324e..c60522e991f 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/7.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/7.kt @@ -217,7 +217,7 @@ import contracts.* // TESTCASE NUMBER: 1 fun case_1(value_1: Int?) { case_1_1(value_1) - value_1.inv() + value_1.inv() case_1_2(value_1) value_1.inv() case_1_1(value_1) @@ -245,15 +245,15 @@ fun case_4(value_1: Any?) { case_4_1(value_1) value_1?.toByte() case_4_2(value_1) - value_1.toByte() + value_1.toByte() case_4_3(value_1) - value_1.inv() + value_1.inv() } // TESTCASE NUMBER: 5 fun case_5(value_1: Int?) { if (case_5_1(value_1)) { - value_1.inv() + value_1.inv() if (case_5_2(value_1)) { value_1.inv() case_5_1(value_1) @@ -261,7 +261,7 @@ fun case_5(value_1: Int?) { } } if (!case_5_3(value_1)) { - value_1.inv() + value_1.inv() if (!case_5_4(value_1)) { value_1.inv() case_5_1(value_1) @@ -269,7 +269,7 @@ fun case_5(value_1: Int?) { } } if (case_5_5(value_1) != null) { - value_1.inv() + value_1.inv() if (case_5_6(value_1) != null) { value_1.inv() case_5_1(value_1) @@ -277,7 +277,7 @@ fun case_5(value_1: Int?) { } } if (case_5_7(value_1) == null) { - value_1.inv() + value_1.inv() if (case_5_8(value_1) == null) { value_1.inv() case_5_1(value_1) @@ -339,29 +339,29 @@ fun case_8(value_1: Any?) { if (case_8_1(value_1)) { value_1?.toByte() if (case_8_2(value_1)) { - value_1.toByte() - if (case_8_3(value_1)) value_1.inv() + value_1.toByte() + if (case_8_3(value_1)) value_1.inv() } } if (!case_8_4(value_1)) { value_1?.toByte() if (!case_8_5(value_1)) { - value_1.toByte() - if (!case_8_6(value_1)) value_1.inv() + value_1.toByte() + if (!case_8_6(value_1)) value_1.inv() } } if (case_8_7(value_1) == null) { value_1?.toByte() if (case_8_8(value_1) != null) { - value_1.toByte() - if (case_8_9(value_1) != null) value_1.inv() + value_1.toByte() + if (case_8_9(value_1) != null) value_1.inv() } } if (case_8_10(value_1) != null) { value_1?.toByte() if (case_8_11(value_1) == null) { - value_1.toByte() - if (case_8_12(value_1) == null) value_1.inv() + value_1.toByte() + if (case_8_12(value_1) == null) value_1.inv() } } } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/8.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/8.kt index 34209919d59..ebb360f8c21 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/8.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/8.kt @@ -103,7 +103,7 @@ fun case_4(value_1: Number, value_2: (() -> Unit)?) { } else if (contracts.case_4(value_1, value_2) == false) { println(value_2) } else if (contracts.case_4(value_1, value_2) == null) { - value_2() + value_2() } } @@ -112,10 +112,10 @@ fun case_5(value_1: Number?, value_2: String?) { when (value_2.case_5(value_1)) { true -> { println(value_2.length) - println(value_1.toByte()) + println(value_1.toByte()) } false -> { - println(value_2.length) + println(value_2.length) println(value_1.inv()) } } @@ -125,7 +125,7 @@ fun case_5(value_1: Number?, value_2: String?) { fun case_6(value_1: Number, value_2: String?, value_3: Any?) { when (value_3.case_6(value_1, value_2)) { true -> { - println(value_3.equals("")) + println(value_3.equals("")) println(value_2.length) } false -> { diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/2.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/2.kt index ad0763e7266..a64dc63979e 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/2.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/2.kt @@ -167,6 +167,6 @@ class case_10_class { */ fun case_11(value_1: Any?, value_2: Any?, value_3: Any?) { funWithReturnsAndInvertCondition(value_1 !is String || value_2 !is Number || value_3 !is Any?) - println(value_1!!.length) + println(value_1!!.length) println(value_2?.toByte()) } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/4.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/4.kt index dab0535d913..d5e704bb9bf 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/4.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/4.kt @@ -228,11 +228,11 @@ fun case_7(value_1: String?) { } when { value_1.case_7_10() == null -> println(value_1) - value_1.case_7_10() != null -> println(value_1) + value_1.case_7_10() != null -> println(value_1) } when { value_1.case_7_11() != null -> println(value_1) - value_1.case_7_11() == null -> println(value_1) + value_1.case_7_11() == null -> println(value_1) } } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/8.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/8.kt index 69d44d2df6b..c3cdf80638d 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/8.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/8.kt @@ -89,7 +89,7 @@ fun case_3(value_1: Int?, value_2: Any?) { if (!value_1.case_3(value_1, value_2 is Number?)) { println(value_2?.toByte()) println(value_1.inv()) - } else if (value_1.case_3(value_1, value_2 is Number?)) { + } else if (value_1.case_3(value_1, value_2 is Number?)) { println(value_1) } else { println(value_1.inv()) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/5.kt b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/5.kt index ebee246c2f7..9cb5a454022 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/5.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/5.kt @@ -40,7 +40,7 @@ fun case_4(): Boolean? { // TESTCASE NUMBER: 5 fun case_5(): Boolean? { - contract { returns(null) implies listOf(0) } + contract { returns(null) implies listOf(0) } return null } @@ -67,4 +67,4 @@ fun case_8(): () -> Unit { callsInPlace(case_8(), InvocationKind.EXACTLY_ONCE) } return {} -} \ No newline at end of file +} diff --git a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/noReturnType.kt b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/noReturnType.kt index f37a5d322b7..8b5680bf3e7 100644 --- a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/noReturnType.kt +++ b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/noReturnType.kt @@ -10,7 +10,7 @@ public interface Sam { annotation class SamWithReceiver fun test() { - Sam { a, b -> + Sam { a, b -> System.out.println(a) } @@ -18,4 +18,4 @@ fun test() { val a: String = this System.out.println(a) } -} \ No newline at end of file +} diff --git a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionSimple.kt b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionSimple.kt index 34d2dec022a..e9e10a8cdae 100644 --- a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionSimple.kt +++ b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionSimple.kt @@ -17,6 +17,6 @@ annotation class SamWithReceiver fun test() { val e = Exec() - e.exec { a -> System.out.println(a) } + e.exec { a -> System.out.println(a) } e.exec { System.out.println(this) } -} \ No newline at end of file +} diff --git a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithAnnotation.kt b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithAnnotation.kt index 1c7425fa3af..088d2730513 100644 --- a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithAnnotation.kt +++ b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithAnnotation.kt @@ -10,7 +10,7 @@ public interface Sam { annotation class SamWithReceiver fun test() { - Sam { a, b -> + Sam { a, b -> System.out.println(a) "" } @@ -20,4 +20,4 @@ fun test() { System.out.println(a) "" } -} \ No newline at end of file +} diff --git a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithoutAnnotation.kt b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithoutAnnotation.kt index a2e00d31562..f3b39f00d07 100644 --- a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithoutAnnotation.kt +++ b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithoutAnnotation.kt @@ -12,9 +12,9 @@ fun test() { "" } - Sam { b -> + Sam { b -> val a = this@Sam - System.out.println(a) + System.out.println(a) "" } -} \ No newline at end of file +} diff --git a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameter.kt b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameter.kt index 97615e88e55..928f763f5d6 100644 --- a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameter.kt +++ b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameter.kt @@ -10,8 +10,8 @@ public interface Sam { annotation class SamWithReceiver fun test() { - Sam { a -> - System.out.println(a) + Sam { a -> + System.out.println(a) } Sam { @@ -19,4 +19,4 @@ fun test() { val a2: String = it System.out.println(a) } -} \ No newline at end of file +} diff --git a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameterWithoutAnnotation.kt b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameterWithoutAnnotation.kt index e8e10528104..9d1c651fea8 100644 --- a/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameterWithoutAnnotation.kt +++ b/plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameterWithoutAnnotation.kt @@ -13,6 +13,6 @@ fun test() { Sam { val a = this - System.out.println(a) + System.out.println(a) } -} \ No newline at end of file +} From 924678a00d52371b087dfb9f38fd418223e854ba Mon Sep 17 00:00:00 2001 From: "Denis.Zharkov" Date: Mon, 24 May 2021 13:01:57 +0300 Subject: [PATCH 4/4] FIR: Mark a pack of tests (53) as FIR_IDENTICAL --- ...ctionTypeOverloadWithWrongParameter.fir.kt | 18 ----- ...ersectionTypeOverloadWithWrongParameter.kt | 1 + .../arrayAccessSetTooManyArgs.fir.kt | 10 --- .../arrayAccessSetTooManyArgs.kt | 1 + .../tests/controlFlowAnalysis/kt10805.fir.kt | 12 ---- .../tests/controlFlowAnalysis/kt10805.kt | 1 + .../ifInResultOfLambda.fir.kt | 9 --- .../controlStructures/ifInResultOfLambda.kt | 1 + .../lambdasInExclExclAndElvis.fir.kt | 15 ----- .../lambdasInExclExclAndElvis.kt | 1 + .../whenInResultOfLambda.fir.kt | 18 ----- .../controlStructures/whenInResultOfLambda.kt | 1 + .../inference/extensionProperty.fir.kt | 21 ------ .../inference/extensionProperty.kt | 1 + .../inference/manyIncompleteCandidates.fir.kt | 25 ------- .../inference/manyIncompleteCandidates.kt | 1 + .../inferenceFromReceiver1.fir.kt | 14 ---- .../provideDelegate/inferenceFromReceiver1.kt | 1 + .../LabeledFunctionLiterals.fir.kt | 15 ----- .../LabeledFunctionLiterals.kt | 1 + .../return/NoCommonSystem.fir.kt | 18 ----- .../functionLiterals/return/NoCommonSystem.kt | 1 + .../returnNullWithReturn.fir.kt | 10 --- .../functionLiterals/returnNullWithReturn.kt | 1 + .../generics/nullability/useAsReceiver.fir.kt | 26 ------- .../generics/nullability/useAsReceiver.kt | 1 + .../tests/implicitNestedIntersection.fir.kt | 23 ------- .../tests/implicitNestedIntersection.kt | 1 + .../cannotCompleteResolveAmbiguity.fir.kt | 8 --- .../cannotCompleteResolveAmbiguity.kt | 1 + ...ompleteResolveFunctionLiteralsNoUse.fir.kt | 6 -- ...notCompleteResolveFunctionLiteralsNoUse.kt | 1 + ...otCompleteResolveNoInfoForParameter.fir.kt | 10 --- ...cannotCompleteResolveNoInfoForParameter.kt | 1 + ...CompleteResolveWithFunctionLiterals.fir.kt | 10 --- ...nnotCompleteResolveWithFunctionLiterals.kt | 1 + .../inference/commonSystem/kt32818.fir.kt | 7 -- .../tests/inference/commonSystem/kt32818.kt | 1 + .../inference/conflictingSubstitutions.fir.kt | 19 ------ .../inference/conflictingSubstitutions.kt | 1 + ...RecursiveFlexibleTypesWithWildcards.fir.kt | 31 --------- ...ueToRecursiveFlexibleTypesWithWildcards.kt | 1 + .../fixationOrderForProperConstraints.fir.kt | 6 -- .../fixationOrderForProperConstraints.kt | 1 + ...vokeExtensionWithFunctionalArgument.fir.kt | 28 -------- ...itInvokeExtensionWithFunctionalArgument.kt | 1 + .../lambdaNothingAndExpectedType.fir.kt | 11 --- .../lambdaNothingAndExpectedType.kt | 1 + .../publicApproximation/chainedLambdas.fir.kt | 33 --------- .../publicApproximation/chainedLambdas.kt | 1 + ...CastInLambdaReturnAfterIntersection.fir.kt | 21 ------ ...martCastInLambdaReturnAfterIntersection.kt | 1 + .../twoIntersections.fir.kt | 24 ------- .../publicApproximation/twoIntersections.kt | 1 + .../tests/inference/regressions/kt2838.fir.kt | 18 ----- .../tests/inference/regressions/kt2838.kt | 1 + .../upperBounds/intersectUpperBounds.fir.kt | 34 ---------- .../upperBounds/intersectUpperBounds.kt | 1 + .../j+k/genericConstructor/recursive.fir.kt | 11 --- .../tests/j+k/genericConstructor/recursive.kt | 1 + .../tests/j+k/wrongVarianceInJava.fir.kt | 23 ------- .../tests/j+k/wrongVarianceInJava.kt | 1 + .../diagnostics/tests/overload/kt2493.fir.kt | 19 ------ .../diagnostics/tests/overload/kt2493.kt | 1 + .../platformTypes/rawTypes/samRaw.fir.kt | 27 -------- .../tests/platformTypes/rawTypes/samRaw.kt | 1 + .../tests/regressions/kt11979.fir.kt | 25 ------- .../diagnostics/tests/regressions/kt11979.kt | 1 + .../invoke/errors/ambiguityForInvoke.fir.kt | 10 --- .../invoke/errors/ambiguityForInvoke.kt | 1 + .../extensionValueAsNonExtension.fir.kt | 22 ------ .../invoke/extensionValueAsNonExtension.kt | 1 + .../diagnostics/tests/resolve/kt36264.fir.kt | 18 ----- .../diagnostics/tests/resolve/kt36264.kt | 1 + ...eInferenceForNestedInNoneApplicable.fir.kt | 10 --- ...eTypeInferenceForNestedInNoneApplicable.kt | 1 + .../nestedCalls/twoTypeParameters.fir.kt | 16 ----- .../resolve/nestedCalls/twoTypeParameters.kt | 1 + .../overloadConflicts/genericClash.fir.kt | 19 ------ .../resolve/overloadConflicts/genericClash.kt | 1 + .../resolve/overloadConflicts/kt10640.fir.kt | 9 --- .../resolve/overloadConflicts/kt10640.kt | 1 + .../resolve/overloadConflicts/kt31670.fir.kt | 15 ----- .../resolve/overloadConflicts/kt31670.kt | 1 + .../resolve/overloadConflicts/kt31758.fir.kt | 25 ------- .../resolve/overloadConflicts/kt31758.kt | 1 + ...ionOnNullableContravariantParameter.fir.kt | 23 ------- ...olutionOnNullableContravariantParameter.kt | 1 + .../multipleSuperClasses.fir.kt | 28 -------- .../multipleSuperClasses.kt | 1 + .../tests/smartCasts/elvis/impossible.fir.kt | 40 ----------- .../tests/smartCasts/elvis/impossible.kt | 1 + .../varnotnull/initialization.fir.kt | 7 -- .../smartCasts/varnotnull/initialization.kt | 1 + ...nForOverloadResolutionWithAmbiguity.fir.kt | 18 ----- ...utionForOverloadResolutionWithAmbiguity.kt | 1 + ...eArgumentsInferenceWithNestedCalls2.fir.kt | 40 ----------- ...rTypeArgumentsInferenceWithNestedCalls2.kt | 1 + ...eArgumentsInferenceWithPhantomTypes.fir.kt | 16 ----- ...rTypeArgumentsInferenceWithPhantomTypes.kt | 1 + .../diagnostics/tests/when/kt10809.fir.kt | 67 ------------------- .../diagnostics/tests/when/kt10809.kt | 1 + .../when/whenWithNothingAndLambdas.fir.kt | 50 -------------- .../tests/when/whenWithNothingAndLambdas.kt | 1 + .../coroutines/inference/kt36220.fir.kt | 19 ------ .../coroutines/inference/kt36220.kt | 1 + 106 files changed, 53 insertions(+), 1057 deletions(-) delete mode 100644 compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/implicitNestedIntersection.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/regressions/kt2838.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/overload/kt2493.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/regressions/kt11979.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/resolve/kt36264.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/when/kt10809.fir.kt delete mode 100644 compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.fir.kt delete mode 100644 compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.fir.kt diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.fir.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.fir.kt deleted file mode 100644 index 88eb11bc693..00000000000 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.fir.kt +++ /dev/null @@ -1,18 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_PARAMETER - -import kotlin.reflect.KCallable - -class Foo { - fun installRoute(handler: T) where T : (String) -> Any?, T : KCallable<*> { - } - - fun installRoute(handler: T) where T : () -> Any?, T : KCallable<*> { - } - - fun foo() { - installRoute(::route) - } - -} - -fun route(s: String): Any? = null diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt index 88eb11bc693..6d242f67ddb 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER import kotlin.reflect.KCallable diff --git a/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.fir.kt b/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.fir.kt deleted file mode 100644 index 0625de65475..00000000000 --- a/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.fir.kt +++ /dev/null @@ -1,10 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_PARAMETER - -class A { - operator fun get(x: Int) {} - operator fun set(x: String, value: Int) {} - - fun d(x: Int) { - this["", 1] = 1 - } -} diff --git a/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt b/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt index 0625de65475..eee55287e52 100644 --- a/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt +++ b/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER class A { diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.fir.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.fir.kt deleted file mode 100644 index 3e6469769df..00000000000 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.fir.kt +++ /dev/null @@ -1,12 +0,0 @@ -// AssertionError for nested ifs with lambdas and Nothing as results -// NI_EXPECTED_FILE - -val fn = if (true) { - { true } -} -else if (true) { - { true } -} -else { - null!! -} diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt index a3d63d00812..ee32a69961e 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // AssertionError for nested ifs with lambdas and Nothing as results // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.fir.kt deleted file mode 100644 index 08d46d81584..00000000000 --- a/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.fir.kt +++ /dev/null @@ -1,9 +0,0 @@ -// NI_EXPECTED_FILE - -val test1 = { if (true) 1 else "" } - -val test2 = { { if (true) 1 else "" } } - -val test3: (Boolean) -> Any = { if (it) 1 else "" } - -val test4: (Boolean) -> Any? = { if (it) 1 else "" } diff --git a/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.kt b/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.kt index 08d46d81584..3171883e5ab 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/ifInResultOfLambda.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // NI_EXPECTED_FILE val test1 = { if (true) 1 else "" } diff --git a/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.fir.kt deleted file mode 100644 index 0a7e678e8d7..00000000000 --- a/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.fir.kt +++ /dev/null @@ -1,15 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_EXPRESSION - -fun use(a: Any?) = a - -fun test() { - { }!! - use({ }!!); - - // KT-KT-9070 - { } ?: 1 - use({ 2 } ?: 1); - - 1 ?: { } - use(1 ?: { }) -} diff --git a/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.kt b/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.kt index 0a7e678e8d7..c715da186b0 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/lambdasInExclExclAndElvis.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_EXPRESSION fun use(a: Any?) = a diff --git a/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.fir.kt b/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.fir.kt deleted file mode 100644 index 6091bb406eb..00000000000 --- a/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.fir.kt +++ /dev/null @@ -1,18 +0,0 @@ -// NI_EXPECTED_FILE - -val test1 = { when (true) { true -> 1; else -> "" } } - -val test2 = { { when (true) { true -> 1; else -> "" } } } - -val test3: (Boolean) -> Any = { when (true) { true -> 1; else -> "" } } - -val test4: (Boolean) -> Any? = { when (true) { true -> 1; else -> "" } } - -fun println() {} - -val test5 = { - when (true) { - true -> println() - else -> println() - } -} diff --git a/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.kt b/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.kt index 6091bb406eb..4c4cb5a12e4 100644 --- a/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.kt +++ b/compiler/testData/diagnostics/tests/controlStructures/whenInResultOfLambda.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // NI_EXPECTED_FILE val test1 = { when (true) { true -> 1; else -> "" } } diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.fir.kt deleted file mode 100644 index b2dffbb0989..00000000000 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.fir.kt +++ /dev/null @@ -1,21 +0,0 @@ -package foo - -import kotlin.reflect.KProperty - -open class A { - val B.w: Int by MyProperty() -} - -val B.r: Int by MyProperty() - -val A.e: Int by MyProperty() - -class B { - val A.f: Int by MyProperty() -} - -class MyProperty { - operator fun getValue(thisRef: R, desc: KProperty<*>): T { - throw Exception("$thisRef $desc") - } -} diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.kt index b2dffbb0989..c6817731b4f 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL package foo import kotlin.reflect.KProperty diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.fir.kt deleted file mode 100644 index 1e9bfcf10c3..00000000000 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.fir.kt +++ /dev/null @@ -1,25 +0,0 @@ -// FILE: main.kt -package test - -import first.* -import second.* - -val a12 by A() - -// FILE: first.kt -package first - -import kotlin.reflect.KProperty - -class A - -public operator fun A.getValue(thisRef: Any?, property: KProperty<*>): T = null!! - - -// FILE: second.kt -package second - -import first.A -import kotlin.reflect.KProperty - -public operator fun A.getValue(thisRef: Any?, property: KProperty<*>): T = null!! diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.kt index 1e9bfcf10c3..7bc05b85461 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/manyIncompleteCandidates.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // FILE: main.kt package test diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.fir.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.fir.kt deleted file mode 100644 index 5732f1daa4e..00000000000 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.fir.kt +++ /dev/null @@ -1,14 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_PARAMETER - -object Inference1 { - interface Foo - - fun delegate(): Foo = TODO() - - operator fun Foo.getValue(receiver: T, p: Any?): String = TODO() - - // not working because resulting descriptor for getValue contains type `???` instead of `T` - val test1: String by delegate() - - val test2: String by delegate() -} diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.kt b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.kt index 5732f1daa4e..56641fba50d 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver1.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER object Inference1 { diff --git a/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.fir.kt deleted file mode 100644 index 4bcde82e60e..00000000000 --- a/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.fir.kt +++ /dev/null @@ -1,15 +0,0 @@ -package h - -//traits to make ambiguity with function literal as an argument -interface A -interface B -interface C: A, B - -fun foo(a: A, f: () -> T): T = f() -fun foo(b: B, f: () -> T): T = f() - -fun test(c: C) { - foo(c) f@ { - c!! - } -} diff --git a/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.kt b/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.kt index 4bcde82e60e..dd9e6d237f0 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/LabeledFunctionLiterals.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL package h //traits to make ambiguity with function literal as an argument diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.fir.kt deleted file mode 100644 index e86df822f8d..00000000000 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.fir.kt +++ /dev/null @@ -1,18 +0,0 @@ -fun Iterable.map(transform: (T) -> R): List = null!! -fun listOf(): List = null!! -fun listOf(vararg values: T): List = null!! - -fun commonSystemFailed(a: List) { - a.map { - if (it == 0) return@map listOf(it) - listOf() - } - a.map { - if (it == 0) return@map listOf() - listOf(it) - } - a.map { - if (it == 0) listOf() - else listOf(it) - } -} diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.kt index e86df822f8d..22ce691130d 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/NoCommonSystem.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL fun Iterable.map(transform: (T) -> R): List = null!! fun listOf(): List = null!! fun listOf(vararg values: T): List = null!! diff --git a/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.fir.kt deleted file mode 100644 index 966e4961a6f..00000000000 --- a/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.fir.kt +++ /dev/null @@ -1,10 +0,0 @@ -package m - -interface Element - -fun test(handlers: MapUnit>) { - - handlers.getOrElse("name", l@ { return@l null }) -} - -fun Map.getOrElse(key: K, defaultValue: ()-> V) : V = throw Exception("$key $defaultValue") diff --git a/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.kt b/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.kt index 966e4961a6f..3b37368e9e7 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/returnNullWithReturn.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL package m interface Element diff --git a/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.fir.kt b/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.fir.kt deleted file mode 100644 index 38d6b9d8ad3..00000000000 --- a/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.fir.kt +++ /dev/null @@ -1,26 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_EXPRESSION,-UNUSED_VARIABLE - -fun T.bar1() {} -fun CharSequence?.bar2() {} - -fun T.bar3() {} - -fun foo(x: T) { - x.length - x?.length - - if (1 == 1) { - x!!.length - } - - - x.bar1() - x.bar2() - - x?.bar1() - x?.bar2() - - x.bar3() - - x?.let { it.length } -} diff --git a/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.kt b/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.kt index 38d6b9d8ad3..0528925b598 100644 --- a/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.kt +++ b/compiler/testData/diagnostics/tests/generics/nullability/useAsReceiver.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_EXPRESSION,-UNUSED_VARIABLE fun T.bar1() {} diff --git a/compiler/testData/diagnostics/tests/implicitNestedIntersection.fir.kt b/compiler/testData/diagnostics/tests/implicitNestedIntersection.fir.kt deleted file mode 100644 index 589b23dff7e..00000000000 --- a/compiler/testData/diagnostics/tests/implicitNestedIntersection.fir.kt +++ /dev/null @@ -1,23 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_PARAMETER -// NI_EXPECTED_FILE - -interface In -open class A : In -open class B : In - -fun select(x: T, y: T) = x - -fun foo2() = select(A(), B()) // Type "In" is prohibited in return position - - - -open class C : In -open class D : In -open class E : In -open class F : In -open class G : In -open class H : In - -fun select8(a: S, b: S, c: S, d: S, e: S, f: S, g: S, h: S) = a - -fun foo8() = select8(A(), B(), C(), D(), E(), F(), G(), H()) diff --git a/compiler/testData/diagnostics/tests/implicitNestedIntersection.kt b/compiler/testData/diagnostics/tests/implicitNestedIntersection.kt index 589b23dff7e..0ff3d5970e1 100644 --- a/compiler/testData/diagnostics/tests/implicitNestedIntersection.kt +++ b/compiler/testData/diagnostics/tests/implicitNestedIntersection.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.fir.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.fir.kt deleted file mode 100644 index 1ee62f30377..00000000000 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.fir.kt +++ /dev/null @@ -1,8 +0,0 @@ -package f - -fun g(i: Int, a: Any): List {throw Exception()} -fun g(a: Any, i: Int): Collection {throw Exception()} - -fun test() { - val c: List = g(1, 1) -} diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt index 1ee62f30377..e87f0f53b29 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL package f fun g(i: Int, a: Any): List {throw Exception()} diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.fir.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.fir.kt deleted file mode 100644 index c90d9f55e36..00000000000 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.fir.kt +++ /dev/null @@ -1,6 +0,0 @@ -package f - -fun h(i: Int, a: Any, r: R, f: (Boolean) -> Int) = 1 -fun h(a: Any, i: Int, r: R, f: (Boolean) -> Int) = 1 - -fun test() = h(1, 1, 1, { b -> 42 }) diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.kt index c90d9f55e36..5609e7b262e 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL package f fun h(i: Int, a: Any, r: R, f: (Boolean) -> Int) = 1 diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.fir.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.fir.kt deleted file mode 100644 index c2116e2279b..00000000000 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.fir.kt +++ /dev/null @@ -1,10 +0,0 @@ -package f - -fun f(i: Int, c: Collection): List {throw Exception()} -fun f(a: Any, l: List): Collection {throw Exception()} - -fun test(l: List) { - f(1, emptyList()) -} - -fun emptyList(): List {throw Exception()} diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt index c2116e2279b..f5976fbc9ae 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL package f fun f(i: Int, c: Collection): List {throw Exception()} diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.fir.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.fir.kt deleted file mode 100644 index 4d3a16f128c..00000000000 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.fir.kt +++ /dev/null @@ -1,10 +0,0 @@ -// !DIAGNOSTICS: -CONFLICTING_JVM_DECLARATIONS -package f - -fun h(f: (Boolean) -> R) = 1 -fun h(f: (String) -> R) = 2 - -fun test() = h{ i -> getAnswer() } - -fun getAnswer() = 42 - diff --git a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt index 4f7d4791c23..5900439683f 100644 --- a/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt +++ b/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -CONFLICTING_JVM_DECLARATIONS package f diff --git a/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.fir.kt b/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.fir.kt deleted file mode 100644 index 62771517349..00000000000 --- a/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.fir.kt +++ /dev/null @@ -1,7 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_VARIABLE - -fun nullable(): T? = null - -fun test() { - val value = nullable() ?: nullable() -} diff --git a/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.kt b/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.kt index 62771517349..7e6a49e86f8 100644 --- a/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.kt +++ b/compiler/testData/diagnostics/tests/inference/commonSystem/kt32818.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_VARIABLE fun nullable(): T? = null diff --git a/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.fir.kt b/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.fir.kt deleted file mode 100644 index 7041d68261b..00000000000 --- a/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.fir.kt +++ /dev/null @@ -1,19 +0,0 @@ -package conflictingSubstitutions -//+JDK - -import java.util.* - -fun elemAndList(r: R, t: MutableList): R = r -fun R.elemAndListWithReceiver(r: R, t: MutableList): R = r - -fun test() { - val s = elemAndList(11, list("72")) - - val u = 11.elemAndListWithReceiver(4, list("7")) -} - -fun list(value: T) : ArrayList { - val list = ArrayList() - list.add(value) - return list -} diff --git a/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.kt b/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.kt index 7041d68261b..2d4b3cc2acc 100644 --- a/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.kt +++ b/compiler/testData/diagnostics/tests/inference/conflictingSubstitutions.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL package conflictingSubstitutions //+JDK diff --git a/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.fir.kt b/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.fir.kt deleted file mode 100644 index b83edc82577..00000000000 --- a/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.fir.kt +++ /dev/null @@ -1,31 +0,0 @@ -// SKIP_JAVAC - -// FILE: MySettings.java - -import java.util.Collection - -class MySettings< - SS extends MySettings, - PS extends MyComparableSettings, - L extends MySettingsListener - > -{ - public Collection getLinkedProjectsSettings() { - return null; - } - - public static MySettings getSettings() { - return null; - } -} - -abstract class MyComparableSettings implements Comparable {} -abstract class MySettingsListener {} - -// FILE: test.kt - -fun test() { - val a = MySettings.getSettings() - a.getLinkedProjectsSettings() - a.linkedProjectsSettings -} diff --git a/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.kt b/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.kt index b83edc82577..131e803076d 100644 --- a/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.kt +++ b/compiler/testData/diagnostics/tests/inference/constraints/manyConstraintsDueToRecursiveFlexibleTypesWithWildcards.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // SKIP_JAVAC // FILE: MySettings.java diff --git a/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.fir.kt b/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.fir.kt deleted file mode 100644 index 17dbcf48d09..00000000000 --- a/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.fir.kt +++ /dev/null @@ -1,6 +0,0 @@ -// NI_EXPECTED_FILE -fun foo(f: (Y) -> Z, g: (X) -> Y, x: X): Z = f(g(x)) - -// TODO: Actually, this is a bug and will work when new inference is enabled -// see ([NI] Select variable with proper non-trivial constraint first) for more details -fun test() = foo({ it + 1 }, { it.length }, "") diff --git a/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.kt b/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.kt index 17dbcf48d09..2a6edcd290f 100644 --- a/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.kt +++ b/compiler/testData/diagnostics/tests/inference/fixationOrderForProperConstraints.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // NI_EXPECTED_FILE fun foo(f: (Y) -> Z, g: (X) -> Y, x: X): Z = f(g(x)) diff --git a/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.fir.kt b/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.fir.kt deleted file mode 100644 index 1d68322817f..00000000000 --- a/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.fir.kt +++ /dev/null @@ -1,28 +0,0 @@ -// !CHECK_TYPE -// !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE - -class AbstractSelector -class SelectorFor - -inline operator fun SelectorFor.invoke(f: S.() -> I): AbstractSelector = TODO() - -class State(val p1: Double, val p2: () -> Int, val p3: String?) - -fun test(s: SelectorFor): Double { - val a = s { p1 } - a checkType { _>() } - - val b = s { p2 } - b checkType { _ Int>>()} - - val c = s { p3 } - c checkType { _>() } - - val d = s { } - d checkType { _>() } - - val e = s { return p1 } - e checkType { _>() } - - return null!! -} diff --git a/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.kt b/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.kt index 1d68322817f..107e82baaa3 100644 --- a/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.kt +++ b/compiler/testData/diagnostics/tests/inference/implicitInvokeExtensionWithFunctionalArgument.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.fir.kt b/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.fir.kt deleted file mode 100644 index d4537af5218..00000000000 --- a/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.fir.kt +++ /dev/null @@ -1,11 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE - -fun select2(x: K, y: K): K = TODO() -fun select3(x: K, y: K, z: K): K = TODO() - -fun test2(f: ((String) -> Int)?) { - val a0: ((Int) -> Int)? = select2({ it -> it }, null) - val b0: ((Nothing) -> Unit)? = select2({ it -> it }, null) - - select3({ it.length }, f, null) -} diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt b/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt index d4537af5218..587f53c585c 100644 --- a/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt +++ b/compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE fun select2(x: K, y: K): K = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.fir.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.fir.kt deleted file mode 100644 index f38d9cfd30b..00000000000 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.fir.kt +++ /dev/null @@ -1,33 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_PARAMETER -// NI_EXPECTED_FILE - -interface First { - fun first() {} -} -interface Second -interface Third -interface Fourth - -fun chained1(arg: First) = run { - if (arg !is Second) throw Exception() - arg -}.let { third -> - if (third !is Third) throw Exception() - third -} - -fun chained2(arg: First) = run { - if (arg !is Second) throw Exception() - arg -}.let { third -> - if (third !is Third) throw Exception() - third -}.let { fourth -> - if (fourth !is Fourth) throw Exception() - fourth -} - -fun test(arg: First) { - chained1(arg).first() - chained2(arg).first() -} diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.kt index f38d9cfd30b..0d20db885c4 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/chainedLambdas.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.fir.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.fir.kt deleted file mode 100644 index d0bc3b701a7..00000000000 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.fir.kt +++ /dev/null @@ -1,21 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_PARAMETER -// NI_EXPECTED_FILE - -interface Base { - fun base() {} -} -interface Base2 -interface One : Base, Base2 -interface Two : Base, Base2 - -fun intersectNullable(vararg elements: S): S? = TODO() - -fun smartCastAfterIntersection(a: One, b: Two) = run { - val v = intersectNullable(a, b) - if (v == null) throw Exception() - v -} - -fun test(one: One, two: Two) { - smartCastAfterIntersection(one, two)?.base() -} diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.kt index d0bc3b701a7..46e590ac2eb 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.fir.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.fir.kt deleted file mode 100644 index ec9ec9090d1..00000000000 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.fir.kt +++ /dev/null @@ -1,24 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_PARAMETER -// NI_EXPECTED_FILE - -interface Base { - fun base() {} -} -interface Base2 : Base3 -interface Base3 -interface One : Base, Base2 -interface Two : Base, Base2 -interface Three : Base, Base3 - -object O1 : One -object O2 : Two -object O3 : Three - -fun intersect(vararg elements: S): S = TODO() -fun intersectNoBound(vararg elements: S): S = TODO() - -fun some(a: One, b: Two, c: Three) = intersectNoBound(intersect(a, b), c) - -fun test(arg: Base, arg2: Base) { - some(O1, O2, O3).base() -} diff --git a/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.kt b/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.kt index ec9ec9090d1..d9f5a515b55 100644 --- a/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.kt +++ b/compiler/testData/diagnostics/tests/inference/publicApproximation/twoIntersections.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER // NI_EXPECTED_FILE diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2838.fir.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2838.fir.kt deleted file mode 100644 index 88f5b5daf04..00000000000 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2838.fir.kt +++ /dev/null @@ -1,18 +0,0 @@ -// !DIAGNOSTICS: -UNREACHABLE_CODE -//KT-2838 Type inference failed on passing null as a nullable argument -package a - -fun foo(a: T, b: Map?) = b?.get(a) -fun bar(a: T, b: Map) = b.get(a) - -fun test(a: Int) { - foo(a, null) - bar(a, null) -} -fun test1(a: Int) { - foo(a, throw Exception()) -} - -fun test2(a: Int) { - bar(a, throw Exception()) -} diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2838.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2838.kt index 88f5b5daf04..2a8603e9b62 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2838.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2838.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNREACHABLE_CODE //KT-2838 Type inference failed on passing null as a nullable argument package a diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.fir.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.fir.kt deleted file mode 100644 index 2307f85ecdd..00000000000 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.fir.kt +++ /dev/null @@ -1,34 +0,0 @@ -// !CHECK_TYPE - -package s - -import checkSubtype - -interface In - -interface A -interface B -interface C: A, B - -fun foo(in1: In, in2: In): T = throw Exception("$in1 $in2") - -fun test(inA: In, inB: In, inC: In) { - - foo(inA, inB) - - val r = foo(inA, inC) - checkSubtype(r) - - val c: C = foo(inA, inB) - - use(c) -} - -fun bar(in1: In): T = throw Exception("$in1") - -fun test(inA: In) { - val r = bar(inA) - checkSubtype(r) -} - -fun use(vararg a: Any?) = a diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.kt index 2307f85ecdd..bcb57a2ba35 100644 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.kt +++ b/compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !CHECK_TYPE package s diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.fir.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.fir.kt deleted file mode 100644 index 86affa593ef..00000000000 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.fir.kt +++ /dev/null @@ -1,11 +0,0 @@ -// FILE: C.java - -// See KT-10410 -public class C { - public C(T t) { - } -} - -// FILE: main.kt - -fun foo() = C() diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.kt index 86affa593ef..34464b86d40 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/recursive.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // FILE: C.java // See KT-10410 diff --git a/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.fir.kt b/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.fir.kt deleted file mode 100644 index 70543008bc0..00000000000 --- a/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.fir.kt +++ /dev/null @@ -1,23 +0,0 @@ -// !CHECK_TYPE -// !DIAGNOSTICS: -UNUSED_PARAMETER -// FILE: A.java - -public class A { - public static Out foo() { return null; } - public static In bar() { return null; } -} - -// FILE: main.kt - -class Out { - fun x(): E = null!! -} - -class In { - fun y(f: F) {} -} - -fun test() { - A.foo().x() checkType { _() } - A.bar().y(null) -} diff --git a/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.kt b/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.kt index 70543008bc0..0b1f9a5c515 100644 --- a/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.kt +++ b/compiler/testData/diagnostics/tests/j+k/wrongVarianceInJava.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/overload/kt2493.fir.kt b/compiler/testData/diagnostics/tests/overload/kt2493.fir.kt deleted file mode 100644 index 6e72ebd2b2e..00000000000 --- a/compiler/testData/diagnostics/tests/overload/kt2493.fir.kt +++ /dev/null @@ -1,19 +0,0 @@ -interface A -interface B - -fun R.f() { -} - -fun R.f() { -} - -class AImpl: A -class BImpl: B - -class C: A, B - -fun main() { - AImpl().f() - BImpl().f() - C().f() -} diff --git a/compiler/testData/diagnostics/tests/overload/kt2493.kt b/compiler/testData/diagnostics/tests/overload/kt2493.kt index 6e72ebd2b2e..086c1375dac 100644 --- a/compiler/testData/diagnostics/tests/overload/kt2493.kt +++ b/compiler/testData/diagnostics/tests/overload/kt2493.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL interface A interface B diff --git a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.fir.kt b/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.fir.kt deleted file mode 100644 index c0f9db1c7b8..00000000000 --- a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.fir.kt +++ /dev/null @@ -1,27 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_VARIABLE -// FILE: A.java - -import java.util.List; - -public interface A { - boolean value(T t); -} - -// FILE: B.java - -class B { - void foo(Runnable runnable, A x); - - static A bar() {} -} - -// FILE: main.kt - -fun main() { - fun println() {} - // All parameters in SAM adapter of `foo` have functional types - B().foo({ println() }, B.bar()) - // So you should use SAM constructors when you want to use mix lambdas and Java objects - B().foo(Runnable { println() }, B.bar()) - B().foo({ println() }, { it: Any? -> it == null } ) -} diff --git a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.kt b/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.kt index c0f9db1c7b8..2bd75c1ae34 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/rawTypes/samRaw.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: A.java diff --git a/compiler/testData/diagnostics/tests/regressions/kt11979.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt11979.fir.kt deleted file mode 100644 index 4d137bb0afe..00000000000 --- a/compiler/testData/diagnostics/tests/regressions/kt11979.fir.kt +++ /dev/null @@ -1,25 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_PARAMETER - - -interface Bar { - val t: T -} - -class MyBar(override val t: T) : Bar - -class BarR : Bar { - override val t: BarR get() = this -} - -class Foo>(val f: F) - -fun id(t1: T, t2: T) = t2 - -fun test(foo: Foo<*>, g: Bar<*>) { - id(foo.f, g).t.t -} - -fun main() { - val foo = Foo(BarR()) - test(foo, MyBar(2)) -} diff --git a/compiler/testData/diagnostics/tests/regressions/kt11979.kt b/compiler/testData/diagnostics/tests/regressions/kt11979.kt index 4d137bb0afe..f95083089a0 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt11979.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt11979.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.fir.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.fir.kt deleted file mode 100644 index f7f25bfef65..00000000000 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.fir.kt +++ /dev/null @@ -1,10 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_PARAMETER - -fun Int.invoke(i: Int, a: Any) {} -fun Int.invoke(a: Any, i: Int) {} - -fun foo(i: Int) { - i(1, 1) - - 5(1, 2) -} diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.kt b/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.kt index 58f7aadd45c..4259277142d 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/errors/ambiguityForInvoke.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER fun Int.invoke(i: Int, a: Any) {} diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.fir.kt b/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.fir.kt deleted file mode 100644 index acc7042275d..00000000000 --- a/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.fir.kt +++ /dev/null @@ -1,22 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -class A - -fun test(foo: A.() -> Int, a: A) { - val b: Int = foo(a) - val c: Int = (foo)(a) -} - -class B { - val foo: A.() -> Int = null!! - - init { - val b: Int = foo(A()) - } -} - -fun foo(): A.() -> Int { - val b: Int = foo()(A()) - val c: Int = (foo())(A()) - - return null!! -} diff --git a/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.kt b/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.kt index acc7042275d..d7dae292233 100644 --- a/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.kt +++ b/compiler/testData/diagnostics/tests/resolve/invoke/extensionValueAsNonExtension.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE class A diff --git a/compiler/testData/diagnostics/tests/resolve/kt36264.fir.kt b/compiler/testData/diagnostics/tests/resolve/kt36264.fir.kt deleted file mode 100644 index ab4ec9489f7..00000000000 --- a/compiler/testData/diagnostics/tests/resolve/kt36264.fir.kt +++ /dev/null @@ -1,18 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_PARAMETER - -interface A -class B : A - -val String.ext: A - get() = TODO() - -class Cls { - fun take(arg: B) {} - - fun test(s: String) { - if (s.ext is B) - take(s.ext) - } -} - -fun take(arg: Any) {} diff --git a/compiler/testData/diagnostics/tests/resolve/kt36264.kt b/compiler/testData/diagnostics/tests/resolve/kt36264.kt index ab4ec9489f7..5d95c1a65ad 100644 --- a/compiler/testData/diagnostics/tests/resolve/kt36264.kt +++ b/compiler/testData/diagnostics/tests/resolve/kt36264.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER interface A diff --git a/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.fir.kt b/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.fir.kt deleted file mode 100644 index 0a6893c8b7d..00000000000 --- a/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.fir.kt +++ /dev/null @@ -1,10 +0,0 @@ -package h - -fun foo(i: Int) = i -fun foo(s: String) = s - -fun test() { - foo(emptyList()) -} - -fun emptyList(): List {throw Exception()} diff --git a/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.kt b/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.kt index 0a6893c8b7d..556ddc8351f 100644 --- a/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.kt +++ b/compiler/testData/diagnostics/tests/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL package h fun foo(i: Int) = i diff --git a/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.fir.kt b/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.fir.kt deleted file mode 100644 index 74b8670b80a..00000000000 --- a/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.fir.kt +++ /dev/null @@ -1,16 +0,0 @@ -class ResolutionCandidate - -class ResolutionTask(val candidate: ResolutionCandidate) - -fun List>.bar(t: ResolutionTask) = t - -public class ResolutionTaskHolder { - fun test(candidate: ResolutionCandidate, tasks: MutableList>) { - tasks.bar(ResolutionTask(candidate)) - tasks.add(ResolutionTask(candidate)) - - //todo the problem is the type of ResolutionTask is inferred as ResolutionTask too early - tasks.bar(ResolutionTask(candidate)) - tasks.add(ResolutionTask(candidate)) - } -} diff --git a/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.kt b/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.kt index 74b8670b80a..f38fc6811bf 100644 --- a/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.kt +++ b/compiler/testData/diagnostics/tests/resolve/nestedCalls/twoTypeParameters.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL class ResolutionCandidate class ResolutionTask(val candidate: ResolutionCandidate) diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.fir.kt deleted file mode 100644 index bfcf957196d..00000000000 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.fir.kt +++ /dev/null @@ -1,19 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_PARAMETER - -interface A { - fun foo(x: T) - fun foo(x: String) - - fun baz(x: E, y: String) - fun baz(x: String, y: E) -} - -fun baz(x: E, y: String) {} -fun baz(x: String, y: E) {} - -fun bar(x: A) { - x.foo("") - - x.baz("", "") - baz("", "") -} diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt index bfcf957196d..50b9f09b620 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER interface A { diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.fir.kt deleted file mode 100644 index 520acd5367f..00000000000 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.fir.kt +++ /dev/null @@ -1,9 +0,0 @@ -interface AutoCloseable -interface Closeable : AutoCloseable - -fun T1.myUse(f: (T1) -> R1): R1 = f(this) -fun T2.myUse(f: (T2) -> R2): R2 = f(this) - -fun test1(x: Closeable) = x.myUse { 42 } -fun test2(x: Closeable) = x.myUse { 42 } -fun test3(x: Closeable) = x.myUse { 42 } // TODO KT-10681 diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.kt index 520acd5367f..2d4c741dfb5 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10640.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL interface AutoCloseable interface Closeable : AutoCloseable diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.fir.kt deleted file mode 100644 index bf767d349d9..00000000000 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.fir.kt +++ /dev/null @@ -1,15 +0,0 @@ -// !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_NEW_INFERENCE - -open class A(val value: T) -class B(value: T) : A(value) - -fun A.foo(block: (T?) -> Unit) { - block(value) -} -fun B.foo(block: (T) -> Unit) { - block(value) -} - -fun main() { - B("string").foo { } -} diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.kt index bf767d349d9..6d0e9e7093c 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31670.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_NEW_INFERENCE open class A(val value: T) diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.fir.kt deleted file mode 100644 index 7f99d37bbde..00000000000 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.fir.kt +++ /dev/null @@ -1,25 +0,0 @@ -// !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_NEW_INFERENCE -// !DIAGNOSTICS: -UNUSED_PARAMETER - -// FILE: a.kt - -package a - -enum class A { A1 } - -fun > foo(arg: T.() -> Unit) = 1 - -// FILE: b.kt - -package b - -fun foo(arg: T.() -> Unit) = 2 - -// FILE: test.kt - -import a.* -import b.* - -fun test() { - foo { } -} diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.kt index 7f99d37bbde..df3c692342b 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.fir.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.fir.kt deleted file mode 100644 index a9b8e646898..00000000000 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.fir.kt +++ /dev/null @@ -1,23 +0,0 @@ -// !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_NEW_INFERENCE -// !DIAGNOSTICS: -UNUSED_PARAMETER - -// FILE: a.kt - -package a - -fun foo(block: (T?) -> Unit) {} - -// FILE: b.kt - -package b - -fun foo(block: (K) -> Unit) {} - -// FILE: test.kt - -import a.* -import b.* - -fun main() { - foo { } -} diff --git a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.kt b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.kt index a9b8e646898..1b7425de03c 100644 --- a/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.kt +++ b/compiler/testData/diagnostics/tests/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_NEW_INFERENCE // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.fir.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.fir.kt deleted file mode 100644 index d552ecf374c..00000000000 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.fir.kt +++ /dev/null @@ -1,28 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_VARIABLE - -interface A -interface B - -interface C: A, B -interface D: A, B -interface E: A, B - -fun foo(c: C?, d: D?, e: E?) { - val test1: A? = c ?: d ?: e - - val test2: B? = if (false) if (true) c else d else e - - val test3: A? = when { - true -> c - else -> when { - true -> d - else -> e - } - } - - val test4: B? = when (1) { - 1 -> c - 2 -> d - else -> e - } -} diff --git a/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.kt b/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.kt index d552ecf374c..496900f7cc0 100644 --- a/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.kt +++ b/compiler/testData/diagnostics/tests/resolve/specialConstructions/multipleSuperClasses.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_VARIABLE interface A diff --git a/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.fir.kt deleted file mode 100644 index dd4184904de..00000000000 --- a/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.fir.kt +++ /dev/null @@ -1,40 +0,0 @@ -// !LANGUAGE: +BooleanElvisBoundSmartCasts -// See KT-20752 - -class Unstable { - val first: String? get() = null -} - -class StringList { - fun remove(s: String) = s -} - -fun StringList.remove(s: String?) = s ?: "" - -fun String.isEmpty() = this == "" - -fun foo(list: StringList, arg: Unstable) { - list.remove(arg.first) - if (arg.first?.isEmpty() ?: false) { - // Should be still resolved to extension, without smart cast or smart cast impossible - list.remove(arg.first) - } -} - -class UnstableBoolean { - val first: Boolean? get() = null -} - -class BooleanList { - fun remove(b: Boolean) = b -} - -fun BooleanList.remove(b: Boolean?) = b ?: false - -fun bar(list: BooleanList, arg: UnstableBoolean) { - list.remove(arg.first) - if (arg.first ?: false) { - // Should be still resolved to extension, without smart cast or smart cast impossible - list.remove(arg.first) - } -} diff --git a/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.kt b/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.kt index dd4184904de..4e9851a8869 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/elvis/impossible.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !LANGUAGE: +BooleanElvisBoundSmartCasts // See KT-20752 diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.fir.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.fir.kt deleted file mode 100644 index b1bbc823964..00000000000 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.fir.kt +++ /dev/null @@ -1,7 +0,0 @@ -fun foo() { - var v: String? = "xyz" - // It is possible in principle to provide smart cast here - v.length - v = null - v.length -} diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt index b1bbc823964..d1e300bf188 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL fun foo() { var v: String? = "xyz" // It is possible in principle to provide smart cast here diff --git a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.fir.kt b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.fir.kt deleted file mode 100644 index b381cd916ee..00000000000 --- a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.fir.kt +++ /dev/null @@ -1,18 +0,0 @@ -// FILE: foo.kt -package foo - -fun f(l: List) {} - -// FILE: bar.kt -package bar - -fun f(l: List) {} - -// FILE: main.kt - -import foo.* -import bar.* - -fun test(l: List) { - f(l) -} diff --git a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt index b381cd916ee..7f6a17a0783 100644 --- a/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt +++ b/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // FILE: foo.kt package foo diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.fir.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.fir.kt deleted file mode 100644 index 3f0becf950c..00000000000 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.fir.kt +++ /dev/null @@ -1,40 +0,0 @@ -// NI_EXPECTED_FILE - -interface Ref { - var x: T -} - -class LateInitNumRef() : Ref { - constructor(x: NN) : this() { this.x = x } - - private var xx: NN? = null - - override var x: NN - get() = xx!! - set(value) { - xx = value - } -} - -typealias LateNR = LateInitNumRef - -fun > update(r: R, v: V): R { - r.x = v - return r -} - -val r1 = update(LateInitNumRef(), 1) -val r1a = update(LateNR(), 1) -val r2 = update(LateInitNumRef(1), 1) -val r2a = update(LateNR(1), 1) -val r3 = LateInitNumRef(1) -val r3a = LateNR(1) - -fun test() { - r1.x = r1.x - r1a.x = r1a.x - r2.x = r2.x - r2a.x = r2a.x - r3.x = r3.x - r3a.x = r3a.x -} diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt index 3f0becf950c..94f08e90129 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // NI_EXPECTED_FILE interface Ref { diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.fir.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.fir.kt deleted file mode 100644 index fff41b71315..00000000000 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.fir.kt +++ /dev/null @@ -1,16 +0,0 @@ -// NI_EXPECTED_FILE - -class Foo -class Bar - -class Hr(val a: A, val b: B) - -typealias Test = Hr, Bar> - -val test1 = Test(1, "") -val test2 = Test(1, 2) - - -typealias Bas = Hr, Bar> - -val test3 = Bas(1, 1) diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt index fff41b71315..665157a42e0 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // NI_EXPECTED_FILE class Foo diff --git a/compiler/testData/diagnostics/tests/when/kt10809.fir.kt b/compiler/testData/diagnostics/tests/when/kt10809.fir.kt deleted file mode 100644 index 8003826d118..00000000000 --- a/compiler/testData/diagnostics/tests/when/kt10809.fir.kt +++ /dev/null @@ -1,67 +0,0 @@ -// !DIAGNOSTICS: -UNUSED_PARAMETER -DEBUG_INFO_SMARTCAST -// NI_EXPECTED_FILE -/* - * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) - * - * SPEC VERSION: 0.1-152 - * PRIMARY LINKS: expressions, when-expression -> paragraph 5 -> sentence 1 - * expressions, when-expression -> paragraph 6 -> sentence 1 - * expressions, when-expression -> paragraph 2 -> sentence 1 - * expressions, when-expression -> paragraph 9 -> sentence 1 - * expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 1 - * expressions, conditional-expression -> paragraph 4 -> sentence 1 - * declarations, function-declaration -> paragraph 7 -> sentence 1 - * type-inference, smart-casts, smart-cast-types -> paragraph 9 -> sentence 1 - * type-system, type-kinds, type-parameters -> paragraph 4 -> sentence 1 - * type-inference, local-type-inference -> paragraph 8 -> sentence 1 - * type-inference, local-type-inference -> paragraph 2 -> sentence 1 - */ - -interface Data -interface Item -class FlagData(val value: Boolean) : Data -class ListData(val list: List) : Data - -fun listOf(vararg items: T): List = null!! - -fun test1(o: Any) = when (o) { - is List<*> -> - ListData(listOf()) - is Int -> when { - o < 0 -> - FlagData(true) - else -> - null - } - else -> - null -} - -fun test1x(o: Any): Data? = when (o) { - is List<*> -> - ListData(listOf()) - is Int -> when { - o < 0 -> - FlagData(true) - else -> - null - } - else -> - null -} - -fun test2() = - if (true) - ListData(listOf()) - else - FlagData(true) - -fun test2x(): Data = - if (true) ListData(listOf()) else FlagData(true) - -fun test2y(): Any = - if (true) ListData(listOf()) else FlagData(true) - -fun test2z(): Any = - run { if (true) ListData(listOf()) else FlagData(true) } - diff --git a/compiler/testData/diagnostics/tests/when/kt10809.kt b/compiler/testData/diagnostics/tests/when/kt10809.kt index 29c1db2bf3a..744180850b2 100644 --- a/compiler/testData/diagnostics/tests/when/kt10809.kt +++ b/compiler/testData/diagnostics/tests/when/kt10809.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER -DEBUG_INFO_SMARTCAST // NI_EXPECTED_FILE /* diff --git a/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.fir.kt b/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.fir.kt deleted file mode 100644 index 9ed176bd000..00000000000 --- a/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.fir.kt +++ /dev/null @@ -1,50 +0,0 @@ -// NI_EXPECTED_FILE -/* - * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) - * - * SPEC VERSION: 0.1-152 - * PRIMARY LINKS: expressions, when-expression -> paragraph 2 -> sentence 1 - * expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 1 - * declarations, function-declaration -> paragraph 7 -> sentence 1 - * declarations, function-declaration -> paragraph 7 -> sentence 2 - * declarations, function-declaration -> paragraph 8 -> sentence 1 - * overload-resolution, determining-function-applicability-for-a-specific-call, description -> paragraph 1 -> sentence 3 - */ - -val test1 = when { - true -> { { true } } - else -> TODO() -} - -val test1a: () -> Boolean = when { - true -> { { true } } - else -> TODO() -} - -val test2 = when { - true -> { { true } } - else -> when { - true -> { { true } } - else -> TODO() - } -} - -val test2a: () -> Boolean = when { - true -> { { true } } - else -> when { - true -> { { true } } // TODO - else -> TODO() - } -} - -val test3 = when { - true -> { { true } } - true -> { { true } } - else -> TODO() -} - -val test3a: () -> Boolean = when { - true -> { { true } } - true -> { { true } } - else -> TODO() -} diff --git a/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.kt b/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.kt index 9ed176bd000..fa9d6c6f356 100644 --- a/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.kt +++ b/compiler/testData/diagnostics/tests/when/whenWithNothingAndLambdas.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // NI_EXPECTED_FILE /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.fir.kt deleted file mode 100644 index f6cbc1ccaf2..00000000000 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.fir.kt +++ /dev/null @@ -1,19 +0,0 @@ -// !USE_EXPERIMENTAL: kotlin.RequiresOptIn -// !DIAGNOSTICS: -UNUSED_PARAMETER - -import kotlin.experimental.ExperimentalTypeInference - -class TypeDefinition { - fun parse(parser: (serializedValue: String) -> KotlinType?): Unit = TODO() - fun serialize(parser: (value: KotlinType) -> Any?): Unit = TODO() -} - -@OptIn(ExperimentalTypeInference::class) -fun defineType(@BuilderInference definition: TypeDefinition.() -> Unit): Unit = TODO() - -fun main() { - defineType { - parse { it.toInt() } - serialize { it.toString() } - } -} diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt index f6cbc1ccaf2..52193949bfe 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !USE_EXPERIMENTAL: kotlin.RequiresOptIn // !DIAGNOSTICS: -UNUSED_PARAMETER