[FIR] Add regression tests for number of issues fixed in K2
List of issues: KT-4113, KT-6822, KT-7389, KT-17817, KT-20223 KT-21463, KT-24503, KT-24737, KT-24779, KT-24901 KT-27261, KT-28668, KT-30497, KT-30756, KT-36958 KT-37365, KT-37490, KT-38288, KT-41038, KT-41721 KT-42136, KT-42169, KT-42449, KT-42715, KT-43553 KT-43603, KT-43846, KT-43936, KT-46288, KT-46301 KT-47373, KT-47484, KT-47490, KT-47495, KT-47750 KT-47815, KT-47870, KT-48975, KT-49024, KT-49045 KT-50134, KT-50160, KT-50550, KT-51045, KT-51143 KT-51796, KT-52262, KT-52424, KT-52860, KT-52934 KT-53086, KT-53494, KT-53671, KT-53752, KT-53819 KT-54478, KT-54518, KT-54931, KT-54990, KT-55138 KT-55379, KT-55555, KT-56243
This commit is contained in:
committed by
Space Team
parent
8ae5213155
commit
aef9b129d2
+356
@@ -536,6 +536,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/reifiedTypeOverload.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnFromDelegatedConstuctor.kt")
|
||||
public void testReturnFromDelegatedConstuctor() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/returnFromDelegatedConstuctor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("sealedClass.kt")
|
||||
public void testSealedClass() throws Exception {
|
||||
@@ -719,6 +725,18 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/annotations"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt43936.kt")
|
||||
public void testKt43936() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/annotations/kt43936.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt54478.kt")
|
||||
public void testKt54478() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/annotations/kt54478.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55286.kt")
|
||||
public void testKt55286() throws Exception {
|
||||
@@ -879,6 +897,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/arguments/noParameterForName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullForDifferentProjections.kt")
|
||||
public void testNullForDifferentProjections() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/arguments/nullForDifferentProjections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("operatorsOverLiterals.kt")
|
||||
public void testOperatorsOverLiterals() throws Exception {
|
||||
@@ -999,6 +1023,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/arraySetWithPlusAssign.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("chooseOverloadByShapeOfLambda.kt")
|
||||
public void testChooseOverloadByShapeOfLambda() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/chooseOverloadByShapeOfLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("companionInvoke.kt")
|
||||
public void testCompanionInvoke() throws Exception {
|
||||
@@ -1083,6 +1113,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/overloadsWithGenericAndGenericLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceToNestedClass.kt")
|
||||
public void testReferenceToNestedClass() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/referenceToNestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("safeCallOnTypeAlias.kt")
|
||||
public void testSafeCallOnTypeAlias() throws Exception {
|
||||
@@ -1095,6 +1131,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/superAny.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendCOnversionForReceiver.kt")
|
||||
public void testSuspendCOnversionForReceiver() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/suspendCOnversionForReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("syntheticPropertiesWrongImplicitReceiver.kt")
|
||||
public void testSyntheticPropertiesWrongImplicitReceiver() throws Exception {
|
||||
@@ -1135,6 +1177,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/cfa/initializationInTry.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53819.kt")
|
||||
public void testKt53819() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/cfa/kt53819.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reassignOfNonLocalProperty_initializedProperties.kt")
|
||||
public void testReassignOfNonLocalProperty_initializedProperties() throws Exception {
|
||||
@@ -1265,6 +1313,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/cfg/lambdaAsReturnOfLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaInIfInTry.kt")
|
||||
public void testLambdaInIfInTry() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/cfg/lambdaInIfInTry.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaReturningObject.kt")
|
||||
public void testLambdaReturningObject() throws Exception {
|
||||
@@ -1359,11 +1413,77 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/checkers"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("complexConflictingProjections.kt")
|
||||
public void testComplexConflictingProjections() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/checkers/complexConflictingProjections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("importAnnotationWithRequiresOptIn.kt")
|
||||
public void testImportAnnotationWithRequiresOptIn() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/checkers/importAnnotationWithRequiresOptIn.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("internalImplicitInvokeFromInlineFun.kt")
|
||||
public void testInternalImplicitInvokeFromInlineFun() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/checkers/internalImplicitInvokeFromInlineFun.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("internalSuperCallFromInlineFun.kt")
|
||||
public void testInternalSuperCallFromInlineFun() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/checkers/internalSuperCallFromInlineFun.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidLhsOfClassLiteral.kt")
|
||||
public void testInvalidLhsOfClassLiteral() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/checkers/invalidLhsOfClassLiteral.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notUselessCast_1.kt")
|
||||
public void testNotUselessCast_1() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/checkers/notUselessCast_1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notUselessCast_2.kt")
|
||||
public void testNotUselessCast_2() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/checkers/notUselessCast_2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notUselessCast_3.kt")
|
||||
public void testNotUselessCast_3() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/checkers/notUselessCast_3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveDependencyBetweenReturnTypeAndSupertype.kt")
|
||||
public void testRecursiveDependencyBetweenReturnTypeAndSupertype() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/checkers/recursiveDependencyBetweenReturnTypeAndSupertype.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("redundantNullCheckOnAsCast.kt")
|
||||
public void testRedundantNullCheckOnAsCast() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/checkers/redundantNullCheckOnAsCast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unsuccessfullCastToStartProjectedType.kt")
|
||||
public void testUnsuccessfullCastToStartProjectedType() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/checkers/unsuccessfullCastToStartProjectedType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("uselessCastLeadsToRecursiveProblem.kt")
|
||||
public void testUselessCastLeadsToRecursiveProblem() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/checkers/uselessCastLeadsToRecursiveProblem.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -1443,6 +1563,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/contracts/contractFromOtherModule_samePackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("contractOnInfixFunction.kt")
|
||||
public void testContractOnInfixFunction() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/contracts/contractOnInfixFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("disabledFeature.kt")
|
||||
public void testDisabledFeature() throws Exception {
|
||||
@@ -1454,6 +1580,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
public void testGenericContract() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/contracts/genericContract.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inPlaceAfterVararg.kt")
|
||||
public void testInPlaceAfterVararg() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/contracts/inPlaceAfterVararg.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -1910,6 +2042,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/exhaustiveness/positive"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotatedBranch.kt")
|
||||
public void testAnnotatedBranch() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness/positive/annotatedBranch.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("exhaustiveWhenAndDNNType.kt")
|
||||
public void testExhaustiveWhenAndDNNType() throws Exception {
|
||||
@@ -1958,6 +2096,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness/positive/exhaustiveness_sealedSubClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("exhaustiveness_smartcastedBoolean.kt")
|
||||
public void testExhaustiveness_smartcastedBoolean() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness/positive/exhaustiveness_smartcastedBoolean.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedIfInLambda.kt")
|
||||
public void testNestedIfInLambda() throws Exception {
|
||||
@@ -1969,6 +2113,18 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
public void testNonExhaustiveWhenWithCoercionToUnit() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness/positive/nonExhaustiveWhenWithCoercionToUnit.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("sameBranchMultipleConditions.kt")
|
||||
public void testSameBranchMultipleConditions() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness/positive/sameBranchMultipleConditions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastToExhaustiveInterface.kt")
|
||||
public void testSmartcastToExhaustiveInterface() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness/positive/smartcastToExhaustiveInterface.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3117,6 +3273,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/intersectionTypesInConstraints.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaCollector.kt")
|
||||
public void testJavaCollector() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/javaCollector.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt40131.kt")
|
||||
public void testKt40131() throws Exception {
|
||||
@@ -3129,6 +3291,24 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/kt41989.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53494.kt")
|
||||
public void testKt53494() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/kt53494.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt54990.kt")
|
||||
public void testKt54990() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/kt54990.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55555.kt")
|
||||
public void testKt55555() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/kt55555.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaAsReturnStatementOfLambda.kt")
|
||||
public void testLambdaAsReturnStatementOfLambda() throws Exception {
|
||||
@@ -3183,6 +3363,18 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/receiverWithCapturedType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveSelfTypes.kt")
|
||||
public void testRecursiveSelfTypes() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/recursiveSelfTypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("selfTypeFromJava.kt")
|
||||
public void testSelfTypeFromJava() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/selfTypeFromJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleCapturedTypes.kt")
|
||||
public void testSimpleCapturedTypes() throws Exception {
|
||||
@@ -3200,6 +3392,22 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
public void testUnitUpperBound() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/unitUpperBound.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/inference/builderInference")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class BuilderInference {
|
||||
@Test
|
||||
public void testAllFilesPresentInBuilderInference() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/inference/builderInference"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifInBuildMap.kt")
|
||||
public void testIfInBuildMap() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/builderInference/ifInBuildMap.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -3459,6 +3667,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/problems"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classLiteralWithExclExcl.kt")
|
||||
public void testClassLiteralWithExclExcl() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/classLiteralWithExclExcl.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compilerPhase.kt")
|
||||
public void testCompilerPhase() throws Exception {
|
||||
@@ -3537,6 +3751,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/innerClassHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidCode.kt")
|
||||
public void testInvalidCode() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/invalidCode.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaClassWithEmptyAnnotationName.kt")
|
||||
public void testJavaClassWithEmptyAnnotationName() throws Exception {
|
||||
@@ -3602,6 +3822,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
public void testTransform() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/transform.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeArgumentsOnThis.kt")
|
||||
public void testTypeArgumentsOnThis() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/typeArgumentsOnThis.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -3613,6 +3839,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/properties"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assignToStarProjectedType.kt")
|
||||
public void testAssignToStarProjectedType() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/properties/assignToStarProjectedType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("getterWithEarlyReturn.kt")
|
||||
public void testGetterWithEarlyReturn() throws Exception {
|
||||
@@ -3705,6 +3937,18 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/references"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ambigousParenthesizedReference.kt")
|
||||
public void testAmbigousParenthesizedReference() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/references/ambigousParenthesizedReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incorrectReferenceOnInnerClassMember.kt")
|
||||
public void testIncorrectReferenceOnInnerClassMember() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/references/incorrectReferenceOnInnerClassMember.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integerLiteralInLhs.kt")
|
||||
public void testIntegerLiteralInLhs() throws Exception {
|
||||
@@ -3729,6 +3973,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/references/referenceToField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceToSyntheticJavaPropertyWithProjection.kt")
|
||||
public void testReferenceToSyntheticJavaPropertyWithProjection() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/references/referenceToSyntheticJavaPropertyWithProjection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
@@ -3740,6 +3990,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
public void testSuperMember() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/references/superMember.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unresovledReferenceInFinally.kt")
|
||||
public void testUnresovledReferenceInFinally() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/references/unresovledReferenceInFinally.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -3821,6 +4077,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/notSamBecauseOfSupertype.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nothingVararg.kt")
|
||||
public void testNothingVararg() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/nothingVararg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("runnable.kt")
|
||||
public void testRunnable() throws Exception {
|
||||
@@ -3979,6 +4241,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/casts.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("contractSafeCall.kt")
|
||||
public void testContractSafeCall() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/contractSafeCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("equalsAndIdentity.kt")
|
||||
public void testEqualsAndIdentity() throws Exception {
|
||||
@@ -4063,6 +4331,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/smartcastInByClause.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastOnFunctionalType.kt")
|
||||
public void testSmartcastOnFunctionalType() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/smartcastOnFunctionalType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastOnImplicitReceiverOfCallableReference.kt")
|
||||
public void testSmartcastOnImplicitReceiverOfCallableReference() throws Exception {
|
||||
@@ -4075,6 +4349,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/smartcastToNothing.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastToStarProjectedType.kt")
|
||||
public void testSmartcastToStarProjectedType() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/smartcastToStarProjectedType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastToTypeParameter.kt")
|
||||
public void testSmartcastToTypeParameter() throws Exception {
|
||||
@@ -4093,12 +4373,24 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/smartcastsFromEquals_sameModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeOfLambdaWithSmartcast.kt")
|
||||
public void testTypeOfLambdaWithSmartcast() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/typeOfLambdaWithSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unstableSmartcastAndAmbiguity.kt")
|
||||
public void testUnstableSmartcastAndAmbiguity() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/unstableSmartcastAndAmbiguity.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valCapturedInLambda.kt")
|
||||
public void testValCapturedInLambda() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/valCapturedInLambda.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -4142,6 +4434,18 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assignToBoundSmartcastedVariable.kt")
|
||||
public void testAssignToBoundSmartcastedVariable() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/assignToBoundSmartcastedVariable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("boundSmartcastWithProjection.kt")
|
||||
public void testBoundSmartcastWithProjection() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcastWithProjection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("boundSmartcasts.kt")
|
||||
public void testBoundSmartcasts() throws Exception {
|
||||
@@ -4176,12 +4480,24 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("earlyReturnInNonExhaustiveWhen.kt")
|
||||
public void testEarlyReturnInNonExhaustiveWhen() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/earlyReturnInNonExhaustiveWhen.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("elvis.kt")
|
||||
public void testElvis() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/elvis.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnFromWhen.kt")
|
||||
public void testReturnFromWhen() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/returnFromWhen.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returns.kt")
|
||||
public void testReturns() throws Exception {
|
||||
@@ -4256,6 +4572,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/dataFlowInfoFromWhileCondition.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("elvisAtTheEndOfLoop.kt")
|
||||
public void testElvisAtTheEndOfLoop() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/elvisAtTheEndOfLoop.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("endlessLoops.kt")
|
||||
public void testEndlessLoops() throws Exception {
|
||||
@@ -4277,6 +4599,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
public void testInvoke() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/problems/invoke.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noSmartcastToNullableNothing.kt")
|
||||
public void testNoSmartcastToNullableNothing() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/problems/noSmartcastToNullableNothing.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -4476,6 +4804,28 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TypeParameters {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/typeParameters"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38288.kt")
|
||||
public void testKt38288() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/typeParameters/kt38288.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("starProjectionForMultipleBounds.kt")
|
||||
public void testStarProjectionForMultipleBounds() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/typeParameters/starProjectionForMultipleBounds.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/types")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -4631,6 +4981,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/visibility/privateAliasInSamePackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("protectedAnnotationClassFromJava.kt")
|
||||
public void testProtectedAnnotationClassFromJava() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/visibility/protectedAnnotationClassFromJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("protectedInCompanion.kt")
|
||||
public void testProtectedInCompanion() throws Exception {
|
||||
|
||||
+6
@@ -12194,6 +12194,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/generics/anonymousObjectSupertypeWithTypeParameterFromFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("approximationOfInProjection.kt")
|
||||
public void testApproximationOfInProjection() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/approximationOfInProjection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("argumentsForT.kt")
|
||||
public void testArgumentsForT() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user