[Test] Add regression tests for issues which are fixed in K2
Related issues: KT-10879, KT-18055, KT-20617, KT-23873 KT-25668, KT-31191, KT-33108, KT-41013 KT-51827, KT-53886, KT-56624, KT-58447 KT-58458, KT-58751, KT-58814, KT-60597 KT-62806, KT-63258, KT-63444, KT-65101 KT-65408, KT-65844, KT-66186 ^KT-65926 Fixed
This commit is contained in:
committed by
Space Team
parent
b875ae774e
commit
4b5eac7816
+120
@@ -1605,6 +1605,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/Unresolved.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unresolvedNameInBackticksInReceiver.kt")
|
||||
public void testUnresolvedNameInBackticksInReceiver() {
|
||||
runTest("compiler/testData/diagnostics/tests/unresolvedNameInBackticksInReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("UnusedInDestructuring.kt")
|
||||
public void testUnusedInDestructuring() {
|
||||
@@ -2316,6 +2322,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/onMultiDeclaration.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("OptInWithArrayArgument.kt")
|
||||
public void testOptInWithArrayArgument() {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/OptInWithArrayArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propagationAnnotationToLocalMemberFunction.kt")
|
||||
public void testPropagationAnnotationToLocalMemberFunction() {
|
||||
@@ -2406,6 +2418,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/RecursivelyIncorrectlyAnnotatedParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceOfAnnotatedFunctionInAnnotation.kt")
|
||||
public void testReferenceOfAnnotatedFunctionInAnnotation() {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/referenceOfAnnotatedFunctionInAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("requireKotlin.kt")
|
||||
public void testRequireKotlin() {
|
||||
@@ -6370,6 +6388,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/cast/kt614.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonUselessCastInLambda.kt")
|
||||
public void testNonUselessCastInLambda() {
|
||||
runTest("compiler/testData/diagnostics/tests/cast/nonUselessCastInLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nothingAs.kt")
|
||||
public void testNothingAs() {
|
||||
@@ -6388,6 +6412,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/cast/StableTypeForUselessCast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("usefulCastInGetOperator.kt")
|
||||
public void testUsefulCastInGetOperator() {
|
||||
runTest("compiler/testData/diagnostics/tests/cast/usefulCastInGetOperator.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("UselessSafeCast.kt")
|
||||
public void testUselessSafeCast() {
|
||||
@@ -9296,6 +9326,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/dataClasses/conflictingOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("copyInDataObject.kt")
|
||||
public void testCopyInDataObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/dataClasses/copyInDataObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("copyOfPrivateClass.kt")
|
||||
public void testCopyOfPrivateClass() {
|
||||
@@ -13403,6 +13439,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
public void testSimple() {
|
||||
runTest("compiler/testData/diagnostics/tests/explicitDefinitelyNotNullableViaIntersection/simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("starProjection.kt")
|
||||
public void testStarProjection() {
|
||||
runTest("compiler/testData/diagnostics/tests/explicitDefinitelyNotNullableViaIntersection/starProjection.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -15939,6 +15981,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/imports")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Imports {
|
||||
@Test
|
||||
@TestMetadata("aliasedImportOfEnumConstructor.kt")
|
||||
public void testAliasedImportOfEnumConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/aliasedImportOfEnumConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInImports() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/imports"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
@@ -16718,6 +16766,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/completionOfMultipleLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("complexInferenceOnParentizedExpression.kt")
|
||||
public void testComplexInferenceOnParentizedExpression() {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/complexInferenceOnParentizedExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("conflictingSubstitutions.kt")
|
||||
public void testConflictingSubstitutions() {
|
||||
@@ -20523,6 +20577,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/reportingImprovements/kt42620.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleDiagnosticsInOneCallChain.kt")
|
||||
public void testMultipleDiagnosticsInOneCallChain() {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/reportingImprovements/multipleDiagnosticsInOneCallChain.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NoAmbiguityForDifferentFunctionTypes.kt")
|
||||
public void testNoAmbiguityForDifferentFunctionTypes() {
|
||||
@@ -21946,6 +22006,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/inner/selfAnnotationForClassObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("starProjectedInnerType.kt")
|
||||
public void testStarProjectedInnerType() {
|
||||
runTest("compiler/testData/diagnostics/tests/inner/starProjectedInnerType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traits.kt")
|
||||
public void testTraits() {
|
||||
@@ -24265,6 +24331,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
public void testMultipleLabels() {
|
||||
runTest("compiler/testData/diagnostics/tests/labels/multipleLabels.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("qualifiedThisInExtensionProperty.kt")
|
||||
public void testQualifiedThisInExtensionProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/labels/qualifiedThisInExtensionProperty.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -28664,6 +28736,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/overload/disambiguateByFailedAbstractClassCheck.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("disambiguateByNumberOfLambdaArgument.kt")
|
||||
public void testDisambiguateByNumberOfLambdaArgument() {
|
||||
runTest("compiler/testData/diagnostics/tests/overload/disambiguateByNumberOfLambdaArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("doubleWinsOverFloat.kt")
|
||||
public void testDoubleWinsOverFloat() {
|
||||
@@ -32286,6 +32364,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/anonymousObjectFromTopLevelMember.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callToProtectedOnSmartcast.kt")
|
||||
public void testCallToProtectedOnSmartcast() {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/callToProtectedOnSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReferenceInCST.kt")
|
||||
public void testCallableReferenceInCST() {
|
||||
@@ -36046,6 +36130,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartCastWithOrFalse.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastBetweenClassAndTypeParameter.kt")
|
||||
public void testSmartcastBetweenClassAndTypeParameter() {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartcastBetweenClassAndTypeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastInFriendModule.kt")
|
||||
public void testSmartcastInFriendModule() {
|
||||
@@ -36082,6 +36172,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartcastToStarProjection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("syntheticAccessorOnSmartcastedReceiver.kt")
|
||||
public void testSyntheticAccessorOnSmartcastedReceiver() {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/syntheticAccessorOnSmartcastedReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("thisWithLabel.kt")
|
||||
public void testThisWithLabel() {
|
||||
@@ -37405,6 +37501,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/variables/propertyNotNeeded.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyOfLocalClass.kt")
|
||||
public void testPropertyOfLocalClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/variables/propertyOfLocalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertySubtype.kt")
|
||||
public void testPropertySubtype() {
|
||||
@@ -41967,6 +42069,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/when/withSubjectVariable/subjectVariableInIsPattern.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unnamedSubject.kt")
|
||||
public void testUnnamedSubject() {
|
||||
runTest("compiler/testData/diagnostics/tests/when/withSubjectVariable/unnamedSubject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unsupportedFeature.kt")
|
||||
public void testUnsupportedFeature() {
|
||||
@@ -44027,6 +44135,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/safecallAndReturnsNull.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastOnReceiverInComplexCondition.kt")
|
||||
public void testSmartcastOnReceiverInComplexCondition() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/smartcastOnReceiverInComplexCondition.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("throwsEffect.kt")
|
||||
public void testThrowsEffect() {
|
||||
@@ -44969,6 +45083,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/restrictSuspension/allMembersAllowed.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReference.kt")
|
||||
public void testCallableReference() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/restrictSuspension/callableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensions.kt")
|
||||
public void testExtensions() {
|
||||
|
||||
+18
@@ -22714,6 +22714,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
runTest("compiler/testData/codegen/box/functions/kt873.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaWithTwoContextReceivers.kt")
|
||||
public void testLambdaWithTwoContextReceivers() {
|
||||
runTest("compiler/testData/codegen/box/functions/lambdaWithTwoContextReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localFunction.kt")
|
||||
public void testLocalFunction() {
|
||||
@@ -24020,6 +24026,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
runTest("compiler/testData/codegen/box/inference/referenceToCatchParameterFromLambdaExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("safeCastWithElvis.kt")
|
||||
public void testSafeCastWithElvis() {
|
||||
runTest("compiler/testData/codegen/box/inference/safeCastWithElvis.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("specialCallsWithCallableReferences.kt")
|
||||
public void testSpecialCallsWithCallableReferences() {
|
||||
@@ -36506,6 +36518,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithReferenceAndLambda.kt")
|
||||
public void testIfWithReferenceAndLambda() {
|
||||
runTest("compiler/testData/codegen/box/lambda/ifWithReferenceAndLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambda1.kt")
|
||||
public void testLambda1() {
|
||||
|
||||
+120
@@ -1605,6 +1605,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/Unresolved.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unresolvedNameInBackticksInReceiver.kt")
|
||||
public void testUnresolvedNameInBackticksInReceiver() {
|
||||
runTest("compiler/testData/diagnostics/tests/unresolvedNameInBackticksInReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("UnusedInDestructuring.kt")
|
||||
public void testUnusedInDestructuring() {
|
||||
@@ -2316,6 +2322,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/onMultiDeclaration.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("OptInWithArrayArgument.kt")
|
||||
public void testOptInWithArrayArgument() {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/OptInWithArrayArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propagationAnnotationToLocalMemberFunction.kt")
|
||||
public void testPropagationAnnotationToLocalMemberFunction() {
|
||||
@@ -2406,6 +2418,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/RecursivelyIncorrectlyAnnotatedParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceOfAnnotatedFunctionInAnnotation.kt")
|
||||
public void testReferenceOfAnnotatedFunctionInAnnotation() {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/referenceOfAnnotatedFunctionInAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("requireKotlin.kt")
|
||||
public void testRequireKotlin() {
|
||||
@@ -6370,6 +6388,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/cast/kt614.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonUselessCastInLambda.kt")
|
||||
public void testNonUselessCastInLambda() {
|
||||
runTest("compiler/testData/diagnostics/tests/cast/nonUselessCastInLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nothingAs.kt")
|
||||
public void testNothingAs() {
|
||||
@@ -6388,6 +6412,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/cast/StableTypeForUselessCast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("usefulCastInGetOperator.kt")
|
||||
public void testUsefulCastInGetOperator() {
|
||||
runTest("compiler/testData/diagnostics/tests/cast/usefulCastInGetOperator.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("UselessSafeCast.kt")
|
||||
public void testUselessSafeCast() {
|
||||
@@ -9296,6 +9326,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/dataClasses/conflictingOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("copyInDataObject.kt")
|
||||
public void testCopyInDataObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/dataClasses/copyInDataObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("copyOfPrivateClass.kt")
|
||||
public void testCopyOfPrivateClass() {
|
||||
@@ -13403,6 +13439,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
public void testSimple() {
|
||||
runTest("compiler/testData/diagnostics/tests/explicitDefinitelyNotNullableViaIntersection/simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("starProjection.kt")
|
||||
public void testStarProjection() {
|
||||
runTest("compiler/testData/diagnostics/tests/explicitDefinitelyNotNullableViaIntersection/starProjection.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -15939,6 +15981,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/imports")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Imports {
|
||||
@Test
|
||||
@TestMetadata("aliasedImportOfEnumConstructor.kt")
|
||||
public void testAliasedImportOfEnumConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/aliasedImportOfEnumConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInImports() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/imports"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
@@ -16718,6 +16766,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/inference/completionOfMultipleLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("complexInferenceOnParentizedExpression.kt")
|
||||
public void testComplexInferenceOnParentizedExpression() {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/complexInferenceOnParentizedExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("conflictingSubstitutions.kt")
|
||||
public void testConflictingSubstitutions() {
|
||||
@@ -20523,6 +20577,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/inference/reportingImprovements/kt42620.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleDiagnosticsInOneCallChain.kt")
|
||||
public void testMultipleDiagnosticsInOneCallChain() {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/reportingImprovements/multipleDiagnosticsInOneCallChain.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NoAmbiguityForDifferentFunctionTypes.kt")
|
||||
public void testNoAmbiguityForDifferentFunctionTypes() {
|
||||
@@ -21946,6 +22006,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/inner/selfAnnotationForClassObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("starProjectedInnerType.kt")
|
||||
public void testStarProjectedInnerType() {
|
||||
runTest("compiler/testData/diagnostics/tests/inner/starProjectedInnerType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traits.kt")
|
||||
public void testTraits() {
|
||||
@@ -24265,6 +24331,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
public void testMultipleLabels() {
|
||||
runTest("compiler/testData/diagnostics/tests/labels/multipleLabels.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("qualifiedThisInExtensionProperty.kt")
|
||||
public void testQualifiedThisInExtensionProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/labels/qualifiedThisInExtensionProperty.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -28664,6 +28736,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/overload/disambiguateByFailedAbstractClassCheck.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("disambiguateByNumberOfLambdaArgument.kt")
|
||||
public void testDisambiguateByNumberOfLambdaArgument() {
|
||||
runTest("compiler/testData/diagnostics/tests/overload/disambiguateByNumberOfLambdaArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("doubleWinsOverFloat.kt")
|
||||
public void testDoubleWinsOverFloat() {
|
||||
@@ -32286,6 +32364,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/anonymousObjectFromTopLevelMember.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callToProtectedOnSmartcast.kt")
|
||||
public void testCallToProtectedOnSmartcast() {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/callToProtectedOnSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReferenceInCST.kt")
|
||||
public void testCallableReferenceInCST() {
|
||||
@@ -36046,6 +36130,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartCastWithOrFalse.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastBetweenClassAndTypeParameter.kt")
|
||||
public void testSmartcastBetweenClassAndTypeParameter() {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartcastBetweenClassAndTypeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastInFriendModule.kt")
|
||||
public void testSmartcastInFriendModule() {
|
||||
@@ -36082,6 +36172,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartcastToStarProjection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("syntheticAccessorOnSmartcastedReceiver.kt")
|
||||
public void testSyntheticAccessorOnSmartcastedReceiver() {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/syntheticAccessorOnSmartcastedReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("thisWithLabel.kt")
|
||||
public void testThisWithLabel() {
|
||||
@@ -37405,6 +37501,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/variables/propertyNotNeeded.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyOfLocalClass.kt")
|
||||
public void testPropertyOfLocalClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/variables/propertyOfLocalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertySubtype.kt")
|
||||
public void testPropertySubtype() {
|
||||
@@ -41967,6 +42069,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/when/withSubjectVariable/subjectVariableInIsPattern.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unnamedSubject.kt")
|
||||
public void testUnnamedSubject() {
|
||||
runTest("compiler/testData/diagnostics/tests/when/withSubjectVariable/unnamedSubject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unsupportedFeature.kt")
|
||||
public void testUnsupportedFeature() {
|
||||
@@ -44027,6 +44135,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/safecallAndReturnsNull.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastOnReceiverInComplexCondition.kt")
|
||||
public void testSmartcastOnReceiverInComplexCondition() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/smartcastOnReceiverInComplexCondition.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("throwsEffect.kt")
|
||||
public void testThrowsEffect() {
|
||||
@@ -44969,6 +45083,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/restrictSuspension/allMembersAllowed.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReference.kt")
|
||||
public void testCallableReference() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/restrictSuspension/callableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensions.kt")
|
||||
public void testExtensions() {
|
||||
|
||||
+18
@@ -22714,6 +22714,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
runTest("compiler/testData/codegen/box/functions/kt873.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaWithTwoContextReceivers.kt")
|
||||
public void testLambdaWithTwoContextReceivers() {
|
||||
runTest("compiler/testData/codegen/box/functions/lambdaWithTwoContextReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localFunction.kt")
|
||||
public void testLocalFunction() {
|
||||
@@ -24020,6 +24026,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
runTest("compiler/testData/codegen/box/inference/referenceToCatchParameterFromLambdaExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("safeCastWithElvis.kt")
|
||||
public void testSafeCastWithElvis() {
|
||||
runTest("compiler/testData/codegen/box/inference/safeCastWithElvis.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("specialCallsWithCallableReferences.kt")
|
||||
public void testSpecialCallsWithCallableReferences() {
|
||||
@@ -36506,6 +36518,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithReferenceAndLambda.kt")
|
||||
public void testIfWithReferenceAndLambda() {
|
||||
runTest("compiler/testData/codegen/box/lambda/ifWithReferenceAndLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambda1.kt")
|
||||
public void testLambda1() {
|
||||
|
||||
Reference in New Issue
Block a user