diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java index 7db0737e2c9..6c7def71cb0 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java @@ -19531,84 +19531,168 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("annotatedMemberExtensionPropertyGeneric.kt") + public void testAnnotatedMemberExtensionPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anySuperCall.kt") public void testAnySuperCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anySuperCallGeneric.kt") + public void testAnySuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundCallableReferencePassedToInlineFunction.kt") public void testBoundCallableReferencePassedToInlineFunction() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundCallableReferencePassedToInlineFunctionGeneric.kt") + public void testBoundCallableReferencePassedToInlineFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructor.kt") public void testBoxImplDoesNotExecuteInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt") + public void testBoxImplDoesNotExecuteInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxImplDoesNotExecuteInitBlock.kt") public void testBoxImplDoesNotExecuteInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxImplDoesNotExecuteInitBlockGeneric.kt") + public void testBoxImplDoesNotExecuteInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableForFakeOverride.kt") public void testBoxNullableForFakeOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableForFakeOverrideGeneric.kt") + public void testBoxNullableForFakeOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxResultInlineClassOfConstructorCall.kt") public void testBoxResultInlineClassOfConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxResultInlineClassOfConstructorCallGeneric.kt") + public void testBoxResultInlineClassOfConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSet.kt") public void testBoxUnboxInlineClassesWithOperatorsGetSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSet.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt") + public void testBoxUnboxInlineClassesWithOperatorsGetSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxUnboxOfInlineClassForCapturedVars.kt") public void testBoxUnboxOfInlineClassForCapturedVars() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVars.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxUnboxOfInlineClassForCapturedVarsGeneric.kt") + public void testBoxUnboxOfInlineClassForCapturedVarsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("bridgeForFunctionReturningInlineClass.kt") public void testBridgeForFunctionReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("bridgeForFunctionReturningInlineClassGeneric.kt") + public void testBridgeForFunctionReturningInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("bridgeGenerationWithInlineClassOverAny.kt") public void testBridgeGenerationWithInlineClassOverAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("bridgeGenerationWithInlineClassOverAnyGeneric.kt") + public void testBridgeGenerationWithInlineClassOverAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("bridgesWhenInlineClassImplementsGenericInterface.kt") public void testBridgesWhenInlineClassImplementsGenericInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt") + public void testBridgesWhenInlineClassImplementsGenericInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("callComputablePropertyInsideInlineClass.kt") public void testCallComputablePropertyInsideInlineClass() throws Exception { @@ -19621,114 +19705,228 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflection.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("callSpecializedEqualsViaReflectionGeneric.kt") + public void testCallSpecializedEqualsViaReflectionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflectionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("callSpeciallyOverriddenPropertyOfInlineClass.kt") public void testCallSpeciallyOverriddenPropertyOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt") + public void testCallSpeciallyOverriddenPropertyOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("callableReferencesWithInlineClasses.kt") public void testCallableReferencesWithInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("callableReferencesWithInlineClassesGeneric.kt") + public void testCallableReferencesWithInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("castInsideWhenExpression.kt") public void testCastInsideWhenExpression() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpression.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("castInsideWhenExpressionGeneric.kt") + public void testCastInsideWhenExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctions.kt") public void testCheckBoxUnboxOfArgumentsOnInlinedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt") + public void testCheckBoxUnboxOfArgumentsOnInlinedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingAfterAssertionOperator.kt") public void testCheckBoxingAfterAssertionOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingAfterAssertionOperatorGeneric.kt") + public void testCheckBoxingAfterAssertionOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingForComplexClassHierarchy.kt") public void testCheckBoxingForComplexClassHierarchy() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchy.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingForComplexClassHierarchyGeneric.kt") + public void testCheckBoxingForComplexClassHierarchyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingForNonLocalAndLabeledReturns.kt") public void testCheckBoxingForNonLocalAndLabeledReturns() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturns.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingForNonLocalAndLabeledReturnsGeneric.kt") + public void testCheckBoxingForNonLocalAndLabeledReturnsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingFromReturnTypeForInlineClasses.kt") public void testCheckBoxingFromReturnTypeForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingFromReturnTypeForInlineClassesGeneric.kt") + public void testCheckBoxingFromReturnTypeForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingOnFunctionCalls.kt") public void testCheckBoxingOnFunctionCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCalls.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingOnFunctionCallsGeneric.kt") + public void testCheckBoxingOnFunctionCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingOnLocalVariableAssignments.kt") public void testCheckBoxingOnLocalVariableAssignments() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignments.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingOnLocalVariableAssignmentsGeneric.kt") + public void testCheckBoxingOnLocalVariableAssignmentsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt") public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt") + public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkCallingMembersInsideInlineClass.kt") public void testCheckCallingMembersInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkCallingMembersInsideInlineClassGeneric.kt") + public void testCheckCallingMembersInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkCastToInlineClass.kt") public void testCheckCastToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkCastToInlineClassGeneric.kt") + public void testCheckCastToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkForInstanceOfInlineClass.kt") public void testCheckForInstanceOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkForInstanceOfInlineClassGeneric.kt") + public void testCheckForInstanceOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkLambdaWithInlineClassesInFunctionalType.kt") public void testCheckLambdaWithInlineClassesInFunctionalType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt") + public void testCheckLambdaWithInlineClassesInFunctionalTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkUnboxingResultFromTypeVariable.kt") public void testCheckUnboxingResultFromTypeVariable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkUnboxingResultFromTypeVariableGeneric.kt") + public void testCheckUnboxingResultFromTypeVariableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("classInInlineClassInit.kt") public void testClassInInlineClassInit() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInit.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("classInInlineClassInitGeneric.kt") + public void testClassInInlineClassInitGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("classLiteralOnInlineClass.kt") public void testClassLiteralOnInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("classLiteralOnInlineClassGeneric.kt") + public void testClassLiteralOnInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("computablePropertyInsideInlineClass.kt") public void testComputablePropertyInsideInlineClass() throws Exception { @@ -19741,36 +19939,72 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("conformToComparableAndCallInterfaceMethodGeneric.kt") + public void testConformToComparableAndCallInterfaceMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorCallableReference.kt") public void testConstructorCallableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorCallableReferenceGeneric.kt") + public void testConstructorCallableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorImplVisibility.kt") public void testConstructorImplVisibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorImplVisibilityGeneric.kt") + public void testConstructorImplVisibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("correctBoxingForBranchExpressions.kt") public void testCorrectBoxingForBranchExpressions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("correctBoxingForBranchExpressionsGeneric.kt") + public void testCorrectBoxingForBranchExpressionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("createInlineClassInArgumentPosition.kt") public void testCreateInlineClassInArgumentPosition() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPosition.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("createInlineClassInArgumentPositionGeneric.kt") + public void testCreateInlineClassInArgumentPositionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("crossinlineWithInlineClassInParameter.kt") public void testCrossinlineWithInlineClassInParameter() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameter.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("crossinlineWithInlineClassInParameterGeneric.kt") + public void testCrossinlineWithInlineClassInParameterGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("customIterator.kt") public void testCustomIterator() throws Exception { @@ -19783,126 +20017,252 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultFunctionsFromAnyForInlineClassGeneric.kt") + public void testDefaultFunctionsFromAnyForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") public void testDefaultInterfaceMethodsInInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultInterfaceMethodsInInlineClassGeneric.kt") + public void testDefaultInterfaceMethodsInInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("defaultWithInlineClassArgument.kt") public void testDefaultWithInlineClassArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultWithInlineClassArgumentGeneric.kt") + public void testDefaultWithInlineClassArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("elvisWithInlineClassAndNullConstant.kt") public void testElvisWithInlineClassAndNullConstant() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstant.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("elvisWithInlineClassAndNullConstantGeneric.kt") + public void testElvisWithInlineClassAndNullConstantGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("emptyConstructorForInlineClass.kt") public void testEmptyConstructorForInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("emptyConstructorForInlineClassGeneric.kt") + public void testEmptyConstructorForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksInlineClassNonNull.kt") public void testEqualityChecksInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksInlineClassNonNullGeneric.kt") + public void testEqualityChecksInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksMixedNullability.kt") public void testEqualityChecksMixedNullability() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullability.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksMixedNullabilityGeneric.kt") + public void testEqualityChecksMixedNullabilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNegatedInlineClassNonNull.kt") public void testEqualityChecksNegatedInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNegatedInlineClassNonNullGeneric.kt") + public void testEqualityChecksNegatedInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNegatedNonNull.kt") public void testEqualityChecksNegatedNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNegatedNonNullGeneric.kt") + public void testEqualityChecksNegatedNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNegatedNullable.kt") public void testEqualityChecksNegatedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNegatedNullableGeneric.kt") + public void testEqualityChecksNegatedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNegatedPrimitive.kt") public void testEqualityChecksNegatedPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNegatedPrimitiveGeneric.kt") + public void testEqualityChecksNegatedPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNonNull.kt") public void testEqualityChecksNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNonNullGeneric.kt") + public void testEqualityChecksNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNullable.kt") public void testEqualityChecksNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNullableGeneric.kt") + public void testEqualityChecksNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksPrimitive.kt") public void testEqualityChecksPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksPrimitiveGeneric.kt") + public void testEqualityChecksPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClass.kt") public void testEqualityForBoxesOfNullableValuesOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt") + public void testEqualityForBoxesOfNullableValuesOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsCallsLeftArgument.kt") public void testEqualsCallsLeftArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsCallsLeftArgumentGeneric.kt") + public void testEqualsCallsLeftArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsEvaluationOrderInlineClass.kt") public void testEqualsEvaluationOrderInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsEvaluationOrderInlineClassGeneric.kt") + public void testEqualsEvaluationOrderInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsEvaluationOrderNonNull.kt") public void testEqualsEvaluationOrderNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsEvaluationOrderNonNullGeneric.kt") + public void testEqualsEvaluationOrderNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsEvaluationOrderNullable.kt") public void testEqualsEvaluationOrderNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsEvaluationOrderNullableGeneric.kt") + public void testEqualsEvaluationOrderNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsEvaluationOrderPrimitive.kt") public void testEqualsEvaluationOrderPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsEvaluationOrderPrimitiveGeneric.kt") + public void testEqualsEvaluationOrderPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsOperatorWithGenericCall.kt") public void testEqualsOperatorWithGenericCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsOperatorWithGenericCallGeneric.kt") + public void testEqualsOperatorWithGenericCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("extLambdaInInlineClassFun.kt") public void testExtLambdaInInlineClassFun() throws Exception { @@ -19915,12 +20275,30 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("extLambdaInInlineClassFun2Generic.kt") + public void testExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("extLambdaInInlineClassFunGeneric.kt") + public void testExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("fieldNameClash.kt") public void testFieldNameClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("fieldNameClashGeneric.kt") + public void testFieldNameClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("funInterfaceDoubleSuffux.kt") public void testFunInterfaceDoubleSuffux() throws Exception { @@ -19939,6 +20317,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/functionExpression.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("functionExpressionGeneric.kt") + public void testFunctionExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericInlineClassSynthMembers.kt") public void testGenericInlineClassSynthMembers() throws Exception { @@ -19957,108 +20341,216 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/initBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("initBlockGeneric.kt") + public void testInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassAsLastExpressionInInLambda.kt") public void testInlineClassAsLastExpressionInInLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassAsLastExpressionInInLambdaGeneric.kt") + public void testInlineClassAsLastExpressionInInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt") public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointData() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt") + public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassFieldHandling.kt") public void testInlineClassFieldHandling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandling.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassFieldHandlingGeneric.kt") + public void testInlineClassFieldHandlingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassFunctionInvoke.kt") public void testInlineClassFunctionInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvoke.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassFunctionInvokeGeneric.kt") + public void testInlineClassFunctionInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassImplementsCollection.kt") public void testInlineClassImplementsCollection() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollection.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassImplementsCollectionGeneric.kt") + public void testInlineClassImplementsCollectionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollectionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassInInitBlock.kt") public void testInlineClassInInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassInInitBlockGeneric.kt") + public void testInlineClassInInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassInStringTemplate.kt") public void testInlineClassInStringTemplate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplate.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassInStringTemplateGeneric.kt") + public void testInlineClassInStringTemplateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassPropertyReferenceGetAndSet.kt") public void testInlineClassPropertyReferenceGetAndSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSet.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassPropertyReferenceGetAndSetGeneric.kt") + public void testInlineClassPropertyReferenceGetAndSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassValueCapturedInInlineLambda.kt") public void testInlineClassValueCapturedInInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassValueCapturedInInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassValueCapturedInNonInlineLambda.kt") public void testInlineClassValueCapturedInNonInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassValueCapturedInNonInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInNonInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassValuesInsideStrings.kt") public void testInlineClassValuesInsideStrings() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStrings.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassValuesInsideStringsGeneric.kt") + public void testInlineClassValuesInsideStringsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassWithCustomEquals.kt") public void testInlineClassWithCustomEquals() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassWithCustomEqualsGeneric.kt") + public void testInlineClassWithCustomEqualsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassWithDefaultFunctionsFromAny.kt") public void testInlineClassWithDefaultFunctionsFromAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassWithDefaultFunctionsFromAnyGeneric.kt") + public void testInlineClassWithDefaultFunctionsFromAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassesAsInlineFunParameters.kt") public void testInlineClassesAsInlineFunParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassesAsInlineFunParametersGeneric.kt") + public void testInlineClassesAsInlineFunParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassesCheckCast.kt") public void testInlineClassesCheckCast() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCast.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassesCheckCastGeneric.kt") + public void testInlineClassesCheckCastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassesInInlineLambdaParameters.kt") public void testInlineClassesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassesRefTypesInInlineLambdaParameters.kt") public void testInlineClassesRefTypesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassesRefTypesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesRefTypesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineExtLambdaInInlineClassFun.kt") public void testInlineExtLambdaInInlineClassFun() throws Exception { @@ -20071,18 +20563,42 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineExtLambdaInInlineClassFun2Generic.kt") + public void testInlineExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineExtLambdaInInlineClassFunGeneric.kt") + public void testInlineExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineFunctionInsideInlineClass.kt") public void testInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineFunctionInsideInlineClassGeneric.kt") + public void testInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineInCompanion.kt") public void testInlineInCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineInCompanionGeneric.kt") + public void testInlineInCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineToString.kt") public void testInlineToString() throws Exception { @@ -20095,30 +20611,60 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValues.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("iterateOverArrayOfInlineClassValuesGeneric.kt") + public void testIterateOverArrayOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("iterateOverListOfInlineClassValues.kt") public void testIterateOverListOfInlineClassValues() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("iterateOverListOfInlineClassValuesGeneric.kt") + public void testIterateOverListOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("javaClassIntrinsicOnInlineClasses.kt") public void testJavaClassIntrinsicOnInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("javaClassIntrinsicOnInlineClassesGeneric.kt") + public void testJavaClassIntrinsicOnInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("javaPrimitiveTypeIC.kt") public void testJavaPrimitiveTypeIC() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("javaPrimitiveTypeICGeneric.kt") + public void testJavaPrimitiveTypeICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmFieldInInlineClassCompanion.kt") public void testJvmFieldInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmFieldInInlineClassCompanionGeneric.kt") + public void testJvmFieldInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmInline.kt") public void testJvmInline() throws Exception { @@ -20131,30 +20677,60 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt") + public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmStaticFunInInlineClassCompanion.kt") public void testJvmStaticFunInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmStaticFunInInlineClassCompanionGeneric.kt") + public void testJvmStaticFunInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmStaticPropertyAccessorInInlineClassCompanion.kt") public void testJvmStaticPropertyAccessorInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt") + public void testJvmStaticPropertyAccessorInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmStaticVarInInlineClassCompanion.kt") public void testJvmStaticVarInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmStaticVarInInlineClassCompanionGeneric.kt") + public void testJvmStaticVarInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kclassInAnnotation.kt") public void testKclassInAnnotation() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kclassInAnnotation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kclassInAnnotationGeneric.kt") + public void testKclassInAnnotationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kclassInAnnotationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt25246.kt") public void testKt25246() throws Exception { @@ -20167,6 +20743,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/kt25750.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt25750Generic.kt") + public void testKt25750Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt25771.kt") public void testKt25771() throws Exception { @@ -20203,18 +20785,36 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/kt27096.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096Generic.kt") + public void testKt27096Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_enum.kt") public void testKt27096_enum() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enum.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_enumGeneric.kt") + public void testKt27096_enumGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_functional.kt") public void testKt27096_functional() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functional.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_functionalGeneric.kt") + public void testKt27096_functionalGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_innerClass.kt") public void testKt27096_innerClass() throws Exception { @@ -20227,24 +20827,48 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_nullablePrimitiveGeneric.kt") + public void testKt27096_nullablePrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_nullableReference.kt") public void testKt27096_nullableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_nullableReferenceGeneric.kt") + public void testKt27096_nullableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_primitive.kt") public void testKt27096_primitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_primitiveGeneric.kt") + public void testKt27096_primitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_reference.kt") public void testKt27096_reference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_reference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_referenceGeneric.kt") + public void testKt27096_referenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27113.kt") public void testKt27113() throws Exception { @@ -20257,30 +20881,60 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/kt27113a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27113aGeneric.kt") + public void testKt27113aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27132.kt") public void testKt27132() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27132.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27132Generic.kt") + public void testKt27132Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27140.kt") public void testKt27140() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27140.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27140Generic.kt") + public void testKt27140Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27705.kt") public void testKt27705() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27705.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27705Generic.kt") + public void testKt27705Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27706.kt") public void testKt27706() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27706.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27706Generic.kt") + public void testKt27706Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt28405.kt") public void testKt28405() throws Exception { @@ -20329,6 +20983,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/kt33119.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt33119Generic.kt") + public void testKt33119Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt34268.kt") public void testKt34268() throws Exception { @@ -20347,24 +21007,48 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt37998Generic.kt") + public void testKt37998Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt38680.kt") public void testKt38680() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt38680Generic.kt") + public void testKt38680Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt38680a.kt") public void testKt38680a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt38680aGeneric.kt") + public void testKt38680aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt38680b.kt") public void testKt38680b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt38680bGeneric.kt") + public void testKt38680bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt44141.kt") public void testKt44141() throws Exception { @@ -20377,6 +21061,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt44701_jvmOverloadsGeneric.kt") + public void testKt44701_jvmOverloadsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloadsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt44867.kt") public void testKt44867() throws Exception { @@ -20395,6 +21085,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/kt45084.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt45084Generic.kt") + public void testKt45084Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { @@ -20407,6 +21103,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/kt46554.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt46554Generic.kt") + public void testKt46554Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt47609.kt") public void testKt47609() throws Exception { @@ -20419,12 +21121,24 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/kt47762.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt47762Generic.kt") + public void testKt47762Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt48993.kt") public void testKt48993() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt48993.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt48993Generic.kt") + public void testKt48993Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt48993Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt51157.kt") public void testKt51157() throws Exception { @@ -20437,12 +21151,24 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledDefaultParameterFunctionGeneric.kt") + public void testMangledDefaultParameterFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mangledSuperCalls.kt") public void testMangledSuperCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCalls.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledSuperCallsGeneric.kt") + public void testMangledSuperCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mapInlineClassesWithSuppressWildcardsMode.kt") public void testMapInlineClassesWithSuppressWildcardsMode() throws Exception { @@ -20455,6 +21181,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mappingOfBoxedFlexibleInlineClassTypeGeneric.kt") + public void testMappingOfBoxedFlexibleInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("multifileClass.kt") public void testMultifileClass() throws Exception { @@ -20467,36 +21199,72 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("nestedInlineClassGeneric.kt") + public void testNestedInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("noAssertionsOnInlineClassBasedOnNullableType.kt") public void testNoAssertionsOnInlineClassBasedOnNullableType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt") + public void testNoAssertionsOnInlineClassBasedOnNullableTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("noReturnTypeMangling.kt") public void testNoReturnTypeMangling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("noReturnTypeManglingGeneric.kt") + public void testNoReturnTypeManglingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("noReturnTypeManglingJvmName.kt") public void testNoReturnTypeManglingJvmName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("noReturnTypeManglingJvmNameGeneric.kt") + public void testNoReturnTypeManglingJvmNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableEqeqNonNull.kt") public void testNullableEqeqNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("nullableEqeqNonNullGeneric.kt") + public void testNullableEqeqNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableWrapperEquality.kt") public void testNullableWrapperEquality() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEquality.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("nullableWrapperEqualityGeneric.kt") + public void testNullableWrapperEqualityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideReturnNothing.kt") public void testOverrideReturnNothing() throws Exception { @@ -20509,48 +21277,96 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overridingFunCallingPrivateFunGeneric.kt") + public void testOverridingFunCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("passInlineClassAsVararg.kt") public void testPassInlineClassAsVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("passInlineClassAsVarargGeneric.kt") + public void testPassInlineClassAsVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("passInlineClassWithSpreadOperatorToVarargs.kt") public void testPassInlineClassWithSpreadOperatorToVarargs() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargs.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("passInlineClassWithSpreadOperatorToVarargsGeneric.kt") + public void testPassInlineClassWithSpreadOperatorToVarargsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("privateConstructorFunInterfaceMultiModule.kt") public void testPrivateConstructorFunInterfaceMultiModule() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModule.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("privateConstructorFunInterfaceMultiModuleGeneric.kt") + public void testPrivateConstructorFunInterfaceMultiModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("propertyLoweringOrder.kt") public void testPropertyLoweringOrder() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrder.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("propertyLoweringOrderGeneric.kt") + public void testPropertyLoweringOrderGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("referToPropertyInCompanionObjectOfInlineClass.kt") public void testReferToPropertyInCompanionObjectOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("referToPropertyInCompanionObjectOfInlineClassGeneric.kt") + public void testReferToPropertyInCompanionObjectOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("referToUnderlyingPropertyInsideInlineClass.kt") public void testReferToUnderlyingPropertyInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("referToUnderlyingPropertyInsideInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("referToUnderlyingPropertyOfInlineClass.kt") public void testReferToUnderlyingPropertyOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("referToUnderlyingPropertyOfInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("removeInInlineCollectionOfInlineClassAsInt.kt") public void testRemoveInInlineCollectionOfInlineClassAsInt() throws Exception { @@ -20563,6 +21379,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/result.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("resultGeneric.kt") + public void testResultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/resultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("resultInlining.kt") public void testResultInlining() throws Exception { @@ -20581,72 +21403,144 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBound.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("safeAsOfTypeParameterWithInlineClassBoundGeneric.kt") + public void testSafeAsOfTypeParameterWithInlineClassBoundGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("samWrapperDifferentModule.kt") public void testSamWrapperDifferentModule() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModule.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("samWrapperDifferentModuleGeneric.kt") + public void testSamWrapperDifferentModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("secondaryConstructorWithVararg.kt") public void testSecondaryConstructorWithVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("secondaryConstructorWithVarargGeneric.kt") + public void testSecondaryConstructorWithVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("secondaryConstructorsInsideInlineClass.kt") public void testSecondaryConstructorsInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt") public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("simpleSecondaryConstructor.kt") public void testSimpleSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("simpleSecondaryConstructorGeneric.kt") + public void testSimpleSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("smartCastOnThisOfInlineClassType.kt") public void testSmartCastOnThisOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("smartCastOnThisOfInlineClassTypeGeneric.kt") + public void testSmartCastOnThisOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("stringPlus.kt") public void testStringPlus() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/stringPlus.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("stringPlusGeneric.kt") + public void testStringPlusGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("toStringCallingPrivateFun.kt") public void testToStringCallingPrivateFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("toStringCallingPrivateFunGeneric.kt") + public void testToStringCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("toStringOfUnboxedNullable.kt") public void testToStringOfUnboxedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("toStringOfUnboxedNullableGeneric.kt") + public void testToStringOfUnboxedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("typeChecksForInlineClasses.kt") public void testTypeChecksForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("typeChecksForInlineClassesGeneric.kt") + public void testTypeChecksForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("UIntArraySortExample.kt") public void testUIntArraySortExample() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("UIntArraySortExampleGeneric.kt") + public void testUIntArraySortExampleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("UIntSafeAsInt.kt") public void testUIntSafeAsInt() throws Exception { @@ -20659,24 +21553,48 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvoke.kt") public void testUnboxParameterOfSuspendLambdaBeforeInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvoke.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt") + public void testUnboxParameterOfSuspendLambdaBeforeInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxReceiverOnCallingMethodFromInlineClass.kt") public void testUnboxReceiverOnCallingMethodFromInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxReceiverOnCallingMethodFromInlineClassGeneric.kt") + public void testUnboxReceiverOnCallingMethodFromInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxResultParameterWhenCapturingToCrossinlineLambda.kt") public void testUnboxResultParameterWhenCapturingToCrossinlineLambda() throws Exception { @@ -20689,42 +21607,84 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxValueFromPlatformTypeGeneric.kt") + public void testUnboxValueFromPlatformTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt") public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxValueOfAnyBeforeMethodInvocationGeneric.kt") + public void testUnboxValueOfAnyBeforeMethodInvocationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("useInlineClassesInsideElvisOperator.kt") public void testUseInlineClassesInsideElvisOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("useInlineClassesInsideElvisOperatorGeneric.kt") + public void testUseInlineClassesInsideElvisOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("useInlineFunctionInsideInlineClass.kt") public void testUseInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("useInlineFunctionInsideInlineClassGeneric.kt") + public void testUseInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("useOfInlineClassWithGenericMethodFromJava.kt") public void testUseOfInlineClassWithGenericMethodFromJava() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("useOfInlineClassWithGenericMethodFromJavaGeneric.kt") + public void testUseOfInlineClassWithGenericMethodFromJavaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJavaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("useThisInsideInlineClass.kt") public void testUseThisInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("useThisInsideInlineClassGeneric.kt") + public void testUseThisInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("whenWithSubject.kt") public void testWhenWithSubject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubject.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("whenWithSubjectGeneric.kt") + public void testWhenWithSubjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda") @TestDataPath("$PROJECT_ROOT") @@ -22116,11 +23076,29 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt"); } + @Test + @TestMetadata("defaultArgumentGeneric.kt") + public void testDefaultArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt"); + } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultGeneric.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simple.kt"); } + + @Test + @TestMetadata("simpleGeneric.kt") + public void testSimpleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simpleGeneric.kt"); + } } @Nested @@ -22138,6 +23116,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("argumentICGeneric.kt") + public void testArgumentICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("argumentResult.kt") public void testArgumentResult() throws Exception { @@ -22162,12 +23146,24 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappers.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledSamWrappersGeneric.kt") + public void testMangledSamWrappersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("returnIC.kt") public void testReturnIC() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("returnICGeneric.kt") + public void testReturnICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("returnResult.kt") public void testReturnResult() throws Exception { @@ -22190,60 +23186,120 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anonymousObjectInFunctionWithMangledNameGeneric.kt") + public void testAnonymousObjectInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("extensionFunctionsDoNotClash.kt") public void testExtensionFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("extensionFunctionsDoNotClashGeneric.kt") + public void testExtensionFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("functionsWithDifferentNullabilityDoNotClash.kt") public void testFunctionsWithDifferentNullabilityDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("functionsWithDifferentNullabilityDoNotClashGeneric.kt") + public void testFunctionsWithDifferentNullabilityDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericFunctionsDoNotClash.kt") public void testGenericFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericFunctionsDoNotClashGeneric.kt") + public void testGenericFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericSignatureOfFunctionWithMangledName.kt") public void testGenericSignatureOfFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericSignatureOfFunctionWithMangledNameGeneric.kt") + public void testGenericSignatureOfFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("localClassInFunctionWithMangledName.kt") public void testLocalClassInFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("localClassInFunctionWithMangledNameGeneric.kt") + public void testLocalClassInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mangledFunctionsCanBeOverridden.kt") public void testMangledFunctionsCanBeOverridden() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverridden.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledFunctionsCanBeOverriddenGeneric.kt") + public void testMangledFunctionsCanBeOverriddenGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mangledFunctionsDoNotClash.kt") public void testMangledFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledFunctionsDoNotClashGeneric.kt") + public void testMangledFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mangledFunctionsPresentInStackTrace.kt") public void testMangledFunctionsPresentInStackTrace() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTrace.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledFunctionsPresentInStackTraceGeneric.kt") + public void testMangledFunctionsPresentInStackTraceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mixedSignatureFunctionsDoNotClash.kt") public void testMixedSignatureFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mixedSignatureFunctionsDoNotClashGeneric.kt") + public void testMixedSignatureFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overridingMethodInGenericClass.kt") public void testOverridingMethodInGenericClass() throws Exception { @@ -22256,41 +23312,89 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overridingMethodInGenericClass2Generic.kt") + public void testOverridingMethodInGenericClass2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overridingMethodInGenericClassGeneric.kt") + public void testOverridingMethodInGenericClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("propertySetterWithInlineClassTypeArgument.kt") public void testPropertySetterWithInlineClassTypeArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("propertySetterWithInlineClassTypeArgumentGeneric.kt") + public void testPropertySetterWithInlineClassTypeArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("reflectionForFunctionWithMangledName.kt") public void testReflectionForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("reflectionForFunctionWithMangledNameGeneric.kt") + public void testReflectionForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("reflectionForLocalClassInFunctionWithMangledName.kt") public void testReflectionForLocalClassInFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("reflectionForLocalClassInFunctionWithMangledNameGeneric.kt") + public void testReflectionForLocalClassInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("reflectionForPropertyOfInlineClassType.kt") public void testReflectionForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("reflectionForPropertyOfInlineClassTypeGeneric.kt") + public void testReflectionForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("syntheticAccessorForFunctionWithMangledName.kt") public void testSyntheticAccessorForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("syntheticAccessorForFunctionWithMangledNameGeneric.kt") + public void testSyntheticAccessorForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("syntheticAccessorsForPropertyOfInlineClassType.kt") public void testSyntheticAccessorsForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt") + public void testSyntheticAccessorsForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22330,48 +23434,96 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorReferencedFromOtherFile1Generic.kt") + public void testConstructorReferencedFromOtherFile1Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorReferencedFromOtherFile2.kt") public void testConstructorReferencedFromOtherFile2() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorReferencedFromOtherFile2Generic.kt") + public void testConstructorReferencedFromOtherFile2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorWithDefaultParameters.kt") public void testConstructorWithDefaultParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorWithDefaultParametersGeneric.kt") + public void testConstructorWithDefaultParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatingSuperConstructorCall.kt") public void testDelegatingSuperConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatingSuperConstructorCallGeneric.kt") + public void testDelegatingSuperConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructor.kt") public void testDelegatingSuperConstructorCallInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt") + public void testDelegatingSuperConstructorCallInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatingThisConstructorCall.kt") public void testDelegatingThisConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatingThisConstructorCallGeneric.kt") + public void testDelegatingThisConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("enumClassConstructor.kt") public void testEnumClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("enumClassConstructorGeneric.kt") + public void testEnumClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("innerClassConstructor.kt") public void testInnerClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("innerClassConstructorGeneric.kt") + public void testInnerClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt28855.kt") public void testKt28855() throws Exception { @@ -22384,23 +23536,47 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("primaryConstructorGeneric.kt") + public void testPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("privateConstructor.kt") public void testPrivateConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("privateConstructorGeneric.kt") + public void testPrivateConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("sealedClassConstructor.kt") public void testSealedClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("sealedClassConstructorGeneric.kt") + public void testSealedClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("secondaryConstructor.kt") public void testSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("secondaryConstructorGeneric.kt") + public void testSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22418,17 +23594,35 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineCollectionOfInlineClassGeneric.kt") + public void testInlineCollectionOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineListOfInlineClass.kt") public void testInlineListOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineListOfInlineClassGeneric.kt") + public void testInlineListOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineMapOfInlineClass.kt") public void testInlineMapOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("inlineMapOfInlineClassGeneric.kt") + public void testInlineMapOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22446,18 +23640,36 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("interfaceImplementationByDelegationGeneric.kt") + public void testInterfaceImplementationByDelegationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt38337.kt") public void testKt38337() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt38337Generic.kt") + public void testKt38337Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberExtValDelegationWithInlineClassParameterTypes.kt") public void testMemberExtValDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberExtValDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberExtVarDelegationWithInlineClassParameterTypes.kt") public void testMemberExtVarDelegationWithInlineClassParameterTypes() throws Exception { @@ -22470,23 +23682,47 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("memberFunDelegatedToInlineClassIntGeneric.kt") + public void testMemberFunDelegatedToInlineClassIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberFunDelegatedToInlineClassLong.kt") public void testMemberFunDelegatedToInlineClassLong() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLong.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("memberFunDelegatedToInlineClassLongGeneric.kt") + public void testMemberFunDelegatedToInlineClassLongGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt") public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberFunDelegationWithInlineClassParameterTypes.kt") public void testMemberFunDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("memberFunDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22510,59 +23746,125 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride2Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("complexGenericMethodWithInlineClassOverride3.kt") public void testComplexGenericMethodWithInlineClassOverride3() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride3Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride3Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverrideGeneric.kt") + public void testComplexGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("defaultInterfaceExtensionFunCall.kt") public void testDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultInterfaceExtensionFunCallGeneric.kt") + public void testDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("defaultInterfaceMethodCall.kt") public void testDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultInterfaceMethodCallGeneric.kt") + public void testDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericDefaultInterfaceExtensionFunCall.kt") public void testGenericDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericDefaultInterfaceExtensionFunCallGeneric.kt") + public void testGenericDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericDefaultInterfaceMethodCall.kt") public void testGenericDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericDefaultInterfaceMethodCallGeneric.kt") + public void testGenericDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericInterfaceMethodCall.kt") public void testGenericInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericInterfaceMethodCallGeneric.kt") + public void testGenericInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericMethodWithInlineClassOverride.kt") public void testGenericMethodWithInlineClassOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericMethodWithInlineClassOverrideGeneric.kt") + public void testGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("interfaceSuperCall.kt") public void testInterfaceSuperCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("interfaceSuperCallGeneric.kt") + public void testInterfaceSuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overriddenDefaultInterfaceMethodCall.kt") public void testOverriddenDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("overriddenDefaultInterfaceMethodCallGeneric.kt") + public void testOverriddenDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22614,77 +23916,161 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAll.kt"); } + @Test + @TestMetadata("inlineClassInheritingDefaultMethodAllGeneric.kt") + public void testInlineClassInheritingDefaultMethodAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAllGeneric.kt"); + } + + @Test + @TestMetadata("inlineClassInheritingDefaultMethodGeneric.kt") + public void testInlineClassInheritingDefaultMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodGeneric.kt"); + } + @Test @TestMetadata("javaDefaultMethod.kt") public void testJavaDefaultMethod() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("javaDefaultMethodGeneric.kt") + public void testJavaDefaultMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("javaDefaultMethodOverriddenByKotlin.kt") public void testJavaDefaultMethodOverriddenByKotlin() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlin.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("javaDefaultMethodOverriddenByKotlinGeneric.kt") + public void testJavaDefaultMethodOverriddenByKotlinGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlinGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultAll.kt") public void testJvmDefaultAll() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAll.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultAllGeneric.kt") + public void testJvmDefaultAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultAllPrimaryProperty.kt") public void testJvmDefaultAllPrimaryProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultAllPrimaryPropertyGeneric.kt") + public void testJvmDefaultAllPrimaryPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultAllProperty.kt") public void testJvmDefaultAllProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultAllPropertyGeneric.kt") + public void testJvmDefaultAllPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultEnable.kt") public void testJvmDefaultEnable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultEnableGeneric.kt") + public void testJvmDefaultEnableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultEnablePrimaryProperty.kt") public void testJvmDefaultEnablePrimaryProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePrimaryProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultEnablePrimaryPropertyGeneric.kt") + public void testJvmDefaultEnablePrimaryPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePrimaryPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultEnableProperty.kt") public void testJvmDefaultEnableProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnableProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultEnablePropertyGeneric.kt") + public void testJvmDefaultEnablePropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultGeneric.kt") public void testJvmDefaultGeneric() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultGenericGeneric.kt") + public void testJvmDefaultGenericGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGenericGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultSafeCall.kt") public void testJvmDefaultSafeCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultSafeCallGeneric.kt") + public void testJvmDefaultSafeCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultSmartCast.kt") public void testJvmDefaultSmartCast() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCast.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultSmartCastGeneric.kt") + public void testJvmDefaultSmartCastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCastGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultSuspend.kt") public void testJvmDefaultSuspend() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspend.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("jvmDefaultSuspendGeneric.kt") + public void testJvmDefaultSuspendGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspendGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22702,71 +24088,143 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("captureLocalVarDelegatedToInlineClassGeneric.kt") + public void testCaptureLocalVarDelegatedToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateClassVarToInlineClass.kt") public void testDelegateClassVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateClassVarToInlineClassGeneric.kt") + public void testDelegateClassVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateClassVarToInlineClassWithProvideDelegate.kt") public void testDelegateClassVarToInlineClassWithProvideDelegate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegate.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateClassVarToInlineClassWithProvideDelegateGeneric.kt") + public void testDelegateClassVarToInlineClassWithProvideDelegateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateCompanionVarToInlineClass.kt") public void testDelegateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateCompanionVarToInlineClassGeneric.kt") + public void testDelegateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateJvmStaticCompanionVarToInlineClass.kt") public void testDelegateJvmStaticCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateJvmStaticCompanionVarToInlineClassGeneric.kt") + public void testDelegateJvmStaticCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateLocalVarToInlineClass.kt") public void testDelegateLocalVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateLocalVarToInlineClassGeneric.kt") + public void testDelegateLocalVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateObjectVarToInlineClass.kt") public void testDelegateObjectVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateObjectVarToInlineClassGeneric.kt") + public void testDelegateObjectVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatePrivateCompanionVarToInlineClass.kt") public void testDelegatePrivateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatePrivateCompanionVarToInlineClassGeneric.kt") + public void testDelegatePrivateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateTopLevelVarToInlineClass.kt") public void testDelegateTopLevelVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateTopLevelVarToInlineClassGeneric.kt") + public void testDelegateTopLevelVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatedPropertyOfInlineClassType.kt") public void testDelegatedPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatedPropertyOfInlineClassTypeGeneric.kt") + public void testDelegatedPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27070.kt") public void testKt27070() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27070Generic.kt") + public void testKt27070Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt42933.kt") public void testKt42933() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("kt42933Generic.kt") + public void testKt42933Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22897,12 +24355,24 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -22915,6 +24385,18 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -22927,6 +24409,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -22939,11 +24427,23 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22961,12 +24461,24 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -22979,6 +24491,18 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -22991,6 +24515,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -23003,11 +24533,23 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -23025,12 +24567,24 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -23043,6 +24597,18 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -23055,6 +24621,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -23067,11 +24639,23 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } } } diff --git a/compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt b/compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt new file mode 100644 index 00000000000..35c29cbf008 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt @@ -0,0 +1,122 @@ +// KJS_WITH_FULL_RUNTIME +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(private val value: T) : Comparable> { + companion object { + private const val INT_MASK = 0xffffffffL + } + + fun asInt(): Int = value + + fun toLong(): Long = value.toLong() and INT_MASK + + override fun compareTo(other: UInt): Int = + flip().compareTo(other.flip()) + + override fun toString(): String { + return toLong().toString() + } + + private fun flip(): Int = + value xor Int.MIN_VALUE +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UIntArray(private val intArray: IntArray) { + val size: Int get() = intArray.size + + operator fun get(index: Int): UInt = UInt(intArray[index]) + + operator fun set(index: Int, value: UInt) { + intArray[index] = value.asInt() + } + + operator fun iterator(): UIntIterator = UIntIterator(intArray.iterator()) +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UIntIterator(private val intIterator: IntIterator) : Iterator> { + override fun next(): UInt { + return UInt(intIterator.next()) + } + + override fun hasNext(): Boolean { + return intIterator.hasNext() + } +} + +fun uIntArrayOf(vararg u: Int): UIntArray = UIntArray(u) + +fun UIntArray.swap(i: Int, j: Int) { + this[j] = this[i].also { this[i] = this[j] } +} + +fun UIntArray.quickSort() { + quickSort(0, size - 1) +} + +private fun UIntArray.quickSort(l: Int, r: Int) { + if (l < r) { + val q = partition(l, r) + quickSort(l, q - 1) + quickSort(q + 1, r) + } +} + +private fun UIntArray.partition(l: Int, r: Int): Int { + val m = this[(l + r) / 2] + var i = l + var j = r + while (i <= j) { + while (this[i] < m) i++ + while (this[j] > m) j-- + if (i <= j) + swap(i++, j--) + } + + return i +} + +fun check(array: UIntArray, resultAsInt: String, resultAsInner: String) { + val actualAsInt = StringBuilder() + val actualAsInner = StringBuilder() + for (n in array) { + actualAsInt.append("${n.asInt()} ") + actualAsInner.append(n.toString() + " ") + } + + if (actualAsInt.toString() != resultAsInt) { + throw IllegalStateException("wrong result as int (actual): $actualAsInt ; expected: $resultAsInt") + } + + if (actualAsInner.toString() != resultAsInner) { + throw IllegalStateException("wrong result as inner (actual): $actualAsInner ; expected: $resultAsInner") + } +} + +fun box(): String { + val a1 = uIntArrayOf(1, 2, 3) + a1.quickSort() + + check(a1, "1 2 3 ", "1 2 3 ") + + val a2 = uIntArrayOf(-1) + a2.quickSort() + + check(a2, "-1 ", "4294967295 ") + + val a3 = uIntArrayOf(-1, 1, 0) + a3.quickSort() + + check(a3, "0 1 -1 ", "0 1 4294967295 ") + + val a4 = uIntArrayOf(-1, Int.MAX_VALUE) + a4.quickSort() + + check(a4, "${Int.MAX_VALUE} -1 ", "2147483647 4294967295 ") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt new file mode 100644 index 00000000000..033fcda3d6c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt @@ -0,0 +1,20 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +@Target(AnnotationTarget.PROPERTY) +annotation class Anno + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val s: T) + +class A { + @Anno + val Z.r: String get() = s +} + +fun box(): String { + with(A()) { + return Z("OK").r + } +} diff --git a/compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt b/compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt new file mode 100644 index 00000000000..97071326387 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// IGNORE_BACKEND: JVM +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val x: T) { + fun f(): Int = super.hashCode() +} + +fun box(): String { + val a = A(1).f() + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt new file mode 100644 index 00000000000..bb006152f96 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt @@ -0,0 +1,70 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcInt(val i: T) { + fun simple(): String = i.toString() +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcLong(val l: T) { + fun simple(): String = l.toString() +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcAny(val a: T) { + fun simple(): String = a?.toString() ?: "null" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcOverIc>(val o: T) { + fun simple(): String = o.toString() +} + +fun testUnboxed(i: IcInt, l: IcLong, a: IcAny, o: IcOverIc>): String = + foo(i::simple) + foo(l::simple) + foo(a::simple) + foo(o::simple) + +fun testBoxed(i: IcInt?, l: IcLong?, a: IcAny?, o: IcOverIc>?): String = + foo(i!!::simple) + foo(l!!::simple) + foo(a!!::simple) + foo(o!!::simple) + +fun testLocalVars(): String { + val i = IcInt(0) + val l = IcLong(1L) + val a = IcAny(2) + val o = IcOverIc(IcLong(3)) + + return foo(i::simple) + foo(l::simple) + foo(a::simple) + foo(o::simple) +} + +val ip = IcInt(1) +val lp = IcLong(2L) +val ap = IcAny(3) +val op = IcOverIc(IcLong(4)) + +fun testGlobalProperties(): String = + foo(ip::simple) + foo(lp::simple) + foo(ap::simple) + foo(op::simple) + +fun testCapturedVars(): String { + return IcInt(2).let { foo(it::simple) } + + IcLong(3).let { foo(it::simple) } + + IcAny(4).let { foo(it::simple) } + + IcOverIc(IcLong(5)).let { foo(it::simple) } +} + +inline fun foo(init: () -> String): String = init() + +fun box(): String { + val i = IcInt(3) + val l = IcLong(4) + val a = IcAny(5) + val o = IcOverIc(IcLong(6)) + + if (testUnboxed(i, l, a, o) != "345IcLong(l=6)") return "Fail 1 ${testUnboxed(i, l, a, o)}" + if (testBoxed(i, l, a, o) != "345IcLong(l=6)") return "Fail 2" + if (testLocalVars() != "012IcLong(l=3)") return "Fail 3" + if (testGlobalProperties() != "123IcLong(l=4)") return "Fail 4" + if (testCapturedVars() != "234IcLong(l=5)") return "Fail 5 ${testCapturedVars()}" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt new file mode 100644 index 00000000000..8efb711c2fd --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC private constructor(val i: T) { + @Suppress("SECONDARY_CONSTRUCTOR_WITH_BODY_INSIDE_VALUE_CLASS") + constructor() : this(0 as T) { + counter += 1 + } +} + +var counter = 0 + +fun id(t: T) = t + +fun box(): String { + val ic = IC() + if (counter != 1) return "FAIL 1: $counter" + counter = 0 + + id(ic) + if (counter != 0) return "FAIL 2: $counter" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt new file mode 100644 index 00000000000..ae2c87c07ba --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt @@ -0,0 +1,25 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val i: T) { + init { + counter += i + } +} + +var counter = 0 + +fun id(t: T) = `t` + +fun box(): String { + val ic = IC(42) + if (counter != 42) return "FAIL 1: $counter" + counter = 0 + + id(ic) + if (counter != 0) return "FAIL 2: $counter" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt new file mode 100644 index 00000000000..8dc55896e70 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt @@ -0,0 +1,15 @@ +// WITH_STDLIB +// IGNORE_BACKEND: JVM +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +abstract class C { + fun foo(v: T?, x: (T) -> Any?) = v?.let { x(it) } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class V(val value: T) + +class D : C>() + +fun box() = D().foo(V("OK")) { it.value } as String diff --git a/compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt new file mode 100644 index 00000000000..0ee35076b2a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt @@ -0,0 +1,46 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +class BoxT(val boxed: T) +class BoxAny(val boxed: Any?) +class BoxFoo(val boxed: IFoo?) + +interface IFoo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Str(val value: T) : IFoo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Str2>(val value: T): IFoo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class StrArr(val value: Array): IFoo + +fun boxToTypeParameter(x: Str?) = BoxT(x) +fun boxToNullableAny(x: Str?) = BoxAny(x) +fun boxToNullableInterface(x: Str?) = BoxFoo(x) + +fun box2ToTypeParameter(x: Str2>?) = BoxT(x) +fun box2ToNullableAny(x: Str2>?) = BoxAny(x) +fun box2ToNullableInterface(x: Str2>?) = BoxFoo(x) + +fun boxArrToTypeParameter(x: StrArr?) = BoxT(x) +fun boxArrToNullableAny(x: StrArr?) = BoxAny(x) +fun boxArrToNullableInterface(x: StrArr?) = BoxFoo(x) + +fun box(): String { + if (boxToNullableAny(null).boxed != null) throw AssertionError() + if (boxToTypeParameter(null).boxed != null) throw AssertionError() + if (boxToNullableInterface(null).boxed != null) throw AssertionError() + + if (box2ToNullableAny(null).boxed != null) throw AssertionError() + if (box2ToTypeParameter(null).boxed != null) throw AssertionError() + if (box2ToNullableInterface(null).boxed != null) throw AssertionError() + + if (boxArrToNullableAny(null).boxed != null) throw AssertionError() + if (boxArrToTypeParameter(null).boxed != null) throw AssertionError() + if (boxArrToNullableInterface(null).boxed != null) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt new file mode 100644 index 00000000000..df561b90de3 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt @@ -0,0 +1,24 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +class BoxT(val boxed: T) +class BoxAny(val boxed: Any?) +class BoxFoo(val boxed: IFoo?) + +interface IFoo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class I32(val value: T): IFoo + +fun boxToTypeParameter(x: I32?) = BoxT(x) +fun boxToNullableAny(x: I32?) = BoxAny(x) +fun boxToNullableInterface(x: I32?) = BoxFoo(x) + +fun box(): String { + if (boxToNullableAny(null).boxed != null) throw AssertionError() + if (boxToTypeParameter(null).boxed != null) throw AssertionError() + if (boxToNullableInterface(null).boxed != null) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt new file mode 100644 index 00000000000..d1f641365bf --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt @@ -0,0 +1,27 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Result(val a: T) + +fun box(): String { + val a = Result(1) // valueOf + val b = Result("sample") + val c = Result>(a) + val d = Result>(Result(1)) // valueOf + + if (a.a !is Int) throw AssertionError() + + if (b.a !is String) throw AssertionError() + + if (c.a !is Result<*>) throw AssertionError() + val ca = c.a as Result<*> + if (ca.a !is Int) throw AssertionError() + + if (d.a !is Result<*>) throw AssertionError() + val da = d.a as Result<*> + if (da.a !is Int) throw AssertionError() + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt new file mode 100644 index 00000000000..0df79b8228f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt @@ -0,0 +1,36 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(private val value: T) { + fun asInt() = value +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UIntArray(private val intArray: IntArray) { + operator fun get(index: Int): UInt = UInt(intArray[index]) + + operator fun set(index: Int, value: UInt) { + intArray[index] = value.asInt() + } +} + +fun UIntArray.swap(i: Int, j: Int) { + this[j] = this[i].also { this[i] = this[j] } +} + +fun uIntArrayOf(vararg elements: Int) = UIntArray(intArrayOf(*elements)) + +fun box(): String { + val a = uIntArrayOf(1, 2, 3, 4) + a.swap(0, 3) + a.swap(1, 2) + + if (a[0].asInt() != 4) return "fail" + if (a[1].asInt() != 3) return "fail" + if (a[2].asInt() != 2) return "fail" + if (a[3].asInt() != 1) return "fail" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt new file mode 100644 index 00000000000..78d7f58ed90 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt @@ -0,0 +1,74 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(private val value: T) { + operator fun plus(other: UInt): UInt = UInt(value + other.asValue()) + + fun asValue(): Int = value +} + +val Int.u get() = UInt(this) + +var global = 0.u + +fun testInlined(x: UInt?, withAssert: Boolean) { + x?.myLet { + takeUInt(it) + takeUInt(x) + } + + x?.myLet { + takeNullableUInt(it) + takeNullableUInt(x) + } + + if (withAssert) { + x!!.myLet { + takeUInt(it) + takeUInt(x) + } + } +} + +fun testNotInlined(x: UInt?) { + x?.myLet { + takeUInt(it) + takeUInt(x) + } + + x?.myLet { + takeNullableUInt(it) + takeNullableUInt(x) + } +} + +fun takeUInt(y: UInt) { + global += y +} + +fun takeNullableUInt(y: UInt?) { + if (y != null) { + global += y + } +} + +inline fun T.myLet(f: (T) -> Unit) = f(this) +fun T.nonInlineLet(f: (T) -> Unit) = f(this) + +fun box(): String { + val u = 1.u + testInlined(u, true) + if (global.asValue() != 6) return "fail 1" + + global = 0.u + testInlined(null, false) + if (global.asValue() != 0) return "fail 2" + + global = 0.u + testNotInlined(u) + if (global.asValue() != 4) return "fail 3" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt new file mode 100644 index 00000000000..4d9e06ee21a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt @@ -0,0 +1,22 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val x: T) + +interface I { + fun foo(): T +} + +interface II: I> + +class A : I> { + override fun foo() = IC("O") +} + +class B : II { + override fun foo() = IC("K") +} + +fun box() = A().foo().x + B().foo().x diff --git a/compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt new file mode 100644 index 00000000000..b414c6d8743 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt @@ -0,0 +1,37 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Result(val a: T) { + fun getOrThrow(): T = a +} + +abstract class ResultReceiver { + abstract fun receive(result: Result) +} + +fun ResultReceiver(f: (Result) -> Unit): ResultReceiver = + object : ResultReceiver() { + override fun receive(result: Result) { + f(result) + } + } + +fun test() { + var invoked = false + val receiver = ResultReceiver { result -> + val intResult = result.getOrThrow() + invoked = true + } + + receiver.receive(Result(42)) + if (!invoked) { + throw RuntimeException("Fail") + } +} + +fun box(): String { + test() + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt b/compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt new file mode 100644 index 00000000000..c0a8fd463fa --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt @@ -0,0 +1,37 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlinedComparable(val x: T) : Comparable> { + override fun compareTo(other: InlinedComparable): Int { + return x.compareTo(other.x) + } +} + +fun generic(c: Comparable, element: T) = c.compareTo(element) + +interface Base { + fun Base.foo(a: Base, b: T): Base +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlinedBase(val x: T) : Base> { + override fun Base>.foo(a: Base>, b: InlinedBase): Base> { + return if (a is InlinedBase<*>) InlinedBase((a.x + b.x) as T) else this + } + + fun double(): InlinedBase { + return this.foo(this, this) as InlinedBase + } + } + +fun box(): String { + val a = InlinedComparable(42) + if (generic(a, a) != 0) return "Fail 1" + + val b = InlinedBase(3) + if (b.double().x != 6) return "Fail 2" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflectionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflectionGeneric.kt new file mode 100644 index 00000000000..5864e38466f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflectionGeneric.kt @@ -0,0 +1,26 @@ +// WITH_REFLECT +// FULL_JDK +// TARGET_BACKEND: JVM +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// WITH_STDLIB + +import java.lang.reflect.InvocationTargetException + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Simple(val x: T) { + fun somethingWeird() {} +} + +fun box(): String { + var s = "" + val name = "equals-impl0" + val specializedEquals = + Simple::class.java.getDeclaredMethod(name, String::class.java, String::class.java) + ?: return "$name not found" + + if (specializedEquals.invoke(null, "a", "b") as Boolean) + return "Fail" + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt new file mode 100644 index 00000000000..36c50f84b75 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// TARGET_BACKEND: JVM +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UIntArray(private val storage: IntArray) : Collection> { + public override val size: Int get() = storage.size + + override operator fun iterator() = TODO() + override fun contains(element: UInt): Boolean = TODO() + override fun containsAll(elements: Collection>): Boolean = TODO() + override fun isEmpty(): Boolean = TODO() +} + +fun calculate(u: UIntArray): Int { + return u.size +} + +fun box(): String { + if (calculate(UIntArray(intArrayOf(1, 2, 3, 4))) != 4) return "Fail" + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt new file mode 100644 index 00000000000..7322d033b4c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt @@ -0,0 +1,21 @@ +// WITH_STDLIB +// WITH_REFLECT +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val x: T) { + fun bar(f: Foo, i: Int): Foo = Foo(x + f.x + i) +} + +fun box(): String { + val f = Foo("original") + val function1 = f::bar + val result1 = function1.invoke(Foo("+argument+"), 42) + if (result1.x != "original+argument+42") return "Fail first" + + val result2 = Foo::bar.invoke(Foo("explicit"), Foo("+argument2+"), 10) + if (result2.x != "explicit+argument2+10") return "Fail second" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt new file mode 100644 index 00000000000..0063be3e992 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt @@ -0,0 +1,21 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val x: T) { + fun bar() {} +} + +fun transform(f: Foo): Foo { + return when { + true -> f as Foo + else -> TODO() + } +} + +fun box(): String { + val f = Foo(42) + val t = transform(f) + return if (t.x !is Number) "Fail" else "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt b/compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt new file mode 100644 index 00000000000..7bbfd9a9806 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt @@ -0,0 +1,45 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val value: T) + +fun id(x: T): T = x +inline fun inlinedId(x: T): T = x + +fun T.idExtension(): T = this +inline fun T.inlinedIdExtension(): T = this + +fun test(f: Foo) { + inlinedId(f) // box + inlinedId(f).idExtension() // box + + f.inlinedIdExtension() // box + + val a = inlinedId(f).idExtension() // box unbox + val b = inlinedId(f).inlinedIdExtension() // box unbox +} + +fun box(): String { + val f = Foo(11) + + id(inlinedId(f)) + inlinedId(id(f)) + + inlinedId(f) // box + inlinedId(f).idExtension() // box + + f.inlinedIdExtension() // box + + val a = inlinedId(f).idExtension() // box unbox + val b = inlinedId(f).inlinedIdExtension() // box unbox + + if (a.value != 11) return "fail 1" + if (b.value != 11) return "fail 2" + + if (inlinedId(Foo(10)).value != 10) return "fail 3" + if (Foo(20).inlinedIdExtension().value != 20) return "fail 4" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt b/compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt new file mode 100644 index 00000000000..3b3103e18f3 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt @@ -0,0 +1,52 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class WithPrimitive(val a: T) +fun takeWithPrimitive(a: WithPrimitive) {} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class WithReference(val a: T) +fun takeWithReference(a: WithReference) {} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class WithNullableReference(val a: T) +fun takeWithNullableReference(a: WithNullableReference) {} + +fun foo(a: WithPrimitive?, b: WithPrimitive) { + takeWithPrimitive(a!!) // unbox + takeWithPrimitive(a) // unbox + takeWithPrimitive(b!!) +} + +fun bar(a: WithReference?, b: WithReference) { + takeWithReference(a!!) + takeWithReference(a) + takeWithReference(b!!) +} + +fun baz(a: WithNullableReference?, b: WithNullableReference) { + takeWithNullableReference(a!!) // unbox + takeWithNullableReference(a) // unbox + takeWithNullableReference(a!!) // unbox + takeWithNullableReference(b!!) +} + +fun box(): String { + val a1 = WithPrimitive(1) + val b1 = WithPrimitive(2) + + foo(a1, b1) + + val a2 = WithReference("") + + bar(a2, a2) + + val a3 = WithNullableReference("test") + val a4 = WithNullableReference(123) + + baz(a3, a4) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt new file mode 100644 index 00000000000..bdab5d73176 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt @@ -0,0 +1,51 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val x: T) + +interface I { + fun foo(t: T): T +} + +interface I2: I> + +open class A { + fun foo(t: T): T = + if (t is IC<*>) + IC(20 + t.x) as T + else + t +} + +open class B: A>() +class C: I2, B() + +fun box(): String { + val ic = IC(10) + val i: I> = C() + val i2: I2 = C() + val a: A> = C() + val b: B = C() + val c: C = C() + + val fooI = i.foo(ic).x + if (fooI != 30) return "Fail I" + + // Test calling abstract fake override methods + // with signature specialized by inline class + val fooI2 = i2.foo(ic).x + if (fooI2 != 30) return "Fail I2" + + val fooA = a.foo(ic).x + if (fooA != 30) return "Fail A" + + val fooB = b.foo(ic).x + if (fooB != 30) return "Fail B" + + val resC = c.foo(ic).x + if (resC != 30) return "Fail C" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt b/compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt new file mode 100644 index 00000000000..14d628ab7e9 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt @@ -0,0 +1,32 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ULong(val l: T) + +fun nonLocal(): ULong? { + val u1 = ULong(1) + + run { + return u1 // box + } + + ULong(-1) +} + +fun foo(): Boolean = true + +fun labeled(): ULong? { + val u = ULong(2) + return run { + if (foo()) return@run u + ULong(-1) // box + } +} + +fun box(): String { + if (nonLocal()!!.l != 1L) return "fail" + if (labeled()!!.l != 2L) return "fail" + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt new file mode 100644 index 00000000000..8d3ea163e34 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt @@ -0,0 +1,38 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val a: T) { + fun member(): String = "" + + fun asResult() = a +} + +fun id(x: T): T = x +fun T.idExtension(): T = this + +fun Foo.extension() {} + + +fun test(f: Foo): String { + id(f) // box + id(f).idExtension() // box + + id(f).member() // box unbox + id(f).extension() // box unbox + + val a = id(f) // box unbox + val b = id(f).idExtension() // box unbox + + if (a.asResult() != 10) return "fail a" + if (b.asResult() != 10) return "fail b" + + return "OK" +} + +fun box(): String { + val f = Foo(10) + + return test(f) +} diff --git a/compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt b/compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt new file mode 100644 index 00000000000..47f881e9e0b --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineNotNullPrimitive(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineNotNullReference(val y: T) + +fun testNotNullPrimitive(a: Any, b: A, c: InlineNotNullPrimitive, d: InlineNotNullPrimitive?) {} +fun testNotNullReference(a: Any, b: A, c: InlineNotNullReference, d: InlineNotNullReference?) {} + +fun test(a: InlineNotNullPrimitive, b: InlineNotNullReference) { + testNotNullPrimitive(a, a, a, a) // 3 box + testNotNullReference(b, b, b, b) // 2 box +} + +fun box(): String { + val a = InlineNotNullPrimitive(10) + val b = InlineNotNullReference("some") + + test(a, b) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt b/compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt new file mode 100644 index 00000000000..f843e7bde79 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt @@ -0,0 +1,61 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineNotNullPrimitive(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineNullablePrimitive(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineNotNullReference(val a: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineNullableReference(val a: T) + +fun test1(a: InlineNotNullPrimitive) { + val a0 = a + val a1: Any = a // box + val a2: Any? = a // box + val a3: InlineNotNullPrimitive = a + val a4: InlineNotNullPrimitive? = a // box +} + +fun test2(b: InlineNullablePrimitive) { + val b0 = b + val b1: Any = b // box + val b2: Any? = b // box + val b3: InlineNullablePrimitive = b + val b4: InlineNullablePrimitive? = b // box +} + +fun test3(c: InlineNotNullReference) { + val c0 = c + val c1: Any = c // box + val c2: Any? = c // box + val c3: InlineNotNullReference = c + val c4: InlineNotNullReference? = c +} + +fun test4(d: InlineNullableReference) { + val d0 = d + val d1: Any = d // box + val d2: Any? = d // box + val d3: InlineNullableReference = d + val d4: InlineNullableReference? = d // box +} + +fun box(): String { + val a = InlineNotNullPrimitive(1) + val b = InlineNullablePrimitive(1) + val c = InlineNotNullReference("some") + val d = InlineNullableReference("other") + + test1(a) + test2(b) + test3(c) + test4(d) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt b/compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt new file mode 100644 index 00000000000..c0d9ffd34a8 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt @@ -0,0 +1,35 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val x: T) + +abstract class A { + var t: T? = null + final fun foo(): T = t!! +} + +class B: A>() + +interface I { + fun foo(): IC +} + +class B2: A>(), I + + +fun box(): String { + val b = B() + b.t = IC(10) + if (b.foo() != IC(10)) return "Fail 1" + + val b2 = B2() + b2.t = IC(10) + if (b2.foo() != IC(10)) return "Fail 2" + + val b2i: I = b2 + if (b2i.foo() != IC(10)) return "Fail 3" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt new file mode 100644 index 00000000000..2c44343cd7b --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt @@ -0,0 +1,27 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val x: T) { + fun empty() = "" + fun withParam(a: String) = a + fun withInlineClassParam(f: Foo) = f.toString() + + fun test(): String { + val a = empty() + val b = withParam("hello") + val c = withInlineClassParam(this) + return a + b + c + } + + override fun toString(): String { + return x.toString() + } +} + +fun box(): String { + val f = Foo(12) + return if (f.test() != "hello12") "fail" else "OK" + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt new file mode 100644 index 00000000000..4ed2d86f5ec --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt @@ -0,0 +1,22 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(val s: T) + +fun test(a1: Any, a2: UInt?, a3: Any?, a4: Any?): Int { + val b1 = a1 as UInt + val b2 = a2 as UInt + val b3 = (a3 as UInt?) as UInt + val b4 = (a4 as? UInt) as UInt + return b1.s + b2.s + b3.s + b4.s +} + +fun box(): String { + val u1 = UInt(1) + val u2 = UInt(2) + if (test(u1, u2, u1, u2) != 6) return "fail" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt new file mode 100644 index 00000000000..759ae76a58a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt @@ -0,0 +1,58 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(val u: T) { + override fun toString(): String { + return "UInt: $u" + } +} + +fun Any.isUInt(): Boolean = this is UInt<*> +fun Any.notIsUInt(): Boolean = this !is UInt<*> + +inline fun Any?.instanceOf(): Boolean = this is T + +fun UInt.extension(): String = "OK:" + +fun foo(x: UInt?): String { + if (x is UInt<*>) { + return x.extension() + x.toString() + } + + return "fail" +} + +fun bar(x: UInt?): String { + if (x is Any) { + return x.extension() + } + + return "fail" +} + +fun box(): String { + val u = UInt(12) + if (!u.isUInt()) return "fail" + if (u.notIsUInt()) return "fail" + + if (1.isUInt()) return "fail" + if (!1.notIsUInt()) return "fail" + + + if (!u.instanceOf>()) return "fail" + if (1.instanceOf>()) return "fail" + + val nullableUInt: UInt? = UInt(10) + if (!nullableUInt.instanceOf>()) return "fail" + + val nullAsUInt: UInt? = null + if (nullAsUInt.instanceOf>()) return "fail" + if (!nullAsUInt.instanceOf?>()) return "fail" + + if (foo(u) != "OK:UInt: 12") return "fail" + if (bar(u) != "OK:") return "fail" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt new file mode 100644 index 00000000000..de5cda27eec --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt @@ -0,0 +1,30 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(val value: T) +OPTIONAL_JVM_INLINE_ANNOTATION +value class ULong(val value: T) + +fun foo(u: UInt, f: (UInt) -> ULong): ULong = f(u) +inline fun inlinedFoo(u: UInt, f: (UInt) -> ULong): ULong = f(u) + +fun mapUIntToULong(u: UInt): ULong = ULong(u.value.toLong()) + +fun box(): String { + val u = UInt(123) + val l1 = foo(u) { + mapUIntToULong(it) + } + + if (l1.value != 123L) return "fail" + + val l2 = inlinedFoo(UInt(10)) { + mapUIntToULong(it) + } + + if (l2.value != 10L) return "fail" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt b/compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt new file mode 100644 index 00000000000..f60f2592d33 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt @@ -0,0 +1,43 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Result(val a: T) { + fun typed(): T = a +} + +fun takeResult(r: Result) {} +fun takeResultOfInt(r: Result) {} +fun takeInt(i: Int) {} + + +fun box(): String { + val asInt = Result(19) + val asString = Result("sample") + val asResult = Result>(asInt) + val asResultCtor = Result>(Result(10)) + + takeResult(asInt) + takeResult(asString) + takeResult(asResult) + takeResult(asResultCtor) + + takeResultOfInt(asInt) + takeInt(asInt.typed()) + + val unboxedInt = asInt.typed() + val unboxedString = asString.typed() + val unboxedResult = asResult.typed() + val unboxedAsCtor = asResultCtor.typed() + + if (unboxedInt != 19) return "fail 1" + if (unboxedString != "sample") return "fail 2" + if (unboxedResult.typed() != 19) return "fail 3" + if (unboxedAsCtor.typed() != 10) return "fail 4" + + if (asResult.typed().typed() != 19) return "fail 5" + if (asResultCtor.typed().typed() != 10) return "fail 6" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt b/compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt new file mode 100644 index 00000000000..82a227b60fa --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt @@ -0,0 +1,22 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +var result = "Fail" + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val value: T) { + init { + class B { + init { + result = value + } + } + B() + } +} + +fun box(): String { + A("OK") + return result +} diff --git a/compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClassGeneric.kt new file mode 100644 index 00000000000..bf8c2339399 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClassGeneric.kt @@ -0,0 +1,82 @@ +// WITH_STDLIB +// WITH_REFLECT +// TARGET_BACKEND: JVM +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +package root + +import kotlin.reflect.KClass + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcInt(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcLong(val l: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcAny(val a: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcOverIc>(val o: T) + +fun check(c: KClass<*>, s: String) { + if (c.toString() != s) error("Fail, expected: $s, actual: $c") +} + +fun check(actual: String?, expected: String) { + if (actual != expected) error("Fail, expected: $expected, actual: $actual") +} + +inline fun reifiedCheck(asString: String, simpleName: String) { + check(T::class, asString) + check(T::class.simpleName, simpleName) +} + +fun box(): String { + val i = IcInt(0) + val l = IcLong(0) + val a = IcAny("foo") + val o = IcOverIc(IcLong(0)) + + check(i::class, "class root.IcInt") + check(l::class, "class root.IcLong") + check(a::class, "class root.IcAny") + check(o::class, "class root.IcOverIc") + check(1u::class, "class kotlin.UInt") + + check(i::class.simpleName, "IcInt") + check(l::class.simpleName, "IcLong") + check(a::class.simpleName, "IcAny") + check(o::class.simpleName, "IcOverIc") + check(1u::class.simpleName, "UInt") + + reifiedCheck>("class root.IcInt", "IcInt") + reifiedCheck>("class root.IcLong", "IcLong") + reifiedCheck>("class root.IcAny", "IcAny") + reifiedCheck>>("class root.IcOverIc", "IcOverIc") + reifiedCheck("class kotlin.UInt", "UInt") + + val arrI = arrayOf(i) + check(arrI[0]::class, "class root.IcInt") + + val arrL = arrayOf(l) + check(arrL[0]::class, "class root.IcLong") + + val arrA = arrayOf(a) + check(arrA[0]::class, "class root.IcAny") + + val arrO = arrayOf(o) + check(arrO[0]::class, "class root.IcOverIc") + + val arrU = arrayOf(1u) + check(arrU[0]::class, "class kotlin.UInt") + + check(IcInt::class, "class root.IcInt") + check(IcLong::class, "class root.IcLong") + check(IcAny::class, "class root.IcAny") + check(IcOverIc::class, "class root.IcOverIc") + check(UInt::class, "class kotlin.UInt") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt b/compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt new file mode 100644 index 00000000000..ab6f9850f83 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt @@ -0,0 +1,19 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val x: T) : Comparable> { + override fun compareTo(other: Foo): Int { + return 10 + } +} + +fun box(): String { + val f1 = Foo(42) + val ff1: Comparable> = f1 + + if (ff1.compareTo(f1) != 10) return "Fail" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt b/compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt new file mode 100644 index 00000000000..aa9a89b07f6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt @@ -0,0 +1,18 @@ +// WITH_STDLIB +// KJS_FULL_RUNTIME +// SKIP_MANGLE_VERIFICATION +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface I { + companion object { + val default: IC by lazy(::IC) + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val ok: T = "OK" as T) : I + +fun box(): String { + return I.default.ok +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt b/compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt new file mode 100644 index 00000000000..ac62547f1e2 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt @@ -0,0 +1,27 @@ +// TARGET_BACKEND: JVM +// WITH_STDLIB +// FULL_JDK +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import java.lang.reflect.Modifier + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC1 public constructor(val i: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC11 internal constructor(val i: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC2 private constructor(val i: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC4 protected constructor(val i: T) + +fun box(): String { + if (!Modifier.isPublic(IC1::class.java.declaredMethods.single { it.name == "constructor-impl" }.modifiers)) return "FAIL 1" + if (!Modifier.isPublic(IC11::class.java.declaredMethods.single { it.name == "constructor-impl" }.modifiers)) return "FAIL 1" + if (!Modifier.isPrivate(IC2::class.java.declaredMethods.single { it.name == "constructor-impl" }.modifiers)) return "FAIL 2" + if (!Modifier.isProtected(IC4::class.java.declaredMethods.single { it.name == "constructor-impl" }.modifiers)) return "FAIL 4" + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt b/compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt new file mode 100644 index 00000000000..c7c3e3f68f5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt @@ -0,0 +1,22 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface Base { + fun result(): Int +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Inlined(val x: T) : Base { + override fun result(): Int = x +} + +fun foo(b: Boolean): Base { + return if (b) Inlined(0) else Inlined(1) +} + +fun box(): String { + if (foo(true).result() != 0) return "Fail 1" + if (foo(false).result() != 1) return "Fail 2" + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt new file mode 100644 index 00000000000..6a09272c5dd --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt @@ -0,0 +1,34 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class AsInt(val value: T) { + override fun toString(): String { + return "asInt: ${value.toString()}" + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class AsAny(val value: T) { + override fun toString(): String { + return "asAny: ${value.toString()}" + } +} + +fun takeAny(a: Any): String = a.toString() + +fun getInt(): Int = 10 +fun id(x: T) = x + +fun box(): String { + if (takeAny(AsInt(123)) != "asInt: 123") return "fail" + if (takeAny(AsAny(321)) != "asAny: 321") return "fail" + + if (takeAny(AsInt(getInt())) != "asInt: 10") return "fail" + if (takeAny(AsInt(id(20))) != "asInt: 20") return "fail" + + if (takeAny(AsAny(id(30))) != "asAny: 30") return "fail" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt b/compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt new file mode 100644 index 00000000000..e804c799fe5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt @@ -0,0 +1,37 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Result(val a: T) { + fun getOrThrow(): T = a +} + +abstract class ResultReceiver { + abstract fun receive(result: Result) +} + +inline fun ResultReceiver(crossinline f: (Result) -> Unit): ResultReceiver = + object : ResultReceiver() { + override fun receive(result: Result) { + f(result) + } + } + +fun test() { + var invoked = false + val receiver = ResultReceiver { result -> + val intResult = result.getOrThrow() + invoked = true + } + + receiver.receive(Result("42")) + if (!invoked) { + throw RuntimeException("Fail") + } +} + +fun box(): String { + test() + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt new file mode 100644 index 00000000000..b72a74fa7c5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt @@ -0,0 +1,59 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class FooRef(val y: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class FooLong(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class FooDouble(val y: T) + +fun box(): String { + val f = Foo(42) + if (f.toString() != "Foo(x=42)") return "Fail 1: $f" + + if (!f.equals(f)) return "Fail 2" + + val g = Foo(43) + if (f.equals(g)) return "Fail 3" + + if (42.hashCode() != f.hashCode()) return "Fail 4" + + val fRef = FooRef("42") + if (fRef.toString() != "FooRef(y=42)") return "Fail 5: $fRef" + + if (!fRef.equals(fRef)) return "Fail 6" + + val gRef = FooRef("43") + if (fRef.equals(gRef)) return "Fail 7" + + if ("42".hashCode() != fRef.hashCode()) return "Fail 8" + + val fLong = FooLong(42) + if (fLong.toString() != "FooLong(x=42)") return "Fail 9: $fLong" + + if (!fLong.equals(fLong)) return "Fail 10" + + val gLong = FooLong(43) + if (fLong.equals(gLong)) return "Fail 11" + + if (42L.hashCode() != fLong.hashCode()) return "Fail 12" + + val fDouble = FooDouble(42.1) + if (fDouble.toString() != "FooDouble(y=42.1)") return "Fail 13: $fDouble" + + if (!fDouble.equals(fDouble)) return "Fail 14" + + val gDouble = FooDouble(43.0) + if (fDouble.equals(gDouble)) return "Fail 15" + + if (42.1.hashCode() != fDouble.hashCode()) return "Fail 16" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt new file mode 100644 index 00000000000..a724c582b08 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt @@ -0,0 +1,18 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IFoo { + fun foo(x: T): String = "O" + fun T.bar(): String = "K" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(val x: T) : IFoo> + +fun box(): String { + val z = L(0L) + return with(z) { + foo(z) + z.bar() + } +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt b/compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt new file mode 100644 index 00000000000..cbbb4b98d4c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt @@ -0,0 +1,11 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// FILE: a.kt +fun box() = A(0).f() + +// FILE: b.kt +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val i: T) + +fun A.f(xs: Array = Array(1) { "OK" }) = xs[i] diff --git a/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt b/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt new file mode 100644 index 00000000000..eb3ad3810ef --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt @@ -0,0 +1,27 @@ +// WITH_STDLIB +// IGNORE_LIGHT_ANALYSIS +// IGNORE_BACKEND: JVM +// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter + +interface I { + fun o(k: String = "K"): String = "O$k" +} + +inline class IC(val i: T): I by i + +fun box(): String { + val i = object : I {} + val ic1 = IC(i) + var res = ic1.o() + if (res != "OK") return "FAIL 1: $res" + res = ic1.o("KK") + if (res != "OKK") return "FAIL 2: $res" + + val ic2: I = IC(i) + res = ic2.o() + if (res != "OK") return "FAIL 3: $res" + res = ic2.o("KK") + if (res != "OKK") return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultGeneric.kt b/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultGeneric.kt new file mode 100644 index 00000000000..1b92f2ff73a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultGeneric.kt @@ -0,0 +1,19 @@ +// WITH_STDLIB +// IGNORE_LIGHT_ANALYSIS +// IGNORE_BACKEND: JVM +// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter + +interface I { + fun ok(): String = "OK" +} + +inline class IC(val i: T): I by i + +fun box(): String { + val i = object : I {} + var res = IC(i).ok() + if (res != "OK") return "FAIL: $res" + val ic: I = IC(i) + res = ic.ok() + return res +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simpleGeneric.kt b/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simpleGeneric.kt new file mode 100644 index 00000000000..03b168ebff8 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simpleGeneric.kt @@ -0,0 +1,21 @@ +// WITH_STDLIB +// IGNORE_LIGHT_ANALYSIS +// IGNORE_BACKEND: JVM +// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter + +interface I { + fun ok(): String +} + +inline class IC(val i: T): I by i + +fun box(): String { + val i = object : I { + override fun ok(): String = "OK" + } + var res = IC(i).ok() + if (res != "OK") return "FAIL: $res" + val ic: I = IC(i) + res = ic.ok() + return res +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt b/compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt new file mode 100644 index 00000000000..bdf8b6565cc --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt @@ -0,0 +1,19 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(private val data: T) { + fun result(): String = if (data == 1) "OK" else "fail" +} + +fun f(): UInt { + val unull = UInt(1) ?: null + return nonNull(unull) +} + +fun nonNull(u: UInt?) = u!! + +fun box(): String { + return f().result() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt new file mode 100644 index 00000000000..c5e750af6e5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt @@ -0,0 +1,13 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val s: T) { + fun asResult(): String = s +} + +fun box(): String { + val a = Foo("OK") + return a.asResult() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt new file mode 100644 index 00000000000..23e1d662df6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt @@ -0,0 +1,55 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Inner(val w: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A>(val x: T) + +fun > isNullVacuousLeft(s: A) = s == null +fun > isNullVacuousRight(s: A) = null == s +fun > isNullLeft(s: A?) = s == null +fun > isNullRight(s: A?) = null == s +fun > isEqualSame(s: A, t: A) = s == t +fun > isEqualAnyLeft(s: A, t: Any?) = s == t +fun > isEqualAnyRight(s: Any?, t: A) = s == t +fun > isEqualSameNullable(s: A?, t: A?) = s == t +fun > isEqualAnyNullableLeft(s: A?, t: Any?) = s == t +fun > isEqualAnyNullableRight(s: Any?, t: A?) = s == t + +fun box(): String { + if (isNullVacuousLeft(A(Inner("")))) return "Fail 1" + if (isNullVacuousRight(A(Inner("")))) return "Fail 2" + if (isNullLeft(A(Inner("")))) return "Fail 3" + if (isNullRight(A(Inner("")))) return "Fail 4" + if (!isNullLeft>(null)) return "Fail 5" + if (!isNullRight>(null)) return "Fail 6" + if (!isEqualSame(A(Inner("")), A(Inner("")))) return "Fail 7" + if (isEqualSame(A(Inner("")), A(Inner("a")))) return "Fail 8" + if (isEqualAnyLeft(A(Inner("")), Inner(""))) return "Fail 9" + if (isEqualAnyLeft(A(Inner("")), null)) return "Fail 10" + if (!isEqualAnyLeft(A(Inner("")), A(Inner("")))) return "Fail 11" + if (isEqualAnyRight(Inner(""), A(Inner("")))) return "Fail 12" + if (isEqualAnyRight(null, A(Inner("")))) return "Fail 13" + if (!isEqualAnyRight(A(Inner("")), A(Inner("")))) return "Fail 14" + if (!isEqualSameNullable>(null, null)) return "Fail 15" + if (!isEqualSameNullable(A(Inner("")), A(Inner("")))) return "Fail 16" + if (isEqualSameNullable(null, A(Inner("")))) return "Fail 17" + if (isEqualSameNullable(A(Inner("")), null)) return "Fail 18" + if (isEqualSameNullable(A(Inner("")), A(Inner("a")))) return "Fail 19" + if (!isEqualAnyNullableLeft>(null, null)) return "Fail 20" + if (!isEqualAnyNullableLeft(A(Inner("")), A(Inner("")))) return "Fail 21" + if (isEqualAnyNullableLeft(A(Inner("")), "")) return "Fail 22" + if (isEqualAnyNullableLeft>(null, Inner(""))) return "Fail 23" + if (isEqualAnyNullableLeft(A(Inner("")), null)) return "Fail 24" + if (isEqualAnyNullableLeft(A(Inner("")), A(Inner("a")))) return "Fail 25" + if (!isEqualAnyNullableRight>(null, null)) return "Fail 26" + if (!isEqualAnyNullableRight(A(Inner("a")), A(Inner("a")))) return "Fail 27" + if (isEqualAnyNullableRight(Inner(""), A(Inner("")))) return "Fail 28" + if (isEqualAnyNullableRight>(Inner(""), null)) return "Fail 29" + if (isEqualAnyNullableRight(null, A(Inner("")))) return "Fail 30" + if (isEqualAnyNullableRight(A(Inner("a")), A(Inner("b")))) return "Fail 31" + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt new file mode 100644 index 00000000000..58a8eedab95 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt @@ -0,0 +1,17 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val a: T) + +fun isEqualNA(x: A?, y: A) = x == y +fun isEqualAN(x: A, y: A?) = x == y + +fun box(): String { + if (isEqualNA(null, A(""))) return "Fail 1" + if (isEqualAN(A(""), null)) return "Fail 2" + if (!isEqualNA(A(""), A(""))) return "Fail 3" + if (!isEqualAN(A(""), A(""))) return "Fail 4" + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt new file mode 100644 index 00000000000..50394c9f091 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt @@ -0,0 +1,54 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Inner(val w: T) +OPTIONAL_JVM_INLINE_ANNOTATION +value class A>(val x: T) + +fun > isNotNullVacuousLeft(s: A) = s != null +fun > isNotNullVacuousRight(s: A) = null != s +fun > isNotNullLeft(s: A?) = s != null +fun > isNotNullRight(s: A?) = null != s +fun > isNotEqualSame(s: A, t: A) = s != t +fun > isNotEqualAnyLeft(s: A, t: Any?) = s != t +fun > isNotEqualAnyRight(s: Any?, t: A) = s != t +fun > isNotEqualSameNullable(s: A?, t: A?) = s != t +fun > isNotEqualAnyNullableLeft(s: A?, t: Any?) = s != t +fun > isNotEqualAnyNullableRight(s: Any?, t: A?) = s != t + +fun box(): String { + if (!isNotNullVacuousLeft(A(Inner("")))) return "Fail 1" + if (!isNotNullVacuousRight(A(Inner("")))) return "Fail 2" + if (!isNotNullLeft(A(Inner("")))) return "Fail 3" + if (!isNotNullRight(A(Inner("")))) return "Fail 4" + if (isNotNullLeft>(null)) return "Fail 5" + if (isNotNullRight>(null)) return "Fail 6" + if (isNotEqualSame(A(Inner("")), A(Inner("")))) return "Fail 7" + if (!isNotEqualSame(A(Inner("")), A(Inner("a")))) return "Fail 8" + if (!isNotEqualAnyLeft(A(Inner("")), Inner(""))) return "Fail 9" + if (!isNotEqualAnyLeft(A(Inner("")), null)) return "Fail 10" + if (isNotEqualAnyLeft(A(Inner("")), A(Inner("")))) return "Fail 11" + if (!isNotEqualAnyRight(Inner(""), A(Inner("")))) return "Fail 12" + if (!isNotEqualAnyRight(null, A(Inner("")))) return "Fail 13" + if (isNotEqualAnyRight(A(Inner("")), A(Inner("")))) return "Fail 14" + if (isNotEqualSameNullable>(null, null)) return "Fail 15" + if (isNotEqualSameNullable(A(Inner("")), A(Inner("")))) return "Fail 16" + if (!isNotEqualSameNullable(null, A(Inner("")))) return "Fail 17" + if (!isNotEqualSameNullable(A(Inner("")), null)) return "Fail 18" + if (!isNotEqualSameNullable(A(Inner("")), A(Inner("a")))) return "Fail 19" + if (isNotEqualAnyNullableLeft>(null, null)) return "Fail 20" + if (isNotEqualAnyNullableLeft(A(Inner("")), A(Inner("")))) return "Fail 21" + if (!isNotEqualAnyNullableLeft(A(Inner("")), "")) return "Fail 22" + if (!isNotEqualAnyNullableLeft>(null, Inner(""))) return "Fail 23" + if (!isNotEqualAnyNullableLeft(A(Inner("")), null)) return "Fail 24" + if (!isNotEqualAnyNullableLeft(A(Inner("")), A(Inner("a")))) return "Fail 25" + if (isNotEqualAnyNullableRight>(null, null)) return "Fail 26" + if (isNotEqualAnyNullableRight(A(Inner("a")), A(Inner("a")))) return "Fail 27" + if (!isNotEqualAnyNullableRight(Inner(""), A(Inner("")))) return "Fail 28" + if (!isNotEqualAnyNullableRight>(Inner(""), null)) return "Fail 29" + if (!isNotEqualAnyNullableRight(null, A(Inner("")))) return "Fail 30" + if (!isNotEqualAnyNullableRight(A(Inner("a")), A(Inner("b")))) return "Fail 31" + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt new file mode 100644 index 00000000000..17e7a770529 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt @@ -0,0 +1,60 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val x: T) + +fun isNotNullVacuousLeft(s: A) = s != null +fun isNotNullVacuousRight(s: A) = null != s +fun isNotNullLeft(s: A?) = s != null +fun isNotNullRight(s: A?) = null != s +fun isNotEqualSame(s: A, t: A) = s != t +fun isNotEqualAnyLeft(s: A, t: Any?) = s != t +fun isNotEqualAnyRight(s: Any?, t: A) = s != t +fun isNotEqualSameNullable(s: A?, t: A?) = s != t +fun isNotEqualAnyNullableLeft(s: A?, t: Any?) = s != t +fun isNotEqualAnyNullableRight(s: Any?, t: A?) = s != t +fun isNotEqualNullableUnboxedLeft(s: A, t: A?) = s != t +fun isNotEqualNullableUnboxedRight(s: A?, t: A) = s != t + +fun box(): String { + if (!isNotNullVacuousLeft(A(""))) return "Fail 1" + if (!isNotNullVacuousRight(A(""))) return "Fail 2" + if (!isNotNullLeft(A(""))) return "Fail 3" + if (!isNotNullRight(A(""))) return "Fail 4" + if (isNotNullLeft(null)) return "Fail 5" + if (isNotNullRight(null)) return "Fail 6" + if (isNotEqualSame(A(""), A(""))) return "Fail 7" + if (!isNotEqualSame(A("a"), A("b"))) return "Fail 8" + if (!isNotEqualAnyLeft(A(""), "")) return "Fail 9" + if (!isNotEqualAnyLeft(A(""), null)) return "Fail 10" + if (isNotEqualAnyLeft(A(""), A(""))) return "Fail 11" + if (!isNotEqualAnyRight("", A(""))) return "Fail 12" + if (!isNotEqualAnyRight(null, A(""))) return "Fail 13" + if (isNotEqualAnyRight(A(""), A(""))) return "Fail 14" + if (isNotEqualSameNullable(null, null)) return "Fail 15" + if (isNotEqualSameNullable(A(""), A(""))) return "Fail 16" + if (!isNotEqualSameNullable(null, A(""))) return "Fail 17" + if (!isNotEqualSameNullable(A(""), null)) return "Fail 18" + if (!isNotEqualSameNullable(A(""), A("a"))) return "Fail 19" + if (isNotEqualAnyNullableLeft(null, null)) return "Fail 20" + if (isNotEqualAnyNullableLeft(A(""), A(""))) return "Fail 21" + if (!isNotEqualAnyNullableLeft(A(""), "")) return "Fail 22" + if (!isNotEqualAnyNullableLeft(null, "")) return "Fail 23" + if (!isNotEqualAnyNullableLeft(A(""), null)) return "Fail 24" + if (!isNotEqualAnyNullableLeft(A(""), A("a"))) return "Fail 25" + if (isNotEqualAnyNullableRight(null, null)) return "Fail 26" + if (isNotEqualAnyNullableRight(A(""), A(""))) return "Fail 27" + if (!isNotEqualAnyNullableRight("", A(""))) return "Fail 28" + if (!isNotEqualAnyNullableRight("", null)) return "Fail 29" + if (!isNotEqualAnyNullableRight(null, A(""))) return "Fail 30" + if (!isNotEqualAnyNullableRight(A(""), A("a"))) return "Fail 31" + if (!isNotEqualNullableUnboxedLeft(A(""), A("a"))) return "Fail 32" + if (isNotEqualNullableUnboxedLeft(A(""), A(""))) return "Fail 33" + if (!isNotEqualNullableUnboxedRight(A(""), A("a"))) return "Fail 34" + if (isNotEqualNullableUnboxedRight(A("a"), A("a"))) return "Fail 35" + if (!isNotEqualNullableUnboxedLeft(A(""), null)) return "Fail 36" + if (!isNotEqualNullableUnboxedRight(null, A(""))) return "Fail 37" + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt new file mode 100644 index 00000000000..c9a125af55e --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt @@ -0,0 +1,76 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val x: T) + +fun isNotNullVacuousLeft(s: A) = s != null +fun isNotNullVacuousRight(s: A) = null != s +fun isNotNullLeft(s: A?) = s != null +fun isNotNullRight(s: A?) = null != s +fun isNotEqualSame(s: A, t: A) = s != t +fun isNotEqualAnyLeft(s: A, t: Any?) = s != t +fun isNotEqualAnyRight(s: Any?, t: A) = s != t +fun isNotEqualSameNullable(s: A?, t: A?) = s != t +fun isNotEqualAnyNullableLeft(s: A?, t: Any?) = s != t +fun isNotEqualAnyNullableRight(s: Any?, t: A?) = s != t +fun isNotEqualNullableUnboxedLeft(s: A, t: A?) = s != t +fun isNotEqualNullableUnboxedRight(s: A?, t: A) = s != t + +fun box(): String { + if (!isNotNullVacuousLeft(A(0))) return "Fail 1" + if (!isNotNullVacuousRight(A(0))) return "Fail 2" + if (!isNotNullLeft(A(0))) return "Fail 3" + if (!isNotNullRight(A(0))) return "Fail 4" + if (isNotNullLeft(null)) return "Fail 5" + if (isNotNullRight(null)) return "Fail 6" + if (isNotEqualSame(A(0), A(0))) return "Fail 7" + if (!isNotEqualSame(A(0), A(1))) return "Fail 8" + if (!isNotEqualAnyLeft(A(0), 0)) return "Fail 9" + if (!isNotEqualAnyLeft(A(0), null)) return "Fail 10" + if (isNotEqualAnyLeft(A(0), A(0))) return "Fail 11" + if (!isNotEqualAnyRight(0, A(0))) return "Fail 12" + if (!isNotEqualAnyRight(null, A(0))) return "Fail 13" + if (isNotEqualAnyRight(A(0), A(0))) return "Fail 14" + if (isNotEqualSameNullable(null, null)) return "Fail 15" + if (isNotEqualSameNullable(A(0), A(0))) return "Fail 16" + if (!isNotEqualSameNullable(null, A(0))) return "Fail 17" + if (!isNotEqualSameNullable(A(0), null)) return "Fail 18" + if (!isNotEqualSameNullable(A(0), A(1))) return "Fail 19" + if (isNotEqualAnyNullableLeft(null, null)) return "Fail 20" + if (isNotEqualAnyNullableLeft(A(0), A(0))) return "Fail 21" + if (!isNotEqualAnyNullableLeft(A(0), 0)) return "Fail 22" + if (!isNotEqualAnyNullableLeft(null, 0)) return "Fail 23" + if (!isNotEqualAnyNullableLeft(A(0), null)) return "Fail 24" + if (!isNotEqualAnyNullableLeft(A(0), A(1))) return "Fail 25" + if (isNotEqualAnyNullableRight(null, null)) return "Fail 26" + if (isNotEqualAnyNullableRight(A(0), A(0))) return "Fail 27" + if (!isNotEqualAnyNullableRight(0, A(0))) return "Fail 28" + if (!isNotEqualAnyNullableRight(0, null)) return "Fail 29" + if (!isNotEqualAnyNullableRight(null, A(0))) return "Fail 30" + if (!isNotEqualAnyNullableRight(A(0), A(1))) return "Fail 31" + + if (!isNotNullVacuousLeft(A(null))) return "Fail 32" + if (!isNotNullVacuousRight(A(null))) return "Fail 33" + if (!isNotNullLeft(A(null))) return "Fail 34" + if (!isNotNullRight(A(null))) return "Fail 35" + if (!isNotEqualAnyLeft(A(null), null)) return "Fail 36" + if (!isNotEqualAnyRight(null, A(null))) return "Fail 37" + if (!isNotEqualAnyNullableLeft(A(null), null)) return "Fail 38" + if (!isNotEqualAnyNullableRight(null, A(null))) return "Fail 39" + if (!isNotEqualSameNullable(A(null), null)) return "Fail 42" + if (!isNotEqualSameNullable(null, A(null))) return "Fail 43" + + if (!isNotEqualNullableUnboxedLeft(A(0), A(1))) return "Fail 44" + if (isNotEqualNullableUnboxedLeft(A(0), A(0))) return "Fail 45" + if (!isNotEqualNullableUnboxedRight(A(0), A(1))) return "Fail 46" + if (isNotEqualNullableUnboxedRight(A(1), A(1))) return "Fail 47" + if (!isNotEqualNullableUnboxedLeft(A(0), null)) return "Fail 48" + if (!isNotEqualNullableUnboxedRight(null, A(1))) return "Fail 49" + + if (!isNotEqualNullableUnboxedRight(null, A(null))) return "Fail 50" + if (!isNotEqualNullableUnboxedLeft(A(null), null)) return "Fail 51" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt new file mode 100644 index 00000000000..5a7a9f58159 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt @@ -0,0 +1,60 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val x: T) + +fun isNotNullVacuousLeft(s: A) = s != null +fun isNotNullVacuousRight(s: A) = null != s +fun isNotNullLeft(s: A?) = s != null +fun isNotNullRight(s: A?) = null != s +fun isNotEqualSame(s: A, t: A) = s != t +fun isNotEqualAnyLeft(s: A, t: Any?) = s != t +fun isNotEqualAnyRight(s: Any?, t: A) = s != t +fun isNotEqualSameNullable(s: A?, t: A?) = s != t +fun isNotEqualAnyNullableLeft(s: A?, t: Any?) = s != t +fun isNotEqualAnyNullableRight(s: Any?, t: A?) = s != t +fun isNotEqualNullableUnboxedLeft(s: A, t: A?) = s != t +fun isNotEqualNullableUnboxedRight(s: A?, t: A) = s != t + +fun box(): String { + if (!isNotNullVacuousLeft(A(0))) return "Fail 1" + if (!isNotNullVacuousRight(A(0))) return "Fail 2" + if (!isNotNullLeft(A(0))) return "Fail 3" + if (!isNotNullRight(A(0))) return "Fail 4" + if (isNotNullLeft(null)) return "Fail 5" + if (isNotNullRight(null)) return "Fail 6" + if (isNotEqualSame(A(0), A(0))) return "Fail 7" + if (!isNotEqualSame(A(0), A(1))) return "Fail 8" + if (!isNotEqualAnyLeft(A(0), 0)) return "Fail 9" + if (!isNotEqualAnyLeft(A(0), null)) return "Fail 10" + if (isNotEqualAnyLeft(A(0), A(0))) return "Fail 11" + if (!isNotEqualAnyRight(0, A(0))) return "Fail 12" + if (!isNotEqualAnyRight(null, A(0))) return "Fail 13" + if (isNotEqualAnyRight(A(0), A(0))) return "Fail 14" + if (isNotEqualSameNullable(null, null)) return "Fail 15" + if (isNotEqualSameNullable(A(0), A(0))) return "Fail 16" + if (!isNotEqualSameNullable(null, A(0))) return "Fail 17" + if (!isNotEqualSameNullable(A(0), null)) return "Fail 18" + if (!isNotEqualSameNullable(A(0), A(1))) return "Fail 19" + if (isNotEqualAnyNullableLeft(null, null)) return "Fail 20" + if (isNotEqualAnyNullableLeft(A(0), A(0))) return "Fail 21" + if (!isNotEqualAnyNullableLeft(A(0), 0)) return "Fail 22" + if (!isNotEqualAnyNullableLeft(null, 0)) return "Fail 23" + if (!isNotEqualAnyNullableLeft(A(0), null)) return "Fail 24" + if (!isNotEqualAnyNullableLeft(A(0), A(1))) return "Fail 25" + if (isNotEqualAnyNullableRight(null, null)) return "Fail 26" + if (isNotEqualAnyNullableRight(A(0), A(0))) return "Fail 27" + if (!isNotEqualAnyNullableRight(0, A(0))) return "Fail 28" + if (!isNotEqualAnyNullableRight(0, null)) return "Fail 29" + if (!isNotEqualAnyNullableRight(null, A(0))) return "Fail 30" + if (!isNotEqualAnyNullableRight(A(0), A(1))) return "Fail 31" + if (!isNotEqualNullableUnboxedLeft(A(0), A(1))) return "Fail 32" + if (isNotEqualNullableUnboxedLeft(A(0), A(0))) return "Fail 33" + if (!isNotEqualNullableUnboxedRight(A(0), A(1))) return "Fail 34" + if (isNotEqualNullableUnboxedRight(A(1), A(1))) return "Fail 35" + if (!isNotEqualNullableUnboxedLeft(A(0), null)) return "Fail 36" + if (!isNotEqualNullableUnboxedRight(null, A(1))) return "Fail 37" + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt new file mode 100644 index 00000000000..70e85943f33 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt @@ -0,0 +1,60 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val x: T) + +fun isNullVacuousLeft(s: A) = s == null +fun isNullVacuousRight(s: A) = null == s +fun isNullLeft(s: A?) = s == null +fun isNullRight(s: A?) = null == s +fun isEqualSame(s: A, t: A) = s == t +fun isEqualAnyLeft(s: A, t: Any?) = s == t +fun isEqualAnyRight(s: Any?, t: A) = s == t +fun isEqualSameNullable(s: A?, t: A?) = s == t +fun isEqualAnyNullableLeft(s: A?, t: Any?) = s == t +fun isEqualAnyNullableRight(s: Any?, t: A?) = s == t +fun isEqualNullableUnboxedLeft(s: A, t: A?) = s == t +fun isEqualNullableUnboxedRight(s: A?, t: A) = s == t + +fun box(): String { + if (isNullVacuousLeft(A(""))) return "Fail 1" + if (isNullVacuousRight(A(""))) return "Fail 2" + if (isNullLeft(A(""))) return "Fail 3" + if (isNullRight(A(""))) return "Fail 4" + if (!isNullLeft(null)) return "Fail 5" + if (!isNullRight(null)) return "Fail 6" + if (!isEqualSame(A(""), A(""))) return "Fail 7" + if (isEqualSame(A("a"), A("b"))) return "Fail 8" + if (isEqualAnyLeft(A(""), "")) return "Fail 9" + if (isEqualAnyLeft(A(""), null)) return "Fail 10" + if (!isEqualAnyLeft(A(""), A(""))) return "Fail 11" + if (isEqualAnyRight("", A(""))) return "Fail 12" + if (isEqualAnyRight(null, A(""))) return "Fail 13" + if (!isEqualAnyRight(A(""), A(""))) return "Fail 14" + if (!isEqualSameNullable(null, null)) return "Fail 15" + if (!isEqualSameNullable(A(""), A(""))) return "Fail 16" + if (isEqualSameNullable(null, A(""))) return "Fail 17" + if (isEqualSameNullable(A(""), null)) return "Fail 18" + if (isEqualSameNullable(A(""), A("a"))) return "Fail 19" + if (!isEqualAnyNullableLeft(null, null)) return "Fail 20" + if (!isEqualAnyNullableLeft(A(""), A(""))) return "Fail 21" + if (isEqualAnyNullableLeft(A(""), "")) return "Fail 22" + if (isEqualAnyNullableLeft(null, "")) return "Fail 23" + if (isEqualAnyNullableLeft(A(""), null)) return "Fail 24" + if (isEqualAnyNullableLeft(A(""), A("a"))) return "Fail 25" + if (!isEqualAnyNullableRight(null, null)) return "Fail 26" + if (!isEqualAnyNullableRight(A(""), A(""))) return "Fail 27" + if (isEqualAnyNullableRight("", A(""))) return "Fail 28" + if (isEqualAnyNullableRight("", null)) return "Fail 29" + if (isEqualAnyNullableRight(null, A(""))) return "Fail 30" + if (isEqualAnyNullableRight(A(""), A("a"))) return "Fail 31" + if (isEqualNullableUnboxedLeft(A(""), A("a"))) return "Fail 32" + if (!isEqualNullableUnboxedLeft(A(""), A(""))) return "Fail 33" + if (isEqualNullableUnboxedRight(A(""), A("a"))) return "Fail 34" + if (!isEqualNullableUnboxedRight(A("a"), A("a"))) return "Fail 35" + if (isEqualNullableUnboxedLeft(A(""), null)) return "Fail 36" + if (isEqualNullableUnboxedRight(null, A(""))) return "Fail 37" + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt new file mode 100644 index 00000000000..94d00ff1691 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt @@ -0,0 +1,76 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val x: T) + +fun isNullVacuousLeft(s: A) = s == null +fun isNullVacuousRight(s: A) = null == s +fun isNullLeft(s: A?) = s == null +fun isNullRight(s: A?) = null == s +fun isEqualSame(s: A, t: A) = s == t +fun isEqualAnyLeft(s: A, t: Any?) = s == t +fun isEqualAnyRight(s: Any?, t: A) = s == t +fun isEqualSameNullable(s: A?, t: A?) = s == t +fun isEqualAnyNullableLeft(s: A?, t: Any?) = s == t +fun isEqualAnyNullableRight(s: Any?, t: A?) = s == t +fun isEqualNullableUnboxedLeft(s: A, t: A?) = s == t +fun isEqualNullableUnboxedRight(s: A?, t: A) = s == t + +fun box(): String { + if (isNullVacuousLeft(A(0))) return "Fail 1" + if (isNullVacuousRight(A(0))) return "Fail 2" + if (isNullLeft(A(0))) return "Fail 3" + if (isNullRight(A(0))) return "Fail 4" + if (!isNullLeft(null)) return "Fail 5" + if (!isNullRight(null)) return "Fail 6" + if (!isEqualSame(A(0), A(0))) return "Fail 7" + if (isEqualSame(A(0), A(1))) return "Fail 8" + if (isEqualAnyLeft(A(0), 0)) return "Fail 9" + if (isEqualAnyLeft(A(0), null)) return "Fail 10" + if (!isEqualAnyLeft(A(0), A(0))) return "Fail 11" + if (isEqualAnyRight(0, A(0))) return "Fail 12" + if (isEqualAnyRight(null, A(0))) return "Fail 13" + if (!isEqualAnyRight(A(0), A(0))) return "Fail 14" + if (!isEqualSameNullable(null, null)) return "Fail 15" + if (!isEqualSameNullable(A(0), A(0))) return "Fail 16" + if (isEqualSameNullable(null, A(0))) return "Fail 17" + if (isEqualSameNullable(A(0), null)) return "Fail 18" + if (isEqualSameNullable(A(0), A(1))) return "Fail 19" + if (!isEqualAnyNullableLeft(null, null)) return "Fail 20" + if (!isEqualAnyNullableLeft(A(0), A(0))) return "Fail 21" + if (isEqualAnyNullableLeft(A(0), 0)) return "Fail 22" + if (isEqualAnyNullableLeft(null, 0)) return "Fail 23" + if (isEqualAnyNullableLeft(A(0), null)) return "Fail 24" + if (isEqualAnyNullableLeft(A(0), A(1))) return "Fail 25" + if (!isEqualAnyNullableRight(null, null)) return "Fail 26" + if (!isEqualAnyNullableRight(A(0), A(0))) return "Fail 27" + if (isEqualAnyNullableRight(0, A(0))) return "Fail 28" + if (isEqualAnyNullableRight(0, null)) return "Fail 29" + if (isEqualAnyNullableRight(null, A(0))) return "Fail 30" + if (isEqualAnyNullableRight(A(0), A(1))) return "Fail 31" + + if (isNullVacuousLeft(A(null))) return "Fail 32" + if (isNullVacuousRight(A(null))) return "Fail 33" + if (isNullLeft(A(null))) return "Fail 34" + if (isNullRight(A(null))) return "Fail 35" + if (isEqualAnyLeft(A(null), null)) return "Fail 36" + if (isEqualAnyRight(null, A(null))) return "Fail 37" + if (isEqualAnyNullableLeft(A(null), null)) return "Fail 38" + if (isEqualAnyNullableRight(null, A(null))) return "Fail 39" + if (isEqualSameNullable(A(null), null)) return "Fail 42" + if (isEqualSameNullable(null, A(null))) return "Fail 43" + + if (isEqualNullableUnboxedLeft(A(0), A(1))) return "Fail 44" + if (!isEqualNullableUnboxedLeft(A(0), A(0))) return "Fail 45" + if (isEqualNullableUnboxedRight(A(0), A(1))) return "Fail 46" + if (!isEqualNullableUnboxedRight(A(1), A(1))) return "Fail 47" + if (isEqualNullableUnboxedLeft(A(0), null)) return "Fail 48" + if (isEqualNullableUnboxedRight(null, A(1))) return "Fail 49" + + if (isEqualNullableUnboxedRight(null, A(null))) return "Fail 50" + if (isEqualNullableUnboxedLeft(A(null), null)) return "Fail 51" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt new file mode 100644 index 00000000000..825c9dbdff6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt @@ -0,0 +1,60 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val x: T) + +fun isNullVacuousLeft(s: A) = s == null +fun isNullVacuousRight(s: A) = null == s +fun isNullLeft(s: A?) = s == null +fun isNullRight(s: A?) = null == s +fun isEqualSame(s: A, t: A) = s == t +fun isEqualAnyLeft(s: A, t: Any?) = s == t +fun isEqualAnyRight(s: Any?, t: A) = s == t +fun isEqualSameNullable(s: A?, t: A?) = s == t +fun isEqualAnyNullableLeft(s: A?, t: Any?) = s == t +fun isEqualAnyNullableRight(s: Any?, t: A?) = s == t +fun isEqualNullableUnboxedLeft(s: A, t: A?) = s == t +fun isEqualNullableUnboxedRight(s: A?, t: A) = s == t + +fun box(): String { + if (isNullVacuousLeft(A(0))) return "Fail 1" + if (isNullVacuousRight(A(0))) return "Fail 2" + if (isNullLeft(A(0))) return "Fail 3" + if (isNullRight(A(0))) return "Fail 4" + if (!isNullLeft(null)) return "Fail 5" + if (!isNullRight(null)) return "Fail 6" + if (!isEqualSame(A(0), A(0))) return "Fail 7" + if (isEqualSame(A(0), A(1))) return "Fail 8" + if (isEqualAnyLeft(A(0), 0)) return "Fail 9" + if (isEqualAnyLeft(A(0), null)) return "Fail 10" + if (!isEqualAnyLeft(A(0), A(0))) return "Fail 11" + if (isEqualAnyRight(0, A(0))) return "Fail 12" + if (isEqualAnyRight(null, A(0))) return "Fail 13" + if (!isEqualAnyRight(A(0), A(0))) return "Fail 14" + if (!isEqualSameNullable(null, null)) return "Fail 15" + if (!isEqualSameNullable(A(0), A(0))) return "Fail 16" + if (isEqualSameNullable(null, A(0))) return "Fail 17" + if (isEqualSameNullable(A(0), null)) return "Fail 18" + if (isEqualSameNullable(A(0), A(1))) return "Fail 19" + if (!isEqualAnyNullableLeft(null, null)) return "Fail 20" + if (!isEqualAnyNullableLeft(A(0), A(0))) return "Fail 21" + if (isEqualAnyNullableLeft(A(0), 0)) return "Fail 22" + if (isEqualAnyNullableLeft(null, 0)) return "Fail 23" + if (isEqualAnyNullableLeft(A(0), null)) return "Fail 24" + if (isEqualAnyNullableLeft(A(0), A(1))) return "Fail 25" + if (!isEqualAnyNullableRight(null, null)) return "Fail 26" + if (!isEqualAnyNullableRight(A(0), A(0))) return "Fail 27" + if (isEqualAnyNullableRight(0, A(0))) return "Fail 28" + if (isEqualAnyNullableRight(0, null)) return "Fail 29" + if (isEqualAnyNullableRight(null, A(0))) return "Fail 30" + if (isEqualAnyNullableRight(A(0), A(1))) return "Fail 31" + if (isEqualNullableUnboxedLeft(A(0), A(1))) return "Fail 32" + if (!isEqualNullableUnboxedLeft(A(0), A(0))) return "Fail 33" + if (isEqualNullableUnboxedRight(A(0), A(1))) return "Fail 34" + if (!isEqualNullableUnboxedRight(A(1), A(1))) return "Fail 35" + if (isEqualNullableUnboxedLeft(A(0), null)) return "Fail 36" + if (isEqualNullableUnboxedRight(null, A(1))) return "Fail 37" + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt new file mode 100644 index 00000000000..bf0cb8f65fc --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt @@ -0,0 +1,53 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Y(val y: T) + + +OPTIONAL_JVM_INLINE_ANNOTATION +value class NX(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class NY(val y: T) + +fun testNotNull(x: X?, y: Y?) { + val xs = listOf(x) + val ys = listOf(y) + if (!xs.contains(y)) throw AssertionError() + if (xs[0] != ys[0]) throw AssertionError() + if (xs[0] !== ys[0]) throw AssertionError() +} + +fun testNullable(x: NX?, y: NY?) { + val xs = listOf(x) + val ys = listOf(y) + if (xs.contains(y)) throw AssertionError() + if (xs[0] == ys[0]) throw AssertionError() + if (xs[0] === ys[0]) throw AssertionError() +} + +fun testNullsAsNullable(x: NX?, y: NY?) { + val xs = listOf(x) + val ys = listOf(y) + if (!xs.contains(y)) throw AssertionError() + if (xs[0] != ys[0]) throw AssertionError() + if (xs[0] !== ys[0]) throw AssertionError() +} + + +fun box(): String { + testNotNull(null, null) + + testNullable(NX(null), NY(null)) + testNullable(NX(null), null) + testNullable(null, NY(null)) + + testNullsAsNullable(null, null) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt new file mode 100644 index 00000000000..22af8aec283 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt @@ -0,0 +1,17 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val x: T) + +class B { + override fun equals(other: Any?) = true +} + +fun box(): String { + val x: Any? = B() + val y: A = A("") + if (x != y) return "Fail" + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt new file mode 100644 index 00000000000..2507bb37952 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt @@ -0,0 +1,38 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Inner(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A>(val x: T) + +var i = 0 + +fun set1(): A> { + i = 1 + return A(Inner(0)) +} + +fun test1(n: Int): A> { + if (i != 1) + throw IllegalStateException("Fail $n") + i = 0 + return A(Inner(0)) +} + +fun set1Boxed(): Any? = set1() +fun test1Boxed(n: Int): Any? = test1(n) + +fun box(): String { + try { + set1() == test1(1) + set1Boxed() == test1(2) + set1() == test1Boxed(3) + set1Boxed() == test1Boxed(4) + } catch (e: IllegalStateException) { + return e.message ?: "Fail no message" + } + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt new file mode 100644 index 00000000000..cbcf7ed3a74 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt @@ -0,0 +1,35 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val x: T = "" as T) + +var i = 0 + +fun set1(): A { + i = 1 + return A() +} + +fun test1(n: Int): A { + if (i != 1) + throw IllegalStateException("Fail $n") + i = 0 + return A() +} + +fun set1Boxed(): Any? = set1() +fun test1Boxed(n: Int): Any? = test1(n) + +fun box(): String { + try { + set1() == test1(1) + set1Boxed() == test1(2) + set1() == test1Boxed(3) + set1Boxed() == test1Boxed(4) + } catch (e: IllegalStateException) { + return e.message ?: "Fail no message" + } + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt new file mode 100644 index 00000000000..ebd0933f6cc --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt @@ -0,0 +1,35 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val x: T? = null) + +var i = 0 + +fun set1(): A { + i = 1 + return A() +} + +fun test1(n: Int): A { + if (i != 1) + throw IllegalStateException("Fail $n") + i = 0 + return A() +} + +fun set1Boxed(): Any? = set1() +fun test1Boxed(n: Int): Any? = test1(n) + +fun box(): String { + try { + set1() == test1(1) + set1Boxed() == test1(2) + set1() == test1Boxed(3) + set1Boxed() == test1Boxed(4) + } catch (e: IllegalStateException) { + return e.message ?: "Fail no message" + } + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt new file mode 100644 index 00000000000..0d36530028e --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt @@ -0,0 +1,35 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val x: T = 0 as T) + +var i = 0 + +fun set1(): A { + i = 1 + return A() +} + +fun test1(n: Int): A { + if (i != 1) + throw IllegalStateException("Fail $n") + i = 0 + return A() +} + +fun set1Boxed(): Any? = set1() +fun test1Boxed(n: Int): Any? = test1(n) + +fun box(): String { + try { + set1() == test1(1) + set1Boxed() == test1(2) + set1() == test1Boxed(3) + set1Boxed() == test1Boxed(4) + } catch (e: IllegalStateException) { + return e.message ?: "Fail no message" + } + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt b/compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt new file mode 100644 index 00000000000..047447d87c7 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt @@ -0,0 +1,37 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcAny(val x: T) +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcInt(val x: T) +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcLong(val x: T) + +fun id(x: T) = x + +fun box(): String { + if (IcInt(42) == id(IcInt(24))) return "Error 1" + if (IcInt(42) != id(IcInt(42))) return "Error 2" + if (id(IcInt(42)) == IcInt(24)) return "Error 3" + if (id(IcInt(42)) != IcInt(42)) return "Error 4" + if (id(IcInt(42)) == id(IcInt(24))) return "Error 5" + if (id(IcInt(42)) != id(IcInt(42))) return "Error 6" + + if (IcLong(42) == id(IcLong(24))) return "Error 2, 1" + if (IcLong(42) != id(IcLong(42))) return "Error 2, 2" + if (id(IcLong(42)) == IcLong(24)) return "Error 2, 3" + if (id(IcLong(42)) != IcLong(42)) return "Error 2, 4" + if (id(IcLong(42)) == id(IcLong(24))) return "Error 2, 5" + if (id(IcLong(42)) != id(IcLong(42))) return "Error 2, 6" + + if (IcAny(42) == id(IcAny(24))) return "Error 3, 1" + if (IcAny(42) != id(IcAny(42))) return "Error 3, 2" + if (id(IcAny(42)) == IcAny(24)) return "Error 3, 3" + if (id(IcAny(42)) != IcAny(42)) return "Error 3, 4" + if (id(IcAny(42)) == id(IcAny(24))) return "Error 3, 5" + if (id(IcAny(42)) != id(IcAny(42))) return "Error 3, 6" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt b/compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt new file mode 100644 index 00000000000..c4e950c0fb0 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun T.runExt(fn: T.() -> String) = fn() + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = runExt { r } +} + +fun box() = R("OK").test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt b/compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt new file mode 100644 index 00000000000..42fe0f01c7d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun T.runExt(fn: T.() -> String) = fn() + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = runExt { "OK" } +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt b/compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt new file mode 100644 index 00000000000..d07e391faf0 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val s: T) { + val Int.s: Int get() = 42 +} + +fun box(): String { + if (Z("a").toString() == "Z(s=a)") + return "OK" + return "Fail" +} diff --git a/compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt b/compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt new file mode 100644 index 00000000000..7b26fb4fc80 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt @@ -0,0 +1,22 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Result(val isSuccess: T) + +fun interface ResultHandler { + fun onResult(result: Result) +} + +fun doSmth(resultHandler: ResultHandler) { + resultHandler.onResult(Result(true)) +} + +fun box(): String { + var res = "FAIL" + doSmth { result -> + res = if (result.isSuccess) "OK" else "FAIL 1" + } + return res +} diff --git a/compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt b/compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt new file mode 100644 index 00000000000..278a2ba2c24 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt @@ -0,0 +1,20 @@ +// IGNORE_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val value: T) + +fun interface B { + fun f(x: A): A +} + +inline fun g(unit: Unit = Unit, b: B): A { + return b.f(A("Fail")) +} + +fun box(): String { + val b = { _ : A<*> -> A("O") } + return g(b = b).value + g { A("K") }.value +} diff --git a/compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt b/compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt new file mode 100644 index 00000000000..f42b83a7347 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt @@ -0,0 +1,20 @@ +// WITH_STDLIB +// IGNORE_BACKEND: JVM +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Result(val isSuccess: T) + +fun interface ResultHandler { + fun onResult(): Result +} + +fun doSmth(resultHandler: ResultHandler): Result { + return resultHandler.onResult() +} + +fun box(): String { + var res = doSmth { Result(true) } + return if (res.isSuccess) "OK" else "FAIL" +} diff --git a/compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt new file mode 100644 index 00000000000..8fe6e510b90 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt @@ -0,0 +1,11 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +inline fun new(init: (Z) -> Unit): Z = Z(42) as Z + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val value: T) + +fun box(): String = + if (new(fun(z: Z) {}).value == 42) "OK" else "Fail" diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt new file mode 100644 index 00000000000..d57082c604d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt @@ -0,0 +1,15 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +fun foo(s: S): String { + val anon = object { + fun bar() = s.string + } + return anon.bar() +} + +fun box() = foo(S("OK")) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt new file mode 100644 index 00000000000..08b025ca830 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt @@ -0,0 +1,59 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Id(val id: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Name(val name: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Password(val password: T) + +fun Id.test() { + if (id != "OK") throw AssertionError() +} + +fun Id?.test() { + if (this != null) throw AssertionError() +} + +fun Name.test() { + if (name != "OK") throw AssertionError() +} + +fun test(password: Password) { + if (password.password != "OK") throw AssertionError() +} + +class Outer { + fun Id.testExn() { + if (id != "OK") throw AssertionError() + } + + fun Name.testExn() { + if (name != "OK") throw AssertionError() + } + + fun testExn(password: Password) { + if (password.password != "OK") throw AssertionError() + } + + fun testExns() { + Id("OK").testExn() + Name("OK").testExn() + testExn(Password("OK")) + } +} + +fun box(): String { + Id("OK").test() + null.test() + Name("OK").test() + test(Password("OK")) + + Outer().testExns() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt new file mode 100644 index 00000000000..fe385e484af --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt @@ -0,0 +1,21 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Id(val id: T) + +fun test(id: Id) { + if (id.id != "OK") throw AssertionError() +} + +fun test(id: Id?) { + if (id != null) throw AssertionError() +} + +fun box(): String { + test(Id("OK")) + test(null) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt new file mode 100644 index 00000000000..45bb80f9b19 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt @@ -0,0 +1,27 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S1(val s1: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S2(val s2: T) + +object X1 +object X2 + +fun test(s1: S1, x: T) { + if (s1.s1 != "OK" && x != X1) throw AssertionError() +} + +fun test(s2: S2, x: T) { + if (s2.s2 != "OK" && x != X2) throw AssertionError() +} + +fun box(): String { + test(S1("OK"), X1) + test(S2("OK"), X2) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledNameGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledNameGeneric.kt new file mode 100644 index 00000000000..f77dd31b0ea --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledNameGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// TARGET_BACKEND: JVM +// WITH_REFLECT +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.reflect.KFunction +import kotlin.reflect.jvm.javaMethod +import kotlin.test.* + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineClass1(val s: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineClass2(val n: T) + +fun , U : InlineClass2> foo(t: T, u: U) {} + +fun box(): String { + val fooRef: (InlineClass1, InlineClass2) -> Unit = ::foo + val fooMethod = (fooRef as KFunction<*>).javaMethod!! + + assertEquals("[T, U]", fooMethod.genericParameterTypes.asList().toString()) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt new file mode 100644 index 00000000000..0da88bae6d1 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt @@ -0,0 +1,15 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +fun foo(s: S): String { + class Local { + fun bar() = s.string + } + return Local().bar() +} + +fun box() = foo(S("OK")) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt new file mode 100644 index 00000000000..7c2dade24f9 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt @@ -0,0 +1,92 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Id(val id: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Name(val name: T) + +interface IA { + fun fromInterface(id: Id) + fun fromInterface(name: Name) + + fun fromBoth(id: Id) + fun fromBoth(name: Name) + + fun withDefaultImpl(id: Id) { + if (id.id != "OK") throw AssertionError() + } + + fun withDefaultImpl(name: Name) { + if (name.name != "OK") throw AssertionError() + } +} + +abstract class Base { + abstract fun fromClass(id: Id) + abstract fun fromClass(name: Name) + + abstract fun fromBoth(id: Id) + abstract fun fromBoth(name: Name) +} + + +class C : Base(), IA { + override fun fromInterface(id: Id) { + if (id.id != "OK") throw AssertionError() + } + + override fun fromInterface(name: Name) { + if (name.name != "OK") throw AssertionError() + } + + override fun fromClass(id: Id) { + if (id.id != "OK") throw AssertionError() + } + + override fun fromClass(name: Name) { + if (name.name != "OK") throw AssertionError() + } + + override fun fromBoth(id: Id) { + if (id.id != "OK") throw AssertionError() + } + + override fun fromBoth(name: Name) { + if (name.name != "OK") throw AssertionError() + } +} + +fun testIA(a: IA) { + a.fromInterface(Id("OK")) + a.fromInterface(Name("OK")) + + a.fromBoth(Id("OK")) + a.fromBoth(Name("OK")) + + a.withDefaultImpl(Id("OK")) + a.withDefaultImpl(Name("OK")) +} + +fun testBase(b: Base) { + b.fromClass(Id("OK")) + b.fromClass(Name("OK")) + + b.fromBoth(Id("OK")) + b.fromBoth(Name("OK")) +} + +fun testC(c: C) { + c.withDefaultImpl(Id("OK")) + c.withDefaultImpl(Name("OK")) +} + +fun box(): String { + testIA(C()) + testBase(C()) + testC(C()) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt new file mode 100644 index 00000000000..7be1cb11492 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt @@ -0,0 +1,32 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Id(val id: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Name(val name: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Password(val password: T) + +fun test(id: Id) { + if (id.id != "OK") throw AssertionError() +} + +fun test(name: Name) { + if (name.name != "OK") throw AssertionError() +} + +fun test(password: Password) { + if (password.password != "OK") throw AssertionError() +} + +fun box(): String { + test(Id("OK")) + test(Name("OK")) + test(Password("OK")) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt new file mode 100644 index 00000000000..97da74e0118 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt @@ -0,0 +1,39 @@ +// IGNORE_BACKEND: JS, JS_IR, WASM +// IGNORE_BACKEND: JS_IR_ES6 +// FULL_JDK +// WITH_STDLIB +// WASM_MUTE_REASON: IGNORED_IN_JS +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Id(val id: T) + +fun throws() { + throw RuntimeException() +} + +fun test(id: Id) { + throws() +} + +fun foo() { + test(Id("id")) +} + +fun box(): String { + val stackTrace = try { + foo() + throw AssertionError() + } catch (e: RuntimeException) { + e.stackTrace + } + + for (entry in stackTrace) { + if (entry.methodName.startsWith("test")) { + return "OK" + } + } + + throw AssertionError(stackTrace.asList().toString()) +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt new file mode 100644 index 00000000000..b220c83eef0 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt @@ -0,0 +1,21 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Id(val id: T) + +fun test(id: Id, str: String) { + if (id.id != "OK" && str != "1") throw AssertionError() +} + +fun test(str: String, id: Id) { + if (id.id != "OK" && str != "2") throw AssertionError() +} + +fun box(): String { + test(Id("OK"), "1") + test("2", Id("OK")) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt new file mode 100644 index 00000000000..593a1d86420 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +abstract class GenericBase { + abstract fun foo(x: T): T +} + +interface IFoo { + fun foo(x: String): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Str(val str: T) + +class Derived : GenericBase>(), IFoo { + override fun foo(x: Str): Str = x + override fun foo(x: String): String = x +} + +fun box(): String { + if (Derived().foo(Str("OK")).str != "OK") throw AssertionError() + if (Derived().foo("OK") != "OK") throw AssertionError() + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt new file mode 100644 index 00000000000..0986049cd4e --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt @@ -0,0 +1,16 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +abstract class GenericBase { + abstract fun foo(x: T): T +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Str(val str: T) + +class Derived : GenericBase>() { + override fun foo(x: Str): Str = x +} + +fun box() = Derived().foo(Str("OK")).str \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt new file mode 100644 index 00000000000..d967474829a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt @@ -0,0 +1,16 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Str(val string: T) + +class C { + var s = Str("") +} + +fun box(): String { + val x = C() + x.s = Str("OK") + return x.s.string +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt new file mode 100644 index 00000000000..9f67e0ab2f9 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt @@ -0,0 +1,19 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.* + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +fun foo(s: S) = s + +fun box(): String { + val fooRef = ::foo + + assertEquals("abc", fooRef.invoke(S("abc")).string) + assertEquals("foo", fooRef.name) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledNameGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledNameGeneric.kt new file mode 100644 index 00000000000..b70fb73e7a5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledNameGeneric.kt @@ -0,0 +1,32 @@ +// TARGET_BACKEND: JVM +// WITH_REFLECT +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.* + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +fun test(s: S) { + class Local + + val localKClass = Local::class + val localJClass = localKClass.java + + val kName = localKClass.simpleName + // See https://youtrack.jetbrains.com/issue/KT-29413 + // assertEquals("Local", kName) + if (kName != "Local" && kName != "test\$Local") throw AssertionError("Fail KClass: $kName") + + assertTrue { localJClass.isLocalClass } + + val jName = localJClass.simpleName + if (jName != "Local" && jName != "test\$Local") throw AssertionError("Fail java.lang.Class: $jName") +} + +fun box(): String { + test(S("")) + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt new file mode 100644 index 00000000000..6c068012d6d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt @@ -0,0 +1,23 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.* + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +var prop = S("") + +fun box(): String { + val propRef = ::prop + + assertEquals(S(""), propRef.get()) + + propRef.set(S("abc")) + assertEquals(S("abc"), propRef.get()) + + assertEquals("prop", propRef.name) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt new file mode 100644 index 00000000000..5e3b8b7b2f3 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt @@ -0,0 +1,16 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +class Outer { + private fun foo(s: S) = s.string + + inner class Inner(val string: String) { + fun bar() = foo(S(string)) + } +} + +fun box(): String = Outer().Inner("OK").bar() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt new file mode 100644 index 00000000000..18082593092 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt @@ -0,0 +1,20 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +class Outer { + private var pr = S("") + + inner class Inner() { + fun updateOuter(string: String): String { + pr = S(string) + return pr.string + } + } +} + +fun box(): String = + Outer().Inner().updateOuter("OK") \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt new file mode 100644 index 00000000000..bf9237b021d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: 1.kt + +fun box(): String = X(Z("OK")).z.result + +// FILE: 2.kt + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val result: T) + +class X(val z: Z) diff --git a/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt new file mode 100644 index 00000000000..9fb033419e7 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: 2.kt + +fun box(): String = X(Z("OK")).z.result + +// FILE: 1.kt + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val result: T) + +class X(val z: Z) diff --git a/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt new file mode 100644 index 00000000000..3567d89bfcf --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +class Test(val x: S, val y: S = S("K")) { + val test = x.string + y.string +} + +fun box() = Test(S("O")).test \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt new file mode 100644 index 00000000000..391a41c4965 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +abstract class Base(val x: S) + +class Test(x: S) : Base(x) + +fun box() = Test(S("OK")).x.string \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt new file mode 100644 index 00000000000..68f46ce9526 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +abstract class Base(val x: S) + +class Test : Base { + constructor() : super(S("OK")) +} + +fun box() = Test().x.string \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt new file mode 100644 index 00000000000..eaca72c25d5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +class Test(val x: S, val y: S) { + constructor(x: S) : this(x, S("K")) + + val test = x.string + y.string +} + +fun box() = Test(S("O")).test \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt new file mode 100644 index 00000000000..e9fbf2fd844 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +enum class Test(val s: S) { + OK(S("OK")) +} + +fun box() = Test.OK.s.string \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt new file mode 100644 index 00000000000..74940fedf9f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +class Outer(val s1: S) { + inner class Inner(val s2: S) { + val test = s1.string + s2.string + } +} + +fun box() = Outer(S("O")).Inner(S("K")).test \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt new file mode 100644 index 00000000000..8d732c746da --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt @@ -0,0 +1,10 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +class Test(val s: S) + +fun box() = Test(S("OK")).s.string \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt new file mode 100644 index 00000000000..6c9c74a7fc6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +class Outer private constructor(val s: S) { + class Nested { + fun test(s: S) = Outer(s) + } +} + +fun box() = Outer.Nested().test(S("OK")).s.string \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt new file mode 100644 index 00000000000..c0e4ae1f655 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +sealed class Sealed(val x: S) + +class Test(x: S) : Sealed(x) + +fun box() = Test(S("OK")).x.string \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt new file mode 100644 index 00000000000..cfc21597f7a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val string: T) + +class Test(val s: S) { + constructor(x: String, s: S) : this(S(x + s.string)) +} + +fun box() = Test("O", S("K")).s.string \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt b/compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt new file mode 100644 index 00000000000..1656237d985 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt @@ -0,0 +1,185 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class SingleInitBlock(val s: T) { + init { + res = s + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class MultipleInitBlocks(val a: T) { + init { + res = "O" + } + init { + res += "K" + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Lambda(val s: T) { + init { + val lambda = { res = s } + lambda() + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class FunLiteral(val s: T) { + init { + val funLiteral = fun() { + res = s + } + funLiteral() + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ObjectLiteral(val s: T) { + init { + val objectLiteral = object { + fun run() { + res = s + } + } + objectLiteral.run() + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class LocalFunction(val s: T) { + init { + fun local() { + res = s + } + local() + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class LocalClass(val s: T) { + init { + class Local { + fun run() { + res = s + } + } + Local().run() + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Getter(val s: T) { + init { + res = ok + } + + val ok: String + get() = s +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class GetterThis(val s: T) { + init { + res = this.ok + } + + val ok: String + get() = s +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Method(val s: T) { + init { + res = ok(this) + } + + fun ok(m: Method): String = m.s +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class MethodThis(val s: T) { + init { + res = this.ok(this) + } + + fun ok(m: MethodThis): String = m.s +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineFun(val s: T) { + init { + res = ok() + } + + inline fun ok(): String = s +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineFunThis(val s: T) { + init { + res = this.ok() + } + + inline fun ok(): String = s +} + +var res: String = "FAIL" + +fun box(): String { + SingleInitBlock("OK") + if (res != "OK") return "FAIL 1: $res" + + res = "FAIL 2" + MultipleInitBlocks(null) + if (res != "OK") return "FAIL 21: $res" + + res = "FAIL 3" + Lambda("OK") + if (res != "OK") return "FAIL 31: $res" + + res = "FAIL 4" + FunLiteral("OK") + if (res != "OK") return "FAIL 41: $res" + + res = "FAIL 5" + ObjectLiteral("OK") + if (res != "OK") return "FAIL 51: $res" + + res = "FAIL 6" + LocalFunction("OK") + if (res != "OK") return "FAIL 61: $res" + + res = "FAIL 7" + LocalClass("OK") + if (res != "OK") return "FAIL 71: $res" + + res = "FAIL 8" + Getter("OK") + if (res != "OK") return "FAIL 81: $res" + + res = "FAIL 9" + GetterThis("OK") + if (res != "OK") return "FAIL 91: $res" + + res = "FAIL 10" + Method("OK") + if (res != "OK") return "FAIL 101: $res" + + res = "FAIL 11" + MethodThis("OK") + if (res != "OK") return "FAIL 111: $res" + + res = "FAIL 12" + InlineFun("OK") + if (res != "OK") return "FAIL 121: $res" + + res = "FAIL 13" + InlineFunThis("OK") + if (res != "OK") return "FAIL 131: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt new file mode 100644 index 00000000000..5226468f15a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt @@ -0,0 +1,46 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Name(private val value: T) { + fun asValue(): String = value +} + +fun concat(a: Name, b: Name) = a.asValue() + b.asValue() + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(private val value: T) { + fun asValue(): Int = value +} + +fun box(): String { + val o = inlinedRun { + Name("O") + } + + val k = notInlinedRun { + Name("K") + } + + if (concat(o, k) != "OK") return "fail 1" + + val a = UInt(1) + val one = inlinedRun { + a + } + + if (one.asValue() != 1) return "fail 2" + + val b = UInt(2) + val two = notInlinedRun { + b + } + + if (two.asValue() != 2) return "fail 3" + + return "OK" +} + +inline fun inlinedRun(block: () -> R): R = block() +fun notInlinedRun(block: () -> R): R = block() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt new file mode 100644 index 00000000000..b27c98c68b3 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt @@ -0,0 +1,47 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ZArray(val storage: IntArray) : Collection> { + override val size: Int + get() = storage.size + + override fun contains(element: Z): Boolean { + return storage.contains(element.x) + } + + override fun containsAll(elements: Collection>): Boolean { + return elements.all { contains(it) } + } + + override fun isEmpty(): Boolean { + return storage.isEmpty() + } + + private class ZArrayIterator(val storage: IntArray): Iterator> { + var index = 0 + + override fun hasNext(): Boolean = index < storage.size + + override fun next(): Z = Z(storage[index++]) + } + + override fun iterator(): Iterator> = ZArrayIterator(storage) +} + + +fun box(): String { + val zs = ZArray(IntArray(5)) + + val testSize = zs.size + if (testSize != 5) return "Failed: testSize=$testSize" + + val testContains = zs.contains(object {} as Any) + if (testContains) return "Failed: testContains=$testContains" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt new file mode 100644 index 00000000000..bdc0cdb6438 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt @@ -0,0 +1,60 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ZArray(val storage: IntArray) : List> { + override val size: Int + get() = storage.size + + override fun contains(element: Z): Boolean { + return storage.contains(element.x) + } + + override fun containsAll(elements: Collection>): Boolean { + return elements.all { contains(it) } + } + + override fun isEmpty(): Boolean { + return storage.isEmpty() + } + + override fun get(index: Int): Z = Z(storage[index]) + + override fun indexOf(element: Z): Int = storage.indexOf(element.x) + + override fun lastIndexOf(element: Z): Int = storage.lastIndexOf(element.x) + + override fun listIterator(): ListIterator> = ZArrayIterator(storage) + + override fun listIterator(index: Int): ListIterator> = ZArrayIterator(storage, index) + + override fun subList(fromIndex: Int, toIndex: Int): List> = TODO() + + private class ZArrayIterator(val storage: IntArray, var index: Int = 0): ListIterator> { + override fun hasNext(): Boolean = index < storage.size + override fun next(): Z = Z(storage[index++]) + override fun nextIndex(): Int = index + 1 + + override fun hasPrevious(): Boolean = index > 0 + override fun previous(): Z = Z(storage[index--]) + override fun previousIndex(): Int = index - 1 + } + + override fun iterator(): Iterator> = ZArrayIterator(storage) +} + + +fun box(): String { + val zs = ZArray(IntArray(5)) + + val testElement = object {} as Any + zs.contains(testElement) + zs.indexOf(testElement) + zs.lastIndexOf(testElement) + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt new file mode 100644 index 00000000000..40b185120b1 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt @@ -0,0 +1,61 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ZArrayMap(val storage: IntArray) : Map, Z> { + override val size: Int + get() = storage.size + + private class MapEntry(val i: Int, val si: Int): Map.Entry, Z> { + override val key: Z get() = Z(i) + override val value: Z get() = Z(si) + } + + private class MapEntrySet(val storage: IntArray) : AbstractSet, Z>>() { + private inner class MyIterator : Iterator, Z>> { + var index = 0 + override fun hasNext(): Boolean = index < size + override fun next(): Map.Entry, Z> = MapEntry(index, storage[index++]) + } + + override val size: Int + get() = storage.size + + override fun iterator(): Iterator, Z>> = MyIterator() + } + + override val entries: Set, Z>> + get() = MapEntrySet(storage) + + override val keys: Set> + get() = (0 until size).mapTo(HashSet()) { Z(it) } + + override val values: Collection> + get() = storage.mapTo(ArrayList()) { Z(it) } + + override fun containsKey(key: Z): Boolean = key.x in (0 until size) + + override fun containsValue(value: Z): Boolean = storage.contains(value.x) + + override fun get(key: Z) = storage.getOrNull(key.x)?.let { Z(it) } + + override fun isEmpty(): Boolean = size > 0 +} + +fun box(): String { + val zm = ZArrayMap(IntArray(5)) + + zm.containsKey(Z(0)) + zm.containsValue(Z(0)) + zm[Z(0)] + + zm.containsKey(object {} as Any) + zm.containsValue(object {} as Any) + zm.get(object {} as Any) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt new file mode 100644 index 00000000000..e1f40c1d93e --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt @@ -0,0 +1,19 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineFloat(val data: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineDouble(val data: T) + +fun box(): String { + if (InlineFloat(0.0f) == InlineFloat(-0.0f)) throw AssertionError() + if (InlineFloat(Float.NaN) != InlineFloat(Float.NaN)) throw AssertionError() + + if (InlineDouble(0.0) == InlineDouble(-0.0)) throw AssertionError() + if (InlineDouble(Double.NaN) != InlineDouble(Double.NaN)) throw AssertionError() + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt new file mode 100644 index 00000000000..81f8e34ff51 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt @@ -0,0 +1,20 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +var result = "Fail" + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val value: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class B>(val a: T) { + init { + result = a.value + } +} + +fun box(): String { + B(A("OK")) + return result +} diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt new file mode 100644 index 00000000000..35912a93739 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt @@ -0,0 +1,33 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val int: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Str(val string: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class NStr(val string: T) + +fun fooZ(x: Z) = x + +fun fooStr(x: Str) = x + +fun fooNStr(x: NStr) = x + + +fun box(): String { + val fnZ: (Z) -> Z = ::fooZ + if (fnZ.invoke(Z(42)).int != 42) throw AssertionError() + + val fnStr: (Str) -> Str = ::fooStr + if (fnStr.invoke(Str("str")).string != "str") throw AssertionError() + + val fnNStr: (NStr) -> NStr = ::fooNStr + if (fnNStr.invoke(NStr(null)).string != null) throw AssertionError() + if (fnNStr.invoke(NStr("nstr")).string != "nstr") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollectionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollectionGeneric.kt new file mode 100644 index 00000000000..20962ae1aa5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollectionGeneric.kt @@ -0,0 +1,34 @@ +// WITH_STDLIB +// TARGET_BACKEND: JVM +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class MyUInt(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class MyUIntArray(private val storage: IntArray) : Collection> { + public override val size: Int get() = storage.size + + override operator fun iterator() = TODO() + override fun contains(element: MyUInt): Boolean = storage.contains(element.x) + override fun containsAll(elements: Collection>): Boolean = elements.all { storage.contains(it.x) } + override fun isEmpty(): Boolean = TODO() +} + +fun checkBoxed(c: Collection, element: T): Boolean { + return c.contains(element) && c.containsAll(listOf(element)) +} + +fun box(): String { + val uints = MyUIntArray(intArrayOf(0, 1, 42)) + + if (MyUInt(42) !in uints) return "Fail 1" + + val ints = listOf(MyUInt(1), MyUInt(0)) + if (!uints.containsAll(ints)) return "Fail 2" + + if (!checkBoxed(uints, MyUInt(0))) return "Fail 3" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt new file mode 100644 index 00000000000..24c267fa342 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt @@ -0,0 +1,21 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +var result = "Fail" + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val value: T) { + fun f() = value + "K" +} + +class B(val a: A) { + val result: String + init { + result = a.f() + } +} + +fun box(): String { + return B(A("O")).result +} diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt new file mode 100644 index 00000000000..f607d83e3c9 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt @@ -0,0 +1,47 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.* + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val value: T) + +fun test1_1(z: Z) = "$z" +fun test1_2(z: Z) = "$z$z" +fun test1_many(z: Z) = "$z $z $z" +fun test1_concat1(z: Z) = "-" + z +fun test1_concat2(z: Z) = "$z" + z +fun test1_concat3(z: Z) = "-" + z + z + +fun test2_1(z: Z?) = "$z" +fun test2_2(z: Z?) = "$z$z" +fun test2_many(z: Z?) = "$z $z $z" +fun test2_concat1(z: Z?) = "-" + z +fun test2_concat2(z: Z?) = "$z" + z +fun test2_concat3(z: Z?) = "-" + z + z + +fun box(): String { + assertEquals("Z(value=42)", test1_1(Z(42))) + assertEquals("Z(value=42)Z(value=42)", test1_2(Z(42))) + assertEquals("Z(value=42) Z(value=42) Z(value=42)", test1_many(Z(42))) + assertEquals("-Z(value=42)", test1_concat1(Z(42))) + assertEquals("Z(value=42)Z(value=42)", test1_concat2(Z(42))) + assertEquals("-Z(value=42)Z(value=42)", test1_concat3(Z(42))) + + assertEquals("null", test2_1(null)) + assertEquals("nullnull", test2_2(null)) + assertEquals("null null null", test2_many(null)) + assertEquals("-null", test2_concat1(null)) + assertEquals("nullnull", test2_concat2(null)) + assertEquals("-nullnull", test2_concat3(null)) + + assertEquals("Z(value=42)", test2_1(Z(42))) + assertEquals("Z(value=42)Z(value=42)", test2_2(Z(42))) + assertEquals("Z(value=42) Z(value=42) Z(value=42)", test2_many(Z(42))) + assertEquals("-Z(value=42)", test2_concat1(Z(42))) + assertEquals("Z(value=42)Z(value=42)", test2_concat2(Z(42))) + assertEquals("-Z(value=42)Z(value=42)", test2_concat3(Z(42))) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt new file mode 100644 index 00000000000..f2eb4433eb0 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt @@ -0,0 +1,13 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val z: T) + +var f = Foo("zzz") + +fun box(): String { + (::f).set(Foo("OK")) + return (::f).get().z +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt new file mode 100644 index 00000000000..add51ba230d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt @@ -0,0 +1,36 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val int: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(val long: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Str(val string: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Obj(val obj: T) + +fun box(): String { + var xz = Z(0) + var xl = L(0L) + var xs = Str("") + var xo = Obj("") + + run { + xz = Z(42) + xl = L(1234L) + xs = Str("abc") + xo = Obj("def") + } + + if (xz.int != 42) throw AssertionError() + if (xl.long != 1234L) throw AssertionError() + if (xs.string != "abc") throw AssertionError() + if (xo.obj != "def") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt new file mode 100644 index 00000000000..ce1fcec77b2 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt @@ -0,0 +1,37 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val int: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(val long: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Str(val string: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Obj(val obj: T) + +fun box(): String { + var xz = Z(0) + var xl = L(0L) + var xs = Str("") + var xo = Obj("") + + val fn = { + xz = Z(42) + xl = L(1234L) + xs = Str("abc") + xo = Obj("def") + } + fn() + + if (xz.int != 42) throw AssertionError() + if (xl.long != 1234L) throw AssertionError() + if (xs.string != "abc") throw AssertionError() + if (xo.obj != "def") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt new file mode 100644 index 00000000000..2c5509c6507 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt @@ -0,0 +1,34 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Augmented(val x: T) { + override fun toString(): String = (x + 1).toString() +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class AsAny(val a: T) { + override fun toString(): String = "AsAny: $a" +} + +data class AugmentedAndAsAny(val a: Augmented, val b: AsAny) + +fun box(): String { + val a = Augmented(0) + val single = "$a" + if (single != "1") return "Fail 1: $single" + + val asAny = AsAny(42) + val asAnyString = "$asAny" + if (asAnyString != "AsAny: 42") return "Fail 2: $asAnyString" + + val b = Augmented(1) + val two = "$a and $b" + if (two != "1 and 2") return "Fail 3: $two" + + val d = AugmentedAndAsAny(a, asAny) + if (d.toString() != "AugmentedAndAsAny(a=1, b=AsAny: 42)") return "Fail 4: $d" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt new file mode 100644 index 00000000000..3e0aae9ee5e --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt @@ -0,0 +1,22 @@ +// IGNORE_BACKEND_FIR: JVM_IR +// FIR status: not supported in JVM +// IGNORE_BACKEND: JVM +// IGNORE_BACKEND: JVM_IR +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +@file:Suppress("RESERVED_MEMBER_INSIDE_VALUE_CLASS") + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val data: T) { + override fun equals(other: Any?): Boolean = + other is Z `&&` + data % 256 == other.data % 256 +} + +fun box(): String { + if (Z(0) != Z(256)) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt new file mode 100644 index 00000000000..a0434ad1ee2 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt @@ -0,0 +1,17 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val data: T) + +fun box(): String { + if (Z(0) != Z(0)) throw AssertionError() + if (Z(0) == Z(1)) throw AssertionError() + + if (Z(1234).hashCode() != 1234) throw AssertionError(Z(1234).hashCode().toString()) + + if (Z(0).toString() != "Z(data=0)") throw AssertionError(Z(0).toString()) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt new file mode 100644 index 00000000000..ef841a8258a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt @@ -0,0 +1,34 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val int: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(val long: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Str(val string: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Obj(val obj: T) + +inline fun s1Z(x: Z, fn: (Int, Z) -> R) = fn(1, x) +inline fun s1L(x: L, fn: (Int, L) -> R) = fn(1, x) +inline fun s1Str(x: Str, fn: (Int, Str) -> R) = fn(1, x) +inline fun s1Obj(x: Obj, fn: (Int, Obj) -> R) = fn(1, x) + +fun testS1Z(a: Z) = s1Z(a) { i, xx -> Z(xx.int + i) } +fun testS1L(a: L) = s1L(a) { i, xx -> L(xx.long + i.toLong()) } +fun testS1Str(a: Str) = s1Str(a) { i, xx -> Str(xx.string + i.toString()) } +fun testS1Obj(a: Obj) = s1Obj(a) { i, xx -> Obj(xx.obj.toString() + i.toString()) } + +fun box(): String { + if (testS1Z(Z(42)).int != 43) throw AssertionError() + if (testS1L(L(42L)).long != 43L) throw AssertionError() + if (testS1Str(Str("abc")).string != "abc1") throw AssertionError() + if (testS1Obj(Obj("abc")).obj != "abc1") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt new file mode 100644 index 00000000000..ec1d865bfd4 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt @@ -0,0 +1,53 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class AsAny(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class AsInt(val x: T) + +inline fun Any?.checkcast(): T = this as T + +object Reference { + fun transform(a: AsAny): AsAny = a as AsAny + fun transformNullable(a: AsAny?): AsAny = a as AsAny + fun transformToNullable(a: AsAny): AsAny? = a as AsAny + fun transformToNullableTarget(a: AsAny): AsAny? = a as AsAny? + fun transformNullableToNullableTarget(a: AsAny?): AsAny? = a as AsAny? +} + +object Primitive { + fun transform(a: AsInt): AsInt = a as AsInt + fun transformNullable(a: AsInt?): AsInt = a as AsInt + fun transformToNullable(a: AsInt): AsInt? = a as AsInt + fun transformToNullableTarget(a: AsInt): AsInt? = a as AsInt? + fun transformNullableToNullableTarget(a: AsInt?): AsInt? = a as AsInt? +} + +fun box(): String { + val a = AsAny(42) + val b1 = Reference.transform(a) + val b2 = Reference.transformNullable(a) + val b3 = Reference.transformToNullable(a) + val b4 = Reference.transformToNullableTarget(a) + val b5 = Reference.transformNullableToNullableTarget(a) + val b6 = Reference.transformNullableToNullableTarget(null) + + val b7 = a.checkcast>() + if (b7.x != a.x) return "Fail 1" + + val c = AsInt(42) + val d1 = Primitive.transform(c) + val d2 = Primitive.transformNullable(c) + val d3 = Primitive.transformToNullable(c) + val d4 = Primitive.transformToNullableTarget(c) + val d5 = Primitive.transformNullableToNullableTarget(c) + val d6 = Primitive.transformNullableToNullableTarget(null) + + val d7 = c.checkcast>() + if (d7.x != c.x) return "Fail 2" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt new file mode 100644 index 00000000000..3dd3e054e2b --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt @@ -0,0 +1,29 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val int: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(val long: T) + +inline fun s0(x: T, fn: (Int, T) -> R) = fn(0, x) + +inline fun weirdMix(x: T, fn: (Int, T, Long, T) -> R) = fn(0, x, 0L, x) + +fun testS0Z(x: Z) = s0(x) { _, xx -> Z(xx.int + 1) } +fun testS0L(x: L) = s0(x) { _, xx -> L(xx.long + 1L) } + +fun testWeirdMixZ(x: Z) = weirdMix(x) { _, xx, _, _ -> Z(xx.int + 1) } +fun testWeirdMixL(x: L) = weirdMix(x) { _, xx, _, _ -> L(xx.long + 1L) } + +fun box(): String { + if (testS0Z(Z(42)).int != 43) throw AssertionError() + if (testS0L(L(42L)).long != 43L) throw AssertionError() + + if (testWeirdMixZ(Z(42)).int != 43) throw AssertionError() + if (testWeirdMixL(L(42L)).long != 43L) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt new file mode 100644 index 00000000000..43171bba891 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt @@ -0,0 +1,29 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Str(val string: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Obj(val obj: T) + +inline fun s0(x: T, fn: (Int, T) -> R) = fn(0, x) + +inline fun weirdMix(x: T, fn: (Int, T, Long, T) -> R) = fn(0, x, 0L, x) + +fun testS0Str(x: Str) = s0(x) { _, xx -> Str(xx.string + "123") } +fun testS0Any(x: Obj) = s0(x) { _, xx -> Obj(xx.obj.toString() + "123") } + +fun testWeirdMixStr(x: Str) = weirdMix(x) { _, xx, _, _ -> Str(xx.string + "123") } +fun testWeirdMixAny(x: Obj) = weirdMix(x) { _, xx, _, _ -> Obj(xx.obj.toString() + "123") } + +fun box(): String { + if (testS0Str(Str("abc")).string != "abc123") throw AssertionError() + if (testS0Any(Obj("abc")).obj != "abc123") throw AssertionError() + + if (testWeirdMixStr(Str("abc")).string != "abc123") throw AssertionError() + if (testWeirdMixAny(Obj("abc")).obj != "abc123") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt b/compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt new file mode 100644 index 00000000000..b8d5642a35c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +inline fun T.runInlineExt(fn: T.() -> String) = fn() + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = runInlineExt { r } +} + +fun box() = R("OK").test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt new file mode 100644 index 00000000000..f71fb20de80 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +inline fun T.runInlineExt(fn: T.() -> String) = fn() + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = runInlineExt { "OK" } +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt new file mode 100644 index 00000000000..4a5119df290 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt @@ -0,0 +1,17 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val x: T) { + inline fun inc(): Foo = Foo(x + 1) as Foo +} + +fun box(): String { + val a = Foo(0) + val b = a.inc().inc() + + if (b.x != 2) return "fail" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/inlineInCompanionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineInCompanionGeneric.kt new file mode 100644 index 00000000000..49c4ecf0312 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineInCompanionGeneric.kt @@ -0,0 +1,19 @@ +// TARGET_BACKEND: JVM_IR +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// FILE: R.kt +import kotlin.jvm.JvmInline + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(val value: T) { + companion object { + inline fun ok() = R("OK") + } +} + +// FILE: test.kt + +fun box(): String = R.ok().value + + diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt new file mode 100644 index 00000000000..a628910c0cc --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt @@ -0,0 +1,20 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IFoo { + fun getO(): String + val k: String + + val ok: String get() = getO() + k +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineFooImpl(val s: T): IFoo { + override fun getO(): String = s + override val k: String get() = "K" +} + +class Test(s: String) : IFoo by InlineFooImpl(s) + +fun box() = Test("O").ok \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt new file mode 100644 index 00000000000..16b9a0bfe4e --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Wrapper(val id: T) + +class DMap(private val map: Map, String>) : + Map, String> by map + +fun box(): String { + val dmap = DMap(mutableMapOf(Wrapper(42) to "OK")) + return dmap[Wrapper(42)] ?: "Fail" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt new file mode 100644 index 00000000000..a78e059c58a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt @@ -0,0 +1,42 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.assertEquals + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) + +interface IFoo { + val S.extVal: String +} + +interface GFoo { + val T.extVal: String +} + +object FooImpl : IFoo { + override val S.extVal: String + get() = x +} + +object GFooImpl : GFoo> { + override val S.extVal: String + get() = x +} + +class TestFoo : IFoo by FooImpl + +class TestGFoo : GFoo> by GFooImpl + +fun box(): String { + with(TestFoo()) { + assertEquals("OK", S("OK").extVal) + } + + with(TestGFoo()) { + assertEquals("OK", S("OK").extVal) + } + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt new file mode 100644 index 00000000000..c3f5c0528ea --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt @@ -0,0 +1,22 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.assertEquals + +interface IFoo { + fun foo(s: String): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) : IFoo { + override fun foo(s: String): String = x.toString() + s +} + +class Test(x: Int) : IFoo by Z(x) + +fun box(): String { + assertEquals("1OK", Test(1).foo("OK")) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt new file mode 100644 index 00000000000..5210ab815d6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt @@ -0,0 +1,22 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.assertEquals + +interface IFoo { + fun foo(s: String): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) : IFoo { + override fun foo(s: String): String = x.toString() + s +} + +class Test(x: Long) : IFoo by Z(x) + +fun box(): String { + assertEquals("1OK", Test(1L).foo("OK")) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt new file mode 100644 index 00000000000..6e16bcbc674 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt @@ -0,0 +1,45 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.assertEquals + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) + +interface IFoo { + fun memberFun(s1: S, s2: String): String + fun memberFunT(x1: T, x2: String): String + fun genericMemberFun(x1: T, x2: X): String + fun S.memberExtFun(s: String): String + fun T.memberExtFunT(x: String): String + fun T.genericMemberExtFun(x: X): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class FooImpl(val xs: Array) : IFoo> { + override fun memberFun(s1: S, s2: String): String = xs[0] + s1.x + s2 + override fun memberFunT(x1: S, x2: String): String = xs[0] + x1.x + x2 + override fun genericMemberFun(x1: S, x2: X): String = xs[0] + x1.x + x2.toString() + override fun S.memberExtFun(s: String): String = xs[0] + this.x + s + override fun S.memberExtFunT(x: String): String = xs[0] + this.x + x + override fun S.genericMemberExtFun(x: X): String = xs[0] + this.x + x.toString() +} + +class Test : IFoo> by FooImpl(arrayOf("1")) + +fun box(): String { + val test = Test() + + assertEquals("1OK", test.memberFun(S("O"), "K")) + assertEquals("1OK", test.memberFunT(S("O"), "K")) + assertEquals("1OK", test.genericMemberFun(S("O"), "K")) + + with(test) { + assertEquals("1OK", S("O").memberExtFun("K")) + assertEquals("1OK", S("O").memberExtFunT("K")) + assertEquals("1OK", S("O").genericMemberExtFun("K")) + } + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt new file mode 100644 index 00000000000..aa6b793b610 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt @@ -0,0 +1,44 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.assertEquals + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) + +interface IFoo { + fun memberFun(s1: S, s2: String): String + fun memberFunT(x1: T, x2: String): String + fun genericMemberFun(x1: T, x2: X): String + fun S.memberExtFun(s: String): String + fun T.memberExtFunT(x: String): String + fun T.genericMemberExtFun(x: X): String +} + +object FooImpl : IFoo> { + override fun memberFun(s1: S, s2: String): String = s1.x + s2 + override fun memberFunT(x1: S, x2: String): String = x1.x + x2 + override fun genericMemberFun(x1: S, x2: X): String = x1.x + x2.toString() + override fun S.memberExtFun(s: String): String = this.x + s + override fun S.memberExtFunT(x: String): String = this.x + x + override fun S.genericMemberExtFun(x: X): String = this.x + x.toString() +} + +class Test : IFoo> by FooImpl + +fun box(): String { + val test = Test() + + assertEquals("OK", test.memberFun(S("O"), "K")) + assertEquals("OK", test.memberFunT(S("O"), "K")) + assertEquals("OK", test.genericMemberFun(S("O"), "K")) + + with(test) { + assertEquals("OK", S("O").memberExtFun("K")) + assertEquals("OK", S("O").memberExtFunT("K")) + assertEquals("OK", S("O").genericMemberExtFun("K")) + } + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt new file mode 100644 index 00000000000..f711255226d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt @@ -0,0 +1,30 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val s: T) + +interface B { + fun f(x: T, y: U): String +} + +interface L { + fun f(x: T, y: A): String +} + +interface R { + fun f(x: A, y: T): String +} + +open class C { + open fun f(x: A, y: A): String = y.s +} + +class D: C(), B, A>, L>, R> { + override fun f(x: A, y: A): String = x.s +} + +fun box(): String { + return (D() as B, A>).f(A("OK"), A("Fail")) +} diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt new file mode 100644 index 00000000000..7c5dcde41c6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt @@ -0,0 +1,20 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val s: T) + +interface B { + fun f(x: T): T +} + +open class C { + open fun f(x: A): A = A("OK") +} + +class D : C(), B> + +fun box(): String { + return (D() as B>).f(A("Fail")).s +} diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt new file mode 100644 index 00000000000..d69bd3a5107 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val s: T) + +abstract class B { + abstract fun f(x: T, y: U): String +} + +open class C: B>() { + override fun f(x: T, y: A): String = y.s + " 1" +} + +open class D : C>() { + override fun f(x: A, y: A): String = y.s + " 2" +} + +class E : D() { + override fun f(x: A, y: A): String = x.s +} + +fun box(): String { + return E().f(A("OK"), A("Fail")) +} diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt new file mode 100644 index 00000000000..49a1de7e2eb --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt @@ -0,0 +1,43 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IFoo { + fun Long.foo() = bar() + fun bar(): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) : IFoo { + override fun bar(): String = "OK" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(val x: T) : IFoo { + override fun bar(): String = "OK" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) : IFoo { + override fun bar(): String = "OK" +} + +fun Z.testZ() { + if (1L.foo() != "OK") throw AssertionError() +} + +fun L.testL() { + if (1L.foo() != "OK") throw AssertionError() +} + +fun S.testS() { + if (1L.foo() != "OK") throw AssertionError() +} + +fun box(): String { + Z(42).testZ() + L(4L).testL() + S("").testS() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt new file mode 100644 index 00000000000..781efcfed9a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt @@ -0,0 +1,31 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IFoo { + fun foo() = bar() + fun bar(): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) : IFoo { + override fun bar(): String = "OK" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(val x: T) : IFoo { + override fun bar(): String = "OK" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) : IFoo { + override fun bar(): String = "OK" +} + +fun box(): String { + if (Z(42).foo() != "OK") throw AssertionError() + if (L(4L).foo() != "OK") throw AssertionError() + if (S("").foo() != "OK") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt new file mode 100644 index 00000000000..16e5af72d2a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt @@ -0,0 +1,43 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IFoo> { + fun T.foo(): String = bar() + fun bar(): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) : IFoo> { + override fun bar(): String = "OK" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(val x: T) : IFoo> { + override fun bar(): String = "OK" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) : IFoo> { + override fun bar(): String = x +} + +fun Z.testZ() { + if (Z(42).foo() != "OK") throw AssertionError() +} + +fun L.testL() { + if (L(4L).foo() != "OK") throw AssertionError() +} + +fun S.testS() { + if (S("OK").foo() != "OK") throw AssertionError() +} + +fun box(): String { + Z(42).testZ() + L(4L).testL() + S("").testS() + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt new file mode 100644 index 00000000000..8f9d5b6f2e3 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt @@ -0,0 +1,16 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IFoo> { + fun foo(t: T): String = t.bar() + fun bar(): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) : IFoo> { + override fun bar(): String = "OK" +} + +fun box(): String = + Z(1).foo(Z(2)) diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt new file mode 100644 index 00000000000..b7e34382401 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt @@ -0,0 +1,15 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IFoo { + fun foo(x: T): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) : IFoo> { + override fun foo(x: Z) = "OK" +} + +fun box(): String = + Z(1).foo(Z(2)) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt new file mode 100644 index 00000000000..13ffbb1c8b0 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt @@ -0,0 +1,18 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val s: T) + +abstract class B { + abstract fun f(x: T): T +} + +class C: B>() { + override fun f(x: A): A = x +} + +fun box(): String { + return C().f(A("OK")).s +} diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt new file mode 100644 index 00000000000..6a91c726489 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt @@ -0,0 +1,54 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IFoo { + fun foo(): String = "K" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcStr(val y: T) : IFoo { + override fun foo(): String = y + super.foo() +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcInt(val i: T) : IFoo { + override fun foo(): String = "O" + super.foo() +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcLong(val l: T) : IFoo { + override fun foo(): String = "O" + super.foo() +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcAny(val a: T?) : IFoo { + override fun foo(): String = "O" + super.foo() +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcOverIc>(val o: T) : IFoo { + override fun foo(): String = "O" + super.foo() +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcOverSuperInterface(val x: T) : IFoo { + override fun foo(): String = "O" + super.foo() +} + +fun check(message: String, iFoo: IFoo) { + val actual = iFoo.foo() + if (actual != "OK") + throw Exception("$message: \"$actual\" != OK") +} + +fun box(): String { + check("IcStr", IcStr("O")) + check("IcInt", IcInt(42)) + check("IcLong", IcLong(42L)) + check("IcAny", IcAny("")) + check("IcOverIc", IcOverIc(IcLong(42L))) + check("IcOverSuperInterface", IcOverSuperInterface(IcInt(42))) + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt new file mode 100644 index 00000000000..7a1dd021d37 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt @@ -0,0 +1,28 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IBase { + fun foo() = "BAD" +} + +interface IFoo : IBase { + override fun foo() = "OK" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) : IFoo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(val x: T) : IFoo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) : IFoo + +fun box(): String { + if (Z(42).foo() != "OK") throw AssertionError() + if (L(4L).foo() != "OK") throw AssertionError() + if (S("").foo() != "OK") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt new file mode 100644 index 00000000000..29b0c98aee5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt @@ -0,0 +1,28 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val arg: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class AsAny(val arg: T) + +fun box(): String { + val arr = arrayOf(Foo(1), Foo(2)) + var sum = 0 + for (el in arr) { + sum += el.arg + } + + if (sum != 3) return "Fail 1" + + sum = 0 + for (el in arrayOf(AsAny(42), AsAny(1))) { + sum += el.arg as Int + } + + if (sum != 43) return "Fail 2" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt new file mode 100644 index 00000000000..f3d70571570 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt @@ -0,0 +1,16 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val arg: T) + +fun box(): String { + val ls = listOf(Foo("abc"), Foo("def")) + var res = "" + for (el in ls) { + res += el.arg + } + + return if (res != "abcdef") "Fail" else "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClassesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClassesGeneric.kt new file mode 100644 index 00000000000..629fc31a201 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClassesGeneric.kt @@ -0,0 +1,68 @@ +// WITH_STDLIB +// TARGET_BACKEND: JVM +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +package root + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcInt(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcLong(val l: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcAny(val a: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcOverIc>(val o: T) + +fun check(c: Class<*>, s: String) { + if (c.toString() != s) error("Fail, expected: $s, actual: $c") +} + +inline fun reifiedCheck(asString: String) { + check(T::class.java, asString) +} + +fun box(): String { + val i = IcInt(0) + val l = IcLong(0) + val a = IcAny("foo") + val o = IcOverIc(IcLong(0)) + + check(i.javaClass, "class root.IcInt") + check(l.javaClass, "class root.IcLong") + check(a.javaClass, "class root.IcAny") + check(o.javaClass, "class root.IcOverIc") + check(1u.javaClass, "class kotlin.UInt") + + check(i::class.java, "class root.IcInt") + check(l::class.java, "class root.IcLong") + check(a::class.java, "class root.IcAny") + check(o::class.java, "class root.IcOverIc") + check(1u::class.java, "class kotlin.UInt") + + reifiedCheck>("class root.IcInt") + reifiedCheck>("class root.IcLong") + reifiedCheck>("class root.IcAny") + reifiedCheck>>("class root.IcOverIc") + reifiedCheck("class kotlin.UInt") + + val arrI = arrayOf(i) + check(arrI[0].javaClass, "class root.IcInt") + + val arrL = arrayOf(l) + check(arrL[0].javaClass, "class root.IcLong") + + val arrA = arrayOf(a) + check(arrA[0].javaClass, "class root.IcAny") + + val arrO = arrayOf(o) + check(arrO[0].javaClass, "class root.IcOverIc") + + val arrU = arrayOf(1u) + check(arrU[0].javaClass, "class kotlin.UInt") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeICGeneric.kt b/compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeICGeneric.kt new file mode 100644 index 00000000000..7feb64871c5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeICGeneric.kt @@ -0,0 +1,43 @@ +// TARGET_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.* + +OPTIONAL_JVM_INLINE_ANNOTATION +value class I(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class JLI(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class U(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class N(val x: T) + +val icUnit = U(Unit) +val icNull = N(null) + +val anyIcUnit: Any = icUnit +val anyIcNull: Any = icNull + +val z = I(42) +val jli = JLI(java.lang.Integer(42)) + +fun box(): String { + assertEquals(null, icUnit::class.javaPrimitiveType) + assertEquals(null, icNull::class.javaPrimitiveType) + assertEquals(null, anyIcUnit::class.javaPrimitiveType) + assertEquals(null, anyIcNull::class.javaPrimitiveType) + assertEquals(null, z::class.javaPrimitiveType) + assertEquals(null, jli::class.javaPrimitiveType) + + assertEquals(null, U::class.javaPrimitiveType) + assertEquals(null, N::class.javaPrimitiveType) + assertEquals(null, I::class.javaPrimitiveType) + assertEquals(null, JLI::class.javaPrimitiveType) + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAllGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAllGeneric.kt new file mode 100644 index 00000000000..853803eb091 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAllGeneric.kt @@ -0,0 +1,12 @@ +// !JVM_DEFAULT_MODE: all +// TARGET_BACKEND: JVM +// JVM_TARGET: 1.8 +// LANGUAGE: +GenericInlineClassParameter + +interface I { + fun foo(): A = A("OK") +} + +inline class A(val x: T): I { } + +fun box() = A("").foo().x diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodGeneric.kt new file mode 100644 index 00000000000..1df87d61215 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodGeneric.kt @@ -0,0 +1,11 @@ +// TARGET_BACKEND: JVM +// JVM_TARGET: 1.8 +// LANGUAGE: +GenericInlineClassParameter + +interface I { + fun foo(): A = A("OK") +} + +inline class A(val x: T): I { } + +fun box() = A("").foo().x diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodGeneric.kt new file mode 100644 index 00000000000..3983b40474e --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodGeneric.kt @@ -0,0 +1,41 @@ +// TARGET_BACKEND: JVM +// JVM_TARGET: 1.8 +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: javaDefaultMethod.kt + +OPTIONAL_JVM_INLINE_ANNOTATION +value class K(val k: T) : J { + override fun get2() = k +} + +fun box(): String { + val k = K("K") + + val test1 = k.get1() + k.get2() + if (test1 != "OK") throw AssertionError("test1: $test1") + + val j: J = k + val test2 = j.get1() + j.get2() + if (test2 != "OK") throw AssertionError("test2: $test2") + + val test3 = JT.test(k) + if (test3 != "OK") throw AssertionError("test3: $test3") + + return "OK" +} + +// FILE: J.java +public interface J { + default String get1() { return "O"; } + default String get2() { return "Failed"; } +} + +// FILE: JT.java +public class JT { + public static String test(J j) { + return j.get1() + j.get2(); + } +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlinGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlinGeneric.kt new file mode 100644 index 00000000000..2618dc30b3c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlinGeneric.kt @@ -0,0 +1,51 @@ +// TARGET_BACKEND: JVM +// JVM_TARGET: 1.8 +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: javaDefaultMethod.kt +interface K2 : J { + override fun get2() = "Kotlin" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class K(val k: T) : K2 { + override fun get2() = k +} + +fun box(): String { + val k = K("K") + + val test1 = k.get1() + k.get2() + if (test1 != "OK") throw AssertionError("test1: $test1") + + val j: J = k + val test2 = j.get1() + j.get2() + if (test2 != "OK") throw AssertionError("test2: $test2") + + val test3 = JT.test(k) + if (test3 != "OK") throw AssertionError("test3: $test3") + + val k2: K2 = k + val test4 = k2.get1() + k2.get2() + if (test4 != "OK") throw AssertionError("test4: $test4") + + val test5 = JT.test(k2) + if (test5 != "OK") throw AssertionError("test5: $test5") + + return "OK" +} + +// FILE: J.java +public interface J { + default String get1() { return "O"; } + default String get2() { return "Java"; } +} + +// FILE: JT.java +public class JT { + public static String test(J j) { + return j.get1() + j.get2(); + } +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllGeneric.kt new file mode 100644 index 00000000000..1dc0cbe5708 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllGeneric.kt @@ -0,0 +1,50 @@ +// !JVM_DEFAULT_MODE: all +// TARGET_BACKEND: JVM +// WITH_STDLIB +// JVM_TARGET: 1.8 +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: jvmDefaultAll.kt + +interface IFooBar { + fun foo() = "O" + fun bar() = "Failed" +} + +interface IFooBar2 : IFooBar + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Test1(val k: T): IFooBar { + override fun bar(): String = k +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Test2(val k: T): IFooBar2 { + override fun bar(): String = k +} + +fun box(): String { + val k = Test1("K") + val ik: IFooBar = k + val k2 = Test2("K") + val ik2: IFooBar = k2 + val ik3: IFooBar2 = k2 + + val test1 = k.foo() + k.bar() + if (test1 != "OK") throw AssertionError("test1: $test1") + + val test2 = ik.foo() + ik.bar() + if (test2 != "OK") throw AssertionError("test2: $test2") + + val test3 = k2.foo() + k2.bar() + if (test3 != "OK") throw AssertionError("test3: $test3") + + val test4 = ik2.foo() + ik2.bar() + if (test4 != "OK") throw AssertionError("test4: $test4") + + val test5 = ik3.foo() + ik3.bar() + if (test5 != "OK") throw AssertionError("test5: $test5") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryPropertyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryPropertyGeneric.kt new file mode 100644 index 00000000000..81c7542333c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryPropertyGeneric.kt @@ -0,0 +1,46 @@ +// !JVM_DEFAULT_MODE: all +// TARGET_BACKEND: JVM +// WITH_STDLIB +// JVM_TARGET: 1.8 +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: jvmDefaultAll.kt + +interface IFooBar { + val foo get() = "O" + val bar get() = "Failed" +} + +interface IFooBar2 : IFooBar + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Test1(override val bar: T): IFooBar + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Test2(override val bar: T): IFooBar2 + +fun box(): String { + val k = Test1("K") + val ik: IFooBar = k + val k2 = Test2("K") + val ik2: IFooBar = k2 + val ik3: IFooBar2 = k2 + + val test1 = k.foo + k.bar + if (test1 != "OK") throw AssertionError("test1: $test1") + + val test2 = ik.foo + ik.bar + if (test2 != "OK") throw AssertionError("test2: $test2") + + val test3 = k2.foo + k2.bar + if (test3 != "OK") throw AssertionError("test3: $test3") + + val test4 = ik2.foo + ik2.bar + if (test4 != "OK") throw AssertionError("test4: $test4") + + val test5 = ik3.foo + ik3.bar + if (test5 != "OK") throw AssertionError("test5: $test5") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPropertyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPropertyGeneric.kt new file mode 100644 index 00000000000..7a356d89246 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPropertyGeneric.kt @@ -0,0 +1,52 @@ +// !JVM_DEFAULT_MODE: all +// TARGET_BACKEND: JVM +// WITH_STDLIB +// JVM_TARGET: 1.8 +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: jvmDefaultAll.kt + +interface IFooBar { + val foo get() = "O" + val bar get() = "Failed" +} + +interface IFooBar2 : IFooBar + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Test1(val k: T): IFooBar { + override val bar: String + get() = k +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Test2(val k: T): IFooBar2 { + override val bar: String + get() = k +} + +fun box(): String { + val k = Test1("K") + val ik: IFooBar = k + val k2 = Test2("K") + val ik2: IFooBar = k2 + val ik3: IFooBar2 = k2 + + val test1 = k.foo + k.bar + if (test1 != "OK") throw AssertionError("test1: $test1") + + val test2 = ik.foo + ik.bar + if (test2 != "OK") throw AssertionError("test2: $test2") + + val test3 = k2.foo + k2.bar + if (test3 != "OK") throw AssertionError("test3: $test3") + + val test4 = ik2.foo + ik2.bar + if (test4 != "OK") throw AssertionError("test4: $test4") + + val test5 = ik3.foo + ik3.bar + if (test5 != "OK") throw AssertionError("test5: $test5") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnableGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnableGeneric.kt new file mode 100644 index 00000000000..25301cfae3a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnableGeneric.kt @@ -0,0 +1,50 @@ +// !JVM_DEFAULT_MODE: enable +// TARGET_BACKEND: JVM +// WITH_STDLIB +// JVM_TARGET: 1.8 +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: jvmDefaultEnable.kt + +interface IFooBar { + @JvmDefault fun foo() = "O" + @JvmDefault fun bar() = "Failed" +} + +interface IFooBar2 : IFooBar + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Test1(val k: T): IFooBar { + override fun bar(): String = k +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Test2(val k: T): IFooBar2 { + override fun bar(): String = k +} + +fun box(): String { + val k = Test1("K") + val ik: IFooBar = k + val k2 = Test2("K") + val ik2: IFooBar = k2 + val ik3: IFooBar2 = k2 + + val test1 = k.foo() + k.bar() + if (test1 != "OK") throw AssertionError("test1: $test1") + + val test2 = ik.foo() + ik.bar() + if (test2 != "OK") throw AssertionError("test2: $test2") + + val test3 = k2.foo() + k2.bar() + if (test3 != "OK") throw AssertionError("test3: $test3") + + val test4 = ik2.foo() + ik2.bar() + if (test4 != "OK") throw AssertionError("test4: $test4") + + val test5 = ik3.foo() + ik3.bar() + if (test5 != "OK") throw AssertionError("test5: $test5") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePrimaryPropertyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePrimaryPropertyGeneric.kt new file mode 100644 index 00000000000..867ebb6f9b0 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePrimaryPropertyGeneric.kt @@ -0,0 +1,46 @@ +// !JVM_DEFAULT_MODE: enable +// TARGET_BACKEND: JVM +// WITH_STDLIB +// JVM_TARGET: 1.8 +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: jvmDefaultEnable.kt + +interface IFooBar { + @JvmDefault val foo get() = "O" + @JvmDefault val bar get() = "Failed" +} + +interface IFooBar2 : IFooBar + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Test1(override val bar: T): IFooBar + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Test2(override val bar: T): IFooBar2 + +fun box(): String { + val k = Test1("K") + val ik: IFooBar = k + val k2 = Test2("K") + val ik2: IFooBar = k2 + val ik3: IFooBar2 = k2 + + val test1 = k.foo + k.bar + if (test1 != "OK") throw AssertionError("test1: $test1") + + val test2 = ik.foo + ik.bar + if (test2 != "OK") throw AssertionError("test2: $test2") + + val test3 = k2.foo + k2.bar + if (test3 != "OK") throw AssertionError("test3: $test3") + + val test4 = ik2.foo + ik2.bar + if (test4 != "OK") throw AssertionError("test4: $test4") + + val test5 = ik3.foo + ik3.bar + if (test5 != "OK") throw AssertionError("test5: $test5") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePropertyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePropertyGeneric.kt new file mode 100644 index 00000000000..252ac77e91a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePropertyGeneric.kt @@ -0,0 +1,52 @@ +// !JVM_DEFAULT_MODE: enable +// TARGET_BACKEND: JVM +// WITH_STDLIB +// JVM_TARGET: 1.8 +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: jvmDefaultEnable.kt + +interface IFooBar { + @JvmDefault val foo get() = "O" + @JvmDefault val bar get() = "Failed" +} + +interface IFooBar2 : IFooBar + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Test1(val k: T): IFooBar { + override val bar: String + get() = k +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Test2(val k: T): IFooBar2 { + override val bar: String + get() = k +} + +fun box(): String { + val k = Test1("K") + val ik: IFooBar = k + val k2 = Test2("K") + val ik2: IFooBar = k2 + val ik3: IFooBar2 = k2 + + val test1 = k.foo + k.bar + if (test1 != "OK") throw AssertionError("test1: $test1") + + val test2 = ik.foo + ik.bar + if (test2 != "OK") throw AssertionError("test2: $test2") + + val test3 = k2.foo + k2.bar + if (test3 != "OK") throw AssertionError("test3: $test3") + + val test4 = ik2.foo + ik2.bar + if (test4 != "OK") throw AssertionError("test4: $test4") + + val test5 = ik3.foo + ik3.bar + if (test5 != "OK") throw AssertionError("test5: $test5") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGenericGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGenericGeneric.kt new file mode 100644 index 00000000000..56427c7a216 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGenericGeneric.kt @@ -0,0 +1,19 @@ +// !JVM_DEFAULT_MODE: all +// TARGET_BACKEND: JVM +// WITH_STDLIB +// JVM_TARGET: 1.8 +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +class Cell(val x: T) + +interface IOk { + fun ok(): String = "OK" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineClass(val s: T) : IOk + +fun test(cell: Cell>): String = cell.x.ok() + +fun box() = test(Cell(InlineClass("FAIL"))) diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCallGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCallGeneric.kt new file mode 100644 index 00000000000..1248ae44bd3 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCallGeneric.kt @@ -0,0 +1,17 @@ +// !JVM_DEFAULT_MODE: all +// TARGET_BACKEND: JVM +// WITH_STDLIB +// JVM_TARGET: 1.8 +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IOk { + fun ok(): String = "OK" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineClass(val s: T) : IOk + +fun test(x: InlineClass?) = x?.ok() ?: "Failed" + +fun box() = test(InlineClass("")) diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCastGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCastGeneric.kt new file mode 100644 index 00000000000..399e1526685 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCastGeneric.kt @@ -0,0 +1,19 @@ +// !JVM_DEFAULT_MODE: all +// TARGET_BACKEND: JVM +// WITH_STDLIB +// JVM_TARGET: 1.8 +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IOk { + fun ok(): String = "OK" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineClass(val s: T) : IOk + +fun test(x: Any): String { + return if (x is InlineClass<*>) x.ok() else "FAIL" +} + +fun box() = test(InlineClass("Dummy")) diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspendGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspendGeneric.kt new file mode 100644 index 00000000000..2058cb430a9 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspendGeneric.kt @@ -0,0 +1,33 @@ +// !JVM_DEFAULT_MODE: all +// TARGET_BACKEND: JVM +// WITH_STDLIB +// JVM_TARGET: 1.8 +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.coroutines.* + +interface IOk { + fun ok(): String = "OK" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineClass(val s: T) : IOk + +suspend fun returnsUnboxed() = InlineClass("") + +suspend fun test(): String = returnsUnboxed().ok() + +fun builder(c: suspend () -> Unit) { + c.startCoroutine(Continuation(EmptyCoroutineContext) { + it.getOrThrow() + }) +} + +fun box(): String { + var res = "FAIL" + builder { + res = test() + } + return res +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanionGeneric.kt new file mode 100644 index 00000000000..85f11a79ed2 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanionGeneric.kt @@ -0,0 +1,24 @@ +// TARGET_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: test.kt + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + + companion object { + @JvmField + val ok = "OK" + } +} + +fun box() = J.test() + +// FILE: J.java +public class J { + public static String test() { + return R.ok; + } +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt new file mode 100644 index 00000000000..4530d3ba6f5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt @@ -0,0 +1,13 @@ +// TARGET_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Str(val s: T) + +@JvmOverloads +fun test(so: String = "O", sk: String = "K") = Str(so + sk) + +fun box(): String = + test().s \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanionGeneric.kt new file mode 100644 index 00000000000..0ec6440d889 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanionGeneric.kt @@ -0,0 +1,24 @@ +// TARGET_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: test.kt + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + + companion object { + @JvmStatic + fun ok() = "OK" + } +} + +fun box() = J.test() + +// FILE: J.java +public class J { + public static String test() { + return R.ok(); + } +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt new file mode 100644 index 00000000000..cea181162cb --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt @@ -0,0 +1,24 @@ +// TARGET_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: test.kt + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + + companion object { + val ok + @JvmStatic get() = "OK" + } +} + +fun box() = J.test() + +// FILE: J.java +public class J { + public static String test() { + return R.getOk(); + } +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanionGeneric.kt new file mode 100644 index 00000000000..6a2ef1f31c3 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanionGeneric.kt @@ -0,0 +1,29 @@ +// TARGET_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: test.kt + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + + companion object { + private var ok_ = "" + + @JvmStatic + var ok + get() = ok_ + set(value) { ok_ = value } + } +} + +fun box() = J.test() + +// FILE: J.java +public class J { + public static String test() { + R.setOk("OK"); + return R.getOk(); + } +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kclassInAnnotationGeneric.kt b/compiler/testData/codegen/box/inlineClasses/kclassInAnnotationGeneric.kt new file mode 100644 index 00000000000..85c461eba27 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kclassInAnnotationGeneric.kt @@ -0,0 +1,117 @@ +// WITH_REFLECT +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter +package test + +import kotlin.reflect.KClass + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ICInt(val i: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ICIntArray(val i: IntArray) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ICIntN(val i: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ICIntNArray(val i: Array) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ICAny(val a: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ICAnyArray(val a: Array) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ICAnyNArray(val a: Array) + +annotation class Ann(val c: KClass<*>) +annotation class AnnArray(val c: Array>) + +@Ann(ICInt::class) +@AnnArray([ICInt::class]) +class CInt + +@Ann(ICIntArray::class) +@AnnArray([ICIntArray::class]) +class CIntArray + +@Ann(ICIntN::class) +@AnnArray([ICIntN::class]) +class CIntN + +@Ann(ICIntNArray::class) +@AnnArray([ICIntNArray::class]) +class CIntNArray + +@Ann(ICAny::class) +@AnnArray([ICAny::class]) +class CAny + +@Ann(ICAnyArray::class) +@AnnArray([ICAnyArray::class]) +class CAnyArray + +@Ann(Result::class) +@AnnArray([Result::class]) +class CResult + +@Ann(ICAnyNArray::class) +@AnnArray([ICAnyNArray::class]) +class CAnyNArray + +fun box(): String { + var klass = (CInt::class.annotations.first() as Ann).c.toString() + if (klass != "class test.ICInt") return "Expected class test.ICInt, got $klass" + + klass = (CIntArray::class.annotations.first() as Ann).c.toString() + if (klass != "class test.ICIntArray") return "Expected class test.ICIntArray, got $klass" + + klass = (CIntN::class.annotations.first() as Ann).c.toString() + if (klass != "class test.ICIntN") return "Expected class test.ICIntN, got $klass" + + klass = (CIntNArray::class.annotations.first() as Ann).c.toString() + if (klass != "class test.ICIntNArray") return "Expected class test.ICIntNArray, got $klass" + + klass = (CAny::class.annotations.first() as Ann).c.toString() + if (klass != "class test.ICAny") return "Expected class test.ICAny, got $klass" + + klass = (CAnyArray::class.annotations.first() as Ann).c.toString() + if (klass != "class test.ICAnyArray") return "Expected class test.ICAnyArray, got $klass" + + klass = (CResult::class.annotations.first() as Ann).c.toString() + if (klass != "class kotlin.Result") return "Expected class kotlin.Result, got $klass" + + klass = (CAnyNArray::class.annotations.first() as Ann).c.toString() + if (klass != "class test.ICAnyNArray") return "Expected class test.ICAnyNArray, got $klass" + + + klass = (CInt::class.annotations.last() as AnnArray).c[0].toString() + if (klass != "class test.ICInt") return "Expected class test.ICInt, got $klass" + + klass = (CIntArray::class.annotations.last() as AnnArray).c[0].toString() + if (klass != "class test.ICIntArray") return "Expected class test.ICIntArray, got $klass" + + klass = (CIntN::class.annotations.last() as AnnArray).c[0].toString() + if (klass != "class test.ICIntN") return "Expected class test.ICIntN, got $klass" + + klass = (CIntNArray::class.annotations.last() as AnnArray).c[0].toString() + if (klass != "class test.ICIntNArray") return "Expected class test.ICIntNArray, got $klass" + + klass = (CAny::class.annotations.last() as AnnArray).c[0].toString() + if (klass != "class test.ICAny") return "Expected class test.ICAny, got $klass" + + klass = (CAnyArray::class.annotations.last() as AnnArray).c[0].toString() + if (klass != "class test.ICAnyArray") return "Expected class test.ICAnyArray, got $klass" + + klass = (CResult::class.annotations.last() as AnnArray).c[0].toString() + if (klass != "class kotlin.Result") return "Expected class kotlin.Result, got $klass" + + klass = (CAnyNArray::class.annotations.last() as AnnArray).c[0].toString() + if (klass != "class test.ICAnyNArray") return "Expected class test.ICAnyNArray, got $klass" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt b/compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt new file mode 100644 index 00000000000..c54f8b0b11c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.reflect.KMutableProperty0 +import kotlin.reflect.KProperty + +operator fun KMutableProperty0.setValue(host: Any?, property: KProperty<*>, value: R) = set(value) +operator fun KMutableProperty0.getValue(host: Any?, property: KProperty<*>): R = get() + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val i: T) + +var f = Foo(4) + +fun modify(ref: KMutableProperty0>) { + var a by ref + a = Foo(1) as Foo +} + +fun box(): String { + modify(::f) + if (f.i != 1) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt b/compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt new file mode 100644 index 00000000000..42b64b39509 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt @@ -0,0 +1,24 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Ucn(private val i: T) + +class PPInput(private val s: ByteArray) { + fun peek(n: UInt = 0u): Ucn? = + if (n >= s.size.toUInt()) + null + else + Ucn(s[n.toInt()].toUInt()) +} + +fun box(): String { + val ppInput = PPInput(byteArrayOf(0.toByte(), 0.toByte(), 0.toByte())) + + if (ppInput.peek(0u) == null) throw AssertionError() + if (ppInput.peek(100u) != null) throw AssertionError() + if (ppInput.peek(0u)!!.toString() != "Ucn(i=0)") throw AssertionError(ppInput.peek(0u)!!.toString()) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt b/compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt new file mode 100644 index 00000000000..729425b2134 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt @@ -0,0 +1,37 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +enum class En { N, A, B, C } + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z1(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z2>(val z: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ZN>(val z: T?) + +fun wrap1(x: En): Z1? = if (x.ordinal == 0) null else Z1(x) +fun wrap2(x: En): Z2>? = if (x.ordinal == 0) null else Z2(Z1(x)) +fun wrapN(x: En): ZN>? = if (x.ordinal == 0) null else ZN(Z1(x)) + +fun box(): String { + val n = En.N + val a = En.A + + if (wrap1(n) != null) throw AssertionError() + if (wrap1(a) == null) throw AssertionError() + if (wrap1(a)!!.x != a) throw AssertionError() + + if (wrap2(n) != null) throw AssertionError() + if (wrap2(a) == null) throw AssertionError() + if (wrap2(a)!!.z.x != a) throw AssertionError() + + if (wrapN(n) != null) throw AssertionError() + if (wrapN(a) == null) throw AssertionError() + if (wrapN(a)!!.z!!.x != a) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt b/compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt new file mode 100644 index 00000000000..6d380796171 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt @@ -0,0 +1,32 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z1 String>(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z2 String>>(val z: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ZN String>?>(val z: T) + +fun wrap1(x: String): Z1<() -> String>? = if (x.length == 0) null else Z1({ x }) +fun wrap2(x: String): Z2 String>>? = if (x.length == 0) null else Z2(Z1({ x })) +fun wrapN(x: String): ZN String>?>? = if (x.length == 0) null else ZN(Z1({ x })) + +fun box(): String { + if (wrap1("") != null) throw AssertionError() + if (wrap1("a") == null) throw AssertionError() + if (wrap1("a")!!.x() != "a") throw AssertionError() + + if (wrap2("") != null) throw AssertionError() + if (wrap2("a") == null) throw AssertionError() + if (wrap2("a")!!.z.x() != "a") throw AssertionError() + + if (wrapN("") != null) throw AssertionError() + if (wrapN("a") == null) throw AssertionError() + if (wrapN("a")!!.z!!.x() != "a") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt b/compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt new file mode 100644 index 00000000000..4c36a77c46f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt @@ -0,0 +1,32 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z1(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z2>(val z: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ZN?>(val z: T) + +fun wrap1(n: Int): Z1? = if (n < 0) null else Z1(n) +fun wrap2(n: Int): Z2>? = if (n < 0) null else Z2(Z1(n)) +fun wrapN(n: Int): ZN?>? = if (n < 0) null else ZN(Z1(n)) + +fun box(): String { + if (wrap1(-1) != null) throw AssertionError() + if (wrap1(42) == null) throw AssertionError() + if (wrap1(42)!!.x != 42) throw AssertionError() + + if (wrap2(-1) != null) throw AssertionError() + if (wrap2(42) == null) throw AssertionError() + if (wrap2(42)!!.z.x != 42) throw AssertionError() + + if (wrapN(-1) != null) throw AssertionError() + if (wrapN(42) == null) throw AssertionError() + if (wrapN(42)!!.z!!.x != 42) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt b/compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt new file mode 100644 index 00000000000..0531434d167 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt @@ -0,0 +1,32 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z1(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z2>(val z: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ZN?>(val z: T) + +fun wrap1(x: String): Z1? = if (x.length == 0) null else Z1(x) +fun wrap2(x: String): Z2>? = if (x.length == 0) null else Z2(Z1(x)) +fun wrapN(x: String): ZN?>? = if (x.length == 0) null else ZN(Z1(x)) + +fun box(): String { + if (wrap1("") != null) throw AssertionError() + if (wrap1("a") == null) throw AssertionError() + if (wrap1("a")!!.x != "a") throw AssertionError() + + if (wrap2("") != null) throw AssertionError() + if (wrap2("a") == null) throw AssertionError() + if (wrap2("a")!!.z.x != "a") throw AssertionError() + + if (wrapN("") != null) throw AssertionError() + if (wrapN("a") == null) throw AssertionError() + if (wrapN("a")!!.z!!.x != "a") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt b/compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt new file mode 100644 index 00000000000..c4ed63b6309 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt @@ -0,0 +1,40 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z1(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z2>(val z: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ZN>(val z: T?) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ZN2>>(val z: T) + +fun wrap1(n: Int): Z1? = if (n < 0) null else Z1(n) +fun wrap2(n: Int): Z2>? = if (n < 0) null else Z2(Z1(n)) +fun wrapN(n: Int): ZN>? = if (n < 0) null else ZN(Z1(n)) +fun wrapN2(n: Int): ZN2>>? = if (n < 0) null else ZN2(ZN(Z1(n))) + +fun box(): String { + if (wrap1(-1) != null) throw AssertionError() + if (wrap1(42) == null) throw AssertionError() + if (wrap1(42)!!.x != 42) throw AssertionError() + + if (wrap2(-1) != null) throw AssertionError() + if (wrap2(42) == null) throw AssertionError() + if (wrap2(42)!!.z.x != 42) throw AssertionError() + + if (wrapN(-1) != null) throw AssertionError() + if (wrapN(42) == null) throw AssertionError() + if (wrapN(42)!!.z!!.x != 42) throw AssertionError() + + if (wrapN2(-1) != null) throw AssertionError() + if (wrapN2(42) == null) throw AssertionError() + if (wrapN2(42)!!.z.z!!.x != 42) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt b/compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt new file mode 100644 index 00000000000..5d3e72462a6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt @@ -0,0 +1,40 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z1(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z2>(val z: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ZN?>(val z: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ZN2?>>(val z: T) + +fun wrap1(x: String): Z1? = if (x.length == 0) null else Z1(x) +fun wrap2(x: String): Z2>? = if (x.length == 0) null else Z2(Z1(x)) +fun wrapN(x: String): ZN?>? = if (x.length == 0) null else ZN(Z1(x)) +fun wrapN2(x: String): ZN2?>>? = if (x.length == 0) null else ZN2(ZN(Z1(x))) + +fun box(): String { + if (wrap1("") != null) throw AssertionError() + if (wrap1("a") == null) throw AssertionError() + if (wrap1("a")!!.x != "a") throw AssertionError() + + if (wrap2("") != null) throw AssertionError() + if (wrap2("a") == null) throw AssertionError() + if (wrap2("a")!!.z.x != "a") throw AssertionError() + + if (wrapN("") != null) throw AssertionError() + if (wrapN("a") == null) throw AssertionError() + if (wrapN("a")!!.z!!.x != "a") throw AssertionError() + + if (wrapN2("") != null) throw AssertionError() + if (wrapN2("a") == null) throw AssertionError() + if (wrapN2("a")!!.z.z!!.x != "a") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt b/compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt new file mode 100644 index 00000000000..f8f3ae0e068 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt @@ -0,0 +1,17 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val a: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class NA(val b: T) + +fun box(): String { + val ns1 = NA(A("abc")) + val ns2 = NA(null) + val t = "-$ns1-$ns2-" + if (t != "-NA(b=A(a=abc))-NA(b=null)-") return throw AssertionError(t) + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt b/compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt new file mode 100644 index 00000000000..e0114cc570c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt @@ -0,0 +1,24 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Ucn(private val i: T) + +interface Input { + fun foo(n: Int = 0): T +} + +fun Char.toUInt() = toInt().toUInt() + +class Kx(val x: UInt) : Input> { + override fun foo(n: Int): Ucn = + if (n < 0) Ucn(0u) else Ucn(x) +} + +fun box(): String { + val p = Kx(42u).foo() + if (p.toString() != "Ucn(i=42)") throw AssertionError() + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt b/compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt new file mode 100644 index 00000000000..1864a1f9494 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(private val i: T) { + fun toByteArray() = ByteArray(1) { i.toByte() } +} + +fun box(): String { + val z = Z(42) + if (z.toByteArray()[0].toInt() != 42) throw AssertionError() + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt b/compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt new file mode 100644 index 00000000000..9cc39f3a96d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt @@ -0,0 +1,19 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) { + @Suppress("INNER_CLASS_INSIDE_VALUE_CLASS") + inner class Inner(val y: Int) { + val xx = x + } +} + +fun box(): String { + val zi = Z(42).Inner(100) + if (zi.xx != 42) throw AssertionError() + if (zi.y != 100) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt b/compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt new file mode 100644 index 00000000000..1ca52971571 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt @@ -0,0 +1,19 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) { + @Suppress("INNER_CLASS_INSIDE_VALUE_CLASS") + inner class Inner(val z: Z) { + val xx = x + } +} + +fun box(): String { + val zi = Z(42).Inner(Z(100)) + if (zi.xx != 42) throw AssertionError() + if (zi.z.x != 100) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt b/compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt new file mode 100644 index 00000000000..772190e7ee4 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt @@ -0,0 +1,21 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class WrappingInt(val value: T) { + operator fun inc(): WrappingInt = plus(1) + operator fun plus(num: Int): WrappingInt = WrappingInt(((value + num) and 0xFFFF) as T) +} + +fun box(): String { + var x = WrappingInt(65535) + x++ + if (x.value != 0) throw AssertionError("x++: ${x.value}") + + var y = WrappingInt(65535) + ++y + if (y.value != 0) throw AssertionError("++y: ${y.value}") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt b/compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt new file mode 100644 index 00000000000..102e45a2492 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt @@ -0,0 +1,18 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) + +class A { + fun foo() = Z(42) +} + +fun test(a: A?) = a?.foo()!! + +fun box(): String { + val t = test(A()) + if (t.x != 42) throw AssertionError("$t") + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt b/compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt new file mode 100644 index 00000000000..19ed4f1b6d8 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt @@ -0,0 +1,16 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val s: T) + +interface IFoo { + fun foo(x: T, s: String = "K"): String +} + +class FooImpl : IFoo> { + override fun foo(x: IC, s: String): String = x.s + s +} + +fun box(): String = FooImpl().foo(IC("O")) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt b/compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt new file mode 100644 index 00000000000..8c1d3826dd8 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt @@ -0,0 +1,18 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val s: T) + +interface IFoo { + fun foo(x: T, s: String = "K"): String + + fun bar(x: T) = foo(x) +} + +class FooImpl : IFoo> { + override fun foo(x: IC, s: String): String = x.s + s +} + +fun box(): String = FooImpl().bar(IC("O")) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt b/compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt new file mode 100644 index 00000000000..12b56d8bea0 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt @@ -0,0 +1,20 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val s: T) + +interface IFoo { + fun foo(x: T, s: String = "K"): String +} + +interface IFoo2 : IFoo { + fun bar(x: T) = foo(x) +} + +class FooImpl : IFoo2> { + override fun foo(x: IC, s: String): String = x.s + s +} + +fun box(): String = FooImpl().bar(IC("O")) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloadsGeneric.kt b/compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloadsGeneric.kt new file mode 100644 index 00000000000..2cb08e06406 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloadsGeneric.kt @@ -0,0 +1,10 @@ +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Location @JvmOverloads constructor(val value: T = "OK" as T) + +fun box(): String = Location().value!! diff --git a/compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt b/compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt new file mode 100644 index 00000000000..3bc454d3882 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt @@ -0,0 +1,23 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val value: T) + +fun f(g: ( + z: Z, + p01: Long, p02: Long, p03: Long, p04: Long, p05: Long, p06: Long, p07: Long, p08: Long, p09: Long, p10: Long, + p11: Long, p12: Long, p13: Long, p14: Long, p15: Long, p16: Long, p17: Long, p18: Long, p19: Long, p20: Long, + p21: Long, p22: Long +) -> Unit) { + g(Z(42L), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) +} + +fun box(): String { + var result = "" + f { z, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ -> + result = if (z.value == 42L) "OK" else "FAIL" + } + return result +} diff --git a/compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt b/compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt new file mode 100644 index 00000000000..956d23b68cb --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt @@ -0,0 +1,19 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +var result = "Fail" + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val value: T) { + constructor() : this("OK" as T) + + init { + result = value + } +} + +fun box(): String { + A() + return result +} diff --git a/compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt b/compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt new file mode 100644 index 00000000000..0b0c8cb4aec --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt @@ -0,0 +1,16 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val a: T = 1 as T) { + companion object { + val a: Int = 2 + } +} + +fun box(): String { + if (A.a != 2) return "FAIL1" + val instance = A() + return if (instance.a != 1) "FAIL2" else "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/kt48993Generic.kt b/compiler/testData/codegen/box/inlineClasses/kt48993Generic.kt new file mode 100644 index 00000000000..e6c672580e1 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt48993Generic.kt @@ -0,0 +1,24 @@ +// TARGET_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// FILE: 1.kt + +OPTIONAL_JVM_INLINE_ANNOTATION +value class C(val x: T) + +// FILE: 2.kt +@file:JvmMultifileClass +@file:JvmName("Multifile") + +private var result: String? = null + +var String.k: C + get() = C(this + result!!) + set(value) { result = value.x } + +// FILE: 3.kt +fun box(): String { + "".k = C("K") + return "O".k.x +} diff --git a/compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt new file mode 100644 index 00000000000..6711eff8209 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt @@ -0,0 +1,11 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val s: T) +fun foo(x: X, block: (X) -> T = { it.s }) = block(x) + +fun box(): String { + return foo(X("OK")) +} diff --git a/compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt b/compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt new file mode 100644 index 00000000000..5ba190b5614 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt @@ -0,0 +1,22 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class I(val i: T) + +abstract class A { + abstract fun f(i: I): String +} + +open class B : A() { + override fun f(i: I): String = "OK" +} + +class C : B() { + override fun f(i: I): String = super.f(i) +} + +fun box(): String { + return C().f(I(0)) +} diff --git a/compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt new file mode 100644 index 00000000000..dba80c6c83c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt @@ -0,0 +1,43 @@ +// WITH_STDLIB +// TARGET_BACKEND: JVM +// WORKS_WHEN_VALUE_CLASS + +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// FILE: JavaClass.java + +public class JavaClass { + public static T id(T x) { return x; } +} + +// FILE: test.kt + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcInt(val i: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcLong(val l: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcAny(val a: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IcOverIc>(val o: T) + +fun box(): String { + val i = IcInt(1) + val l = IcLong(2) + val a = IcAny("string") + val o = IcOverIc(IcInt(3)) + + val ij = JavaClass.id(i) + val lj = JavaClass.id(l) + val aj = JavaClass.id(a) + val oj = JavaClass.id(o) + + if (ij.i != 1) return "Fail 1" + if (lj.l != 2L) return "Fail 2" + if (aj.a != "string") return "Fail 3" + if (oj.o.i != 3) return "Fail 4" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt new file mode 100644 index 00000000000..513272f94e7 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt @@ -0,0 +1,35 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +class C { + + OPTIONAL_JVM_INLINE_ANNOTATION + value class IC1(val s: T) + + companion object { + + OPTIONAL_JVM_INLINE_ANNOTATION + value class IC2(val s: T) + } +} + +object O { + + OPTIONAL_JVM_INLINE_ANNOTATION + value class IC3(val s: T) +} + +interface I { + + OPTIONAL_JVM_INLINE_ANNOTATION + value class IC4(val s: T) +} + +fun box(): String { + if (C.IC1("OK").s != "OK") return "FAIL 1" + if (C.Companion.IC2("OK").s != "OK") return "FAIL 2" + if (O.IC3("OK").s != "OK") return "FAIL 3" + if (I.IC4("OK").s != "OK") return "FAIL 4" + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt new file mode 100644 index 00000000000..acbf6150da1 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt @@ -0,0 +1,41 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Result(val a: T?) + +fun resultOfIntToResultOfInt(r: Result): Result { + return r +} + +fun idResult(r: Result): Result = r + +fun Result.extension(): Result = this + +fun box(): String { + val r = Result(null) + + resultOfIntToResultOfInt(r) + resultOfIntToResultOfInt(Result(null)) + + val nonNull1 = resultOfIntToResultOfInt(r) + val nonNull2 = resultOfIntToResultOfInt(Result(null)) + + resultOfIntToResultOfInt(nonNull1) + + if (nonNull1.a != null) return "fail" + if (nonNull2.a != null) return "fail" + + if (resultOfIntToResultOfInt(r).a != null) return "fail" + + idResult(Result(null)) + + val id = idResult(r) + if (id.a != null) return "fail" + + r.extension() + Result(null).extension() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt b/compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt new file mode 100644 index 00000000000..3d2a58a40af --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt @@ -0,0 +1,16 @@ +// WITH_STDLIB +// LANGUAGE: -MangleClassMembersReturningInlineClasses +ValueClasses, +GenericInlineClassParameter +// WORKS_WHEN_VALUE_CLASS + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) + +class Test { + fun getO() = S("O") + val k = S("K") +} + +fun box(): String { + val t = Test() + return t.getO().x + t.k.x +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmName.kt b/compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmName.kt index c6385845039..fa96dca5ee3 100644 --- a/compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmName.kt +++ b/compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmName.kt @@ -1,4 +1,4 @@ -// !LANGUAGE: +InlineClasses -MangleClassMembersReturningInlineClasses +ValueClasses +// !LANGUAGE: -MangleClassMembersReturningInlineClasses +ValueClasses // WITH_STDLIB // TARGET_BACKEND: JVM // WORKS_WHEN_VALUE_CLASS diff --git a/compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmNameGeneric.kt b/compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmNameGeneric.kt new file mode 100644 index 00000000000..67d99ae2915 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmNameGeneric.kt @@ -0,0 +1,18 @@ +// !LANGUAGE: -MangleClassMembersReturningInlineClasses +ValueClasses, +GenericInlineClassParameter +// WITH_STDLIB +// TARGET_BACKEND: JVM +// WORKS_WHEN_VALUE_CLASS + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) + +class Test { + @Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("getO") + fun getOK() = S("OK") +} + +fun box(): String { + val t = Test() + return t.getOK().x +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt b/compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt new file mode 100644 index 00000000000..acaadebef5d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt @@ -0,0 +1,22 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val value: T) + +fun eq(a: Z?, b: Z) = a == b + +fun eqq(a: Z, b: Z?) = a == b + +fun box(): String { + if (!eq(Z(1), Z(1))) throw AssertionError() + if (eq(Z(1), Z(2))) throw AssertionError() + if (eq(null, Z(0))) throw AssertionError() + + if (!eqq(Z(1), Z(1))) throw AssertionError() + if (eqq(Z(1), Z(2))) throw AssertionError() + if (eqq(Z(0), null)) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt b/compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt new file mode 100644 index 00000000000..7ac629e53e1 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt @@ -0,0 +1,24 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z1(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ZN?>(val z: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ZN2?>>(val z: T) + +fun zap(b: Boolean): ZN2?>>? = if (b) null else ZN2(ZN(null)) + +fun eq(a: Any?, b: Any?) = a == b + +fun box(): String { + val x = zap(true) + val y = zap(false) + if (eq(x, y)) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt b/compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt new file mode 100644 index 00000000000..8798b55f235 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt @@ -0,0 +1,18 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IFoo { + fun foo(): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val x: T) : IFoo { + private fun privateFun() = x + override fun foo() = privateFun() +} + +fun box(): String { + val x: IFoo = IC("OK") + return x.foo() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt b/compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt new file mode 100644 index 00000000000..7e5507481c6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt @@ -0,0 +1,27 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(val value: T) + +fun takeVarargs(vararg e: T): T { + return e[e.size - 1] +} + +fun test(u1: UInt, u2: UInt, u3: UInt?): Int { + val a = takeVarargs(u1, u2) + val b = takeVarargs(u3) ?: UInt(-1) + val c = takeVarargs(u1, u3) ?: UInt(-1) + + return a.value + b.value + c.value +} + +fun box(): String { + val u1 = UInt(0) + val u2 = UInt(1) + val u3 = UInt(2) + if (test(u1, u2, u3) != 1 + 2 + 2) return "fail" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt b/compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt new file mode 100644 index 00000000000..e805ecfc0f9 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt @@ -0,0 +1,20 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(val value: T) + +fun last(vararg e: T): T = e[e.size - 1] +fun first(vararg e: T): T = e[0] + +fun box(): String { + val u0 = UInt(0) + val us = arrayOf(UInt(1), UInt(2), UInt(3)) + + if (last(u0, *us).value != 3) return "fail" + if (first(*us, u0).value != 1) return "fail" + if (first(u0, *us).value != 0) return "fail" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt b/compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt new file mode 100644 index 00000000000..be0de432581 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// MODULE: lib +// FILE: lib.kt + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z private constructor(private val value: T) { + fun result(): String = value as String + + companion object { + fun create(value: Any?): Z = Z(value) + } +} + +fun interface IFoo { + fun foo(x: T): String +} + +fun foo1(fs: IFoo>) = fs.foo(Z.create("OK")) + +// MODULE: main(lib) +// FILE: main.kt + +fun box(): String = + foo1 { it.result() } diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt new file mode 100644 index 00000000000..3c9e2879fa5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt @@ -0,0 +1,95 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +var setterInvoked = 0 + +var backing = 42 + +OPTIONAL_JVM_INLINE_ANNOTATION +value class DelegateStr(val ignored: T) { + + operator fun getValue(thisRef: Any?, prop: Any?) = + backing + + operator fun setValue(thisRef: Any?, prop: Any?, newValue: Int) { + setterInvoked++ + backing = newValue + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class DelegateInt(val ignored: T) { + + operator fun getValue(thisRef: Any?, prop: Any?) = + backing + + operator fun setValue(thisRef: Any?, prop: Any?, newValue: Int) { + setterInvoked++ + backing = newValue + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class DelegateLong(val ignored: T) { + + operator fun getValue(thisRef: Any?, prop: Any?) = + backing + + operator fun setValue(thisRef: Any?, prop: Any?, newValue: Int) { + setterInvoked++ + backing = newValue + } +} + +fun box(): String { + setterInvoked = 0 + testDelegateStr() + if (setterInvoked != 1) throw AssertionError() + + setterInvoked = 0 + testDelegateInt() + if (setterInvoked != 1) throw AssertionError() + + setterInvoked = 0 + testDelegateLong() + if (setterInvoked != 1) throw AssertionError() + + return "OK" +} + +private fun testDelegateStr() { + var localD by DelegateStr("don't care") + + return { + if (localD != 42) AssertionError() + + localD = 1234 + if (localD != 1234) throw AssertionError() + if (backing != 1234) throw AssertionError() + }() +} + +private fun testDelegateInt() { + var localD by DelegateInt(999) + + return { + if (localD != 42) AssertionError() + + localD = 1234 + if (localD != 1234) throw AssertionError() + if (backing != 1234) throw AssertionError() + }() +} + +private fun testDelegateLong() { + var localD by DelegateLong(999L) + + return { + if (localD != 42) AssertionError() + + localD = 1234 + if (localD != 1234) throw AssertionError() + if (backing != 1234) throw AssertionError() + }() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt new file mode 100644 index 00000000000..86e6d5ed41c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt @@ -0,0 +1,38 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +class Foo { + var a: Int = 42 + var d by Delegate(0) +} + +var setterInvoked = 0 + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Delegate(val default: T) { + + operator fun getValue(thisRef: Any?, prop: Any?) = + (thisRef as? Foo)?.a ?: default + + operator fun setValue(thisRef: Any?, prop: Any?, newValue: Int) { + setterInvoked++ + if (thisRef is Foo) { + thisRef.a = newValue + } + } +} + + +fun box(): String { + val x = Foo() + if (x.d != 42) throw AssertionError() + + x.d = 1234 + if (x.d != 1234) throw AssertionError() + if (x.a != 1234) throw AssertionError() + + if (setterInvoked != 1) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt new file mode 100644 index 00000000000..482fbfc734d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt @@ -0,0 +1,48 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +class Foo { + var a: Int = 42 + var d by DelegateFactory(0) +} + +var provideDelegateInvoked = 0 +var setterInvoked = 0 + +OPTIONAL_JVM_INLINE_ANNOTATION +value class DelegateFactory(val default: T) { + operator fun provideDelegate(thisRef: Any?, prop: Any?): Delegate { + provideDelegateInvoked++ + return Delegate(default) + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Delegate(val default: T) { + + operator fun getValue(thisRef: Any?, prop: Any?) = + (thisRef as? Foo)?.a ?: default + + operator fun setValue(thisRef: Any?, prop: Any?, newValue: Int) { + setterInvoked++ + if (thisRef is Foo) { + thisRef.a = newValue + } + } +} + + +fun box(): String { + val x = Foo() + if (x.d != 42) throw AssertionError() + + x.d = 1234 + if (x.d != 1234) throw AssertionError() + if (x.a != 1234) throw AssertionError() + + if (setterInvoked != 1) throw AssertionError() + if (provideDelegateInvoked != 1) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt new file mode 100644 index 00000000000..6365b5e6503 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt @@ -0,0 +1,36 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +class Foo { + companion object { + var a: Int = 42 + var d by Delegate(0) + } +} + +var setterInvoked = 0 + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Delegate(val ignored: T) { + + operator fun getValue(thisRef: Any?, prop: Any?) = Foo.a + + operator fun setValue(thisRef: Any?, prop: Any?, newValue: Int) { + setterInvoked++ + Foo.a = newValue + } +} + + +fun box(): String { + if (Foo.d != 42) throw AssertionError() + + Foo.d = 1234 + if (Foo.d != 1234) throw AssertionError() + if (Foo.a != 1234) throw AssertionError() + + if (setterInvoked != 1) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClassGeneric.kt new file mode 100644 index 00000000000..65546637232 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClassGeneric.kt @@ -0,0 +1,37 @@ +// TARGET_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +class Foo { + companion object { + var a: Int = 42 + @JvmStatic var d by Delegate(0) + } +} + +var setterInvoked = 0 + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Delegate(val ignored: T) { + + operator fun getValue(thisRef: Any?, prop: Any?) = Foo.a + + operator fun setValue(thisRef: Any?, prop: Any?, newValue: Int) { + setterInvoked++ + Foo.a = newValue + } +} + + +fun box(): String { + if (Foo.d != 42) throw AssertionError() + + Foo.d = 1234 + if (Foo.d != 1234) throw AssertionError() + if (Foo.a != 1234) throw AssertionError() + + if (setterInvoked != 1) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt new file mode 100644 index 00000000000..0cf5aa8366f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt @@ -0,0 +1,89 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +var setterInvoked = 0 + +var backing = 42 + +OPTIONAL_JVM_INLINE_ANNOTATION +value class DelegateStr(val ignored: T) { + + operator fun getValue(thisRef: Any?, prop: Any?) = + backing + + operator fun setValue(thisRef: Any?, prop: Any?, newValue: Int) { + setterInvoked++ + backing = newValue + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class DelegateInt(val ignored: T) { + + operator fun getValue(thisRef: Any?, prop: Any?) = + backing + + operator fun setValue(thisRef: Any?, prop: Any?, newValue: Int) { + setterInvoked++ + backing = newValue + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class DelegateLong(val ignored: T) { + + operator fun getValue(thisRef: Any?, prop: Any?) = + backing + + operator fun setValue(thisRef: Any?, prop: Any?, newValue: Int) { + setterInvoked++ + backing = newValue + } +} + +fun box(): String { + setterInvoked = 0 + testDelegateStr() + if (setterInvoked != 1) throw AssertionError() + + setterInvoked = 0 + testDelegateInt() + if (setterInvoked != 1) throw AssertionError() + + setterInvoked = 0 + testDelegateLong() + if (setterInvoked != 1) throw AssertionError() + + return "OK" +} + +private fun testDelegateStr() { + var localD by DelegateStr("don't care") + + if (localD != 42) AssertionError() + + localD = 1234 + if (localD != 1234) throw AssertionError() + if (backing != 1234) throw AssertionError() +} + +private fun testDelegateInt() { + var localD by DelegateInt(999) + + if (localD != 42) AssertionError() + + localD = 1234 + if (localD != 1234) throw AssertionError() + if (backing != 1234) throw AssertionError() +} + +private fun testDelegateLong() { + var localD by DelegateLong(999L) + + if (localD != 42) AssertionError() + + localD = 1234 + if (localD != 1234) throw AssertionError() + if (backing != 1234) throw AssertionError() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt new file mode 100644 index 00000000000..5ee4bff515d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt @@ -0,0 +1,34 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +object Foo { + var a: Int = 42 + var d by Delegate(0) +} + +var setterInvoked = 0 + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Delegate(val ignored: T) { + + operator fun getValue(thisRef: Any?, prop: Any?) = Foo.a + + operator fun setValue(thisRef: Any?, prop: Any?, newValue: Int) { + setterInvoked++ + Foo.a = newValue + } +} + + +fun box(): String { + if (Foo.d != 42) throw AssertionError() + + Foo.d = 1234 + if (Foo.d != 1234) throw AssertionError() + if (Foo.a != 1234) throw AssertionError() + + if (setterInvoked != 1) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt new file mode 100644 index 00000000000..20949cfc4c2 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt @@ -0,0 +1,39 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +class Foo { + companion object { + var a: Int = 42 + private var d by Delegate(0) + + fun d() = d + fun d(newValue: Int) { d = newValue } + } +} + +var setterInvoked = 0 + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Delegate(val ignored: T) { + + operator fun getValue(thisRef: Any?, prop: Any?) = Foo.a + + operator fun setValue(thisRef: Any?, prop: Any?, newValue: Int) { + setterInvoked++ + Foo.a = newValue + } +} + + +fun box(): String { + if (Foo.d() != 42) throw AssertionError() + + Foo.d(1234) + if (Foo.d() != 1234) throw AssertionError() + if (Foo.a != 1234) throw AssertionError() + + if (setterInvoked != 1) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt new file mode 100644 index 00000000000..bd3a2e095a1 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt @@ -0,0 +1,32 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +var setterInvoked = 0 +var backing = 42 + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Delegate(val ignored: T) { + + operator fun getValue(thisRef: Any?, prop: Any?) = + backing + + operator fun setValue(thisRef: Any?, prop: Any?, newValue: Int) { + setterInvoked++ + backing = newValue + } +} + +var topLevelD by Delegate(0) + +fun box(): String { + if (topLevelD != 42) AssertionError() + + topLevelD = 1234 + if (topLevelD != 1234) throw AssertionError() + if (backing != 1234) throw AssertionError() + + if (setterInvoked != 1) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt new file mode 100644 index 00000000000..489427c8ff5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt @@ -0,0 +1,63 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.reflect.KProperty + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ICInt(val i: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ICLong(val l: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ICOverIC>(val o: T) + +class Delegate(var f: () -> T) { + operator fun getValue(thisRef: Any?, property: KProperty<*>): T = f() + operator fun setValue(thisRef: Any?, property: KProperty<*>, value: T) { + f = { value } + } +} + +object Demo { + val i0 by Delegate { ICInt(1) } + val l0 by Delegate { ICLong(2L) } + val o0 by Delegate { ICOverIC(ICLong(3L)) } + + val i1: ICInt by Delegate { ICInt(11) } + val l1: ICLong by Delegate { ICLong(22) } + val o1: ICOverIC> by Delegate { ICOverIC(ICLong(33)) } + + var i2 by Delegate { ICInt(0) } + var l2 by Delegate { ICLong(0) } + var o2 by Delegate { ICOverIC(ICLong(0)) } +} + +fun box(): String { + if (Demo.i0.i != 1) return "Fail 1" + if (Demo.l0.l != 2L) return "Fail 2" + if (Demo.o0.o.l != 3L) return "Fail 3" + + if (Demo.i1.i != 11) return "Fail 2 1" + if (Demo.l1.l != 22L) return "Fail 2 2" + if (Demo.o1.o.l != 33L) return "Fail 2 3" + + Demo.i2 = ICInt(33) + Demo.l2 = ICLong(33) + Demo.o2 = ICOverIC(ICLong(33)) + + if (Demo.i2.i != 33) return "Fail 3 1" + if (Demo.l2.l != 33L) return "Fail 3 2" + if (Demo.o2.o.l != 33L) return "Fail 3 3" + + val localI by Delegate { ICInt(44) } + val localL by Delegate { ICLong(44) } + val localO by Delegate { ICOverIC(ICLong(44)) } + + if (localI.i != 44) return "Fail 4 1" + if (localL.l != 44L) return "Fail 4 2" + if (localO.o.l != 44L) return "Fail 4 3" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt new file mode 100644 index 00000000000..203ef9cac2f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt @@ -0,0 +1,25 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.properties.ReadOnlyProperty +import kotlin.reflect.KProperty + +class Foo { + val a: Int = 42 + val b by Delegate(0) +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Delegate(val ignored: T): ReadOnlyProperty { + override fun getValue(thisRef: Foo, property: KProperty<*>): Int { + return thisRef.a + } +} + +fun box(): String { + val x = Foo() + if (x.b != 42) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt new file mode 100644 index 00000000000..ca1ca741287 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt @@ -0,0 +1,17 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +class Delegate { + operator fun getValue(t: Any?, p: Any): String = "OK" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Kla1(val default: T) { + fun getValue(): String { + val prop by Delegate() + return prop + } +} + +fun box() = Kla1(1).getValue() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt b/compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt new file mode 100644 index 00000000000..7fe919de291 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt @@ -0,0 +1,18 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// FILE: 1.kt + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val x: T) + +fun accessProperty(y: B): A { + y.a = A("OK") + return y.a +} + +// FILE: 2.kt + +class B(var a: A) + +fun box(): String = accessProperty(B(A("Fail"))).x diff --git a/compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt new file mode 100644 index 00000000000..d4c95f51d48 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val c: T) { + companion object { + val prop = "O" + const val constVal = 1 + fun funInCompanion(): String = "K" + } + + fun simple() { + prop + constVal + funInCompanion() + } + + fun asResult(): String = prop + constVal + funInCompanion() + c +} + +fun box(): String { + val r = Foo('2') + if (r.asResult() != "O1K2") return "fail" + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt new file mode 100644 index 00000000000..58914dc28bf --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt @@ -0,0 +1,19 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(val value: T) { + operator fun plus(other: UInt) = UInt(value + other.value) + fun otherValue(other: UInt) = other.value +} + +fun box(): String { + val a = UInt(10) + val b = UInt(20) + if (a.otherValue(b) != 20) return "fail 1" + + if ((a + b).value != 30) return "fail 2" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt new file mode 100644 index 00000000000..2ba07ca8eec --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt @@ -0,0 +1,19 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(val value: T) + +fun box(): String { + val a = UInt(123) + if(a.value != 123) return "fail" + + val c = a.value.hashCode() + if (c.hashCode() != 123.hashCode()) return "fail" + + val b = UInt(100).value + a.value + if (b != 223) return "faile" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/resultGeneric.kt b/compiler/testData/codegen/box/inlineClasses/resultGeneric.kt new file mode 100644 index 00000000000..97959d7db27 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/resultGeneric.kt @@ -0,0 +1,19 @@ +// IGNORE_BACKEND: WASM +// IGNORE_BACKEND: ANDROID +// IGNORE_BACKEND: NATIVE +// ALLOW_KOTLIN_PACKAGE +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: result.kt +package kotlin + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Result(val value: T) + +// FILE: box.kt + +fun box(): String { + return Result("OK").value +} diff --git a/compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt b/compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt new file mode 100644 index 00000000000..b7e4ae51d10 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt @@ -0,0 +1,13 @@ +// IGNORE_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface X + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val value: T) : X + +fun test(t: T) where T : X, T : Z = t as? Int + +fun box(): String = if (test(Z(42)) != null) "fail" else "OK" diff --git a/compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt b/compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt new file mode 100644 index 00000000000..e897c038a3d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt @@ -0,0 +1,23 @@ +// See KT-49659 +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// MODULE: lib +// FILE: lib.kt + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val value: T) + +fun interface B { + fun f(a: A): String +} + +// MODULE: main(lib) +// FILE: test.kt +fun get(b: B) = b.f(A("OK")) + +fun box(): String { + val l = { a: A -> a.value } + return get(l) +} diff --git a/compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt b/compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt new file mode 100644 index 00000000000..1059dccacdb --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt @@ -0,0 +1,21 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) { + constructor(vararg ys: Long) : this(ys.size as T) +} + +fun box(): String { +// val z1 = Z(111) OVERLOAD_RESOLUTION_AMBIGUITY +// if (z1.x != 111) throw AssertionError() + + val z2 = Z() + if (z2.x != 0) throw AssertionError() + + val z3 = Z(2222L) + if (z3.x != 1) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt new file mode 100644 index 00000000000..e1fcd3b3915 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt @@ -0,0 +1,33 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +@file:Suppress("SECONDARY_CONSTRUCTOR_WITH_BODY_INSIDE_VALUE_CLASS") + +var global = "wrong" + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val x: T) { + constructor(y: Int) : this(y.toString() as T) + constructor(z: Long) : this(z.toInt() + 1) + constructor(other: Char) : this(other.toInt().toString() as T) { + global = "OK" + } + constructor(a: Int, b: Int) : this((a + b).toString() as T) +} + +fun box(): String { + var f = Foo(42) + if (f.x != "42") return "Fail 1: ${f.x}" + + f = Foo(43L) + if (f.x != "44") return "Fail 2: ${f.x}" + + f = Foo('a') + if (f.x != "97") return "Fail 3: ${f.x}" + + f = Foo(1, 2) + if (f.x != "3") return "Fail 4: ${f.x}" + + return global +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt new file mode 100644 index 00000000000..20a1c063fc1 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt @@ -0,0 +1,35 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +var global = "wrong" + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val x: T) { + constructor(y: String) : this(y.length as T) + + constructor(z: Long) : this((z.toInt() + 1) as T) + + @Suppress("SECONDARY_CONSTRUCTOR_WITH_BODY_INSIDE_VALUE_CLASS") + constructor(other: Char) : this(other.toInt().toString()) { + global = "OK" + } + + constructor(a: Int, b: Int) : this((a + b) as T) +} + +fun box(): String { + var f = Foo("42") + if (f.x != 2) return "Fail 1: ${f.x}" + + f = Foo(43L) + if (f.x != 44) return "Fail 2: ${f.x}" + + f = Foo('a') + if (f.x != 2) return "Fail 3: ${f.x}" + + f = Foo(1, 2) + if (f.x != 3) return "Fail 4: ${f.x}" + + return global +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt b/compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt new file mode 100644 index 00000000000..a216d53a3d6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt @@ -0,0 +1,24 @@ +// IGNORE_BACKEND: WASM +// WASM_MUTE_REASON: IGNORED_IN_JS +// IGNORE_BACKEND: JS, JS_IR, NATIVE, JVM +// IGNORE_BACKEND: JS_IR_ES6 +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +@file:Suppress("SECONDARY_CONSTRUCTOR_WITH_BODY_INSIDE_VALUE_CLASS") + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val x: T) { + constructor(y: Int) : this("OK" as T) { + if (y == 0) return throw java.lang.IllegalArgumentException() + if (y == 1) return + return Unit + } + + constructor(z: Double) : this(z.toInt()) +} + +fun box(): String { + return Foo(42.0).x +} diff --git a/compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt new file mode 100644 index 00000000000..d539463450c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt @@ -0,0 +1,31 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IBase { + fun testDefault1() = if (this is B<*>) this.foo() else "fail" +} + +interface IFoo : IBase { + fun foo(): String + + fun testDefault2() = if (this is B<*>) this.foo() else "fail" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class B(val x: T) : IFoo { + override fun foo() = x +} + +fun IBase.test1() = if (this is IFoo) foo() else "fail" + +fun IBase.test2() = if (this is B<*>) foo() else "fail" + +fun box(): String { + if (B("OK").test1() != "OK") throw AssertionError() + if (B("OK").test2() != "OK") throw AssertionError() + if (B("OK").testDefault1() != "OK") throw AssertionError() + if (B("OK").testDefault2() != "OK") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt b/compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt new file mode 100644 index 00000000000..6cf7256c1c9 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun foo(a: IC): T = a.value as T + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) + +fun box(): String { + return foo(IC("O")) + "K" +} diff --git a/compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt b/compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt new file mode 100644 index 00000000000..edcc1858d30 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val x: T) { + private fun privateFun() = x + override fun toString() = privateFun() +} + +fun box(): String { + val x: Any = IC("OK") + return x.toString() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt b/compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt new file mode 100644 index 00000000000..a6e8c204592 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt @@ -0,0 +1,25 @@ +// WITH_STDLIB +// IGNORE_BACKEND: JVM +// IGNORE_LIGHT_ANALYSIS +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val x: T) + +fun IC?.foo() = toString() // `IC?` unboxed into `String?` +fun IC?.bar() = "$this" + +fun assertEquals(a: String, b: String) { + if (a != b) throw AssertionError("$a != $b") +} + +fun box(): String { + assertEquals((null as IC?).foo(), "null") + assertEquals((null as IC?).foo(), (null as IC?).toString()) + assertEquals((null as IC?).foo(), (null as IC?).bar()) + assertEquals(IC("x").foo(), "IC(x=x)") + assertEquals(IC("x").foo(), IC("x").toString()) + assertEquals(IC("x").foo(), IC("x").bar()) + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt new file mode 100644 index 00000000000..df10e06147f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt @@ -0,0 +1,72 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class AsAny(val a: T) { + fun myEq(other: Any?): Boolean { + return other is AsAny<*> && other.a == a + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class AsInt(val a: T) { + fun myEq(other: Any?): Boolean { + return other is AsInt<*> && other.a == a + } +} + +inline fun Any?.isCheck() = this is T + +object Reference { + fun isNullable(a: AsAny) = a is AsAny<*>? + fun isNotNullable(a: AsAny) = a is AsAny<*> + fun isNullableNullable(a: AsAny?) = a is AsAny<*>? + fun isNullableNotNullable(a: AsAny?) = a is AsAny<*> +} + +object Primitive { + fun isNullable(a: AsInt) = a is AsInt<*>? + fun isNotNullable(a: AsInt) = a is AsInt<*> + fun isNullableNullable(a: AsInt?) = a is AsInt<*>? + fun isNullableNotNullable(a: AsInt?) = a is AsInt<*> +} + +fun box(): String { + val a = AsAny(42) + val b = AsAny(40 + 2) + + if (!a.myEq(b)) return "Fail 1" + if (a.myEq(42)) return "Fail 2" + if (a.myEq("other")) return "Fail 3" + + if (!Reference.isNullable(a)) return "Fail 4" + if (!Reference.isNotNullable(a)) return "Fail 5" + if (!Reference.isNullableNullable(a)) return "Fail 6" + if (!Reference.isNullableNullable(null)) return "Fail 7" + if (!Reference.isNullableNotNullable(a)) return "Fail 8" + if (Reference.isNullableNotNullable(null)) return "Fail 9" + + val c = AsInt(42) + val d = AsInt(40 + 2) + if (!c.myEq(d)) return "Fail 10" + if (c.myEq(42)) return "Fail 11" + if (c.myEq("other")) return "Fail 12" + + if (!Primitive.isNullable(c)) return "Fail 13" + if (!Primitive.isNotNullable(c)) return "Fail 14" + if (!Primitive.isNullableNullable(c)) return "Fail 15" + if (!Primitive.isNullableNullable(null)) return "Fail 16" + if (!Primitive.isNullableNotNullable(c)) return "Fail 17" + if (Primitive.isNullableNotNullable(null)) return "Fail 18" + + if (!a.isCheck>()) return "Fail 19" + if (!a.isCheck?>()) return "Fail 20" + if (a.isCheck>()) return "Fail 21" + + if (!c.isCheck>()) return "Fail 22" + if (!c.isCheck?>()) return "Fail 23" + if (c.isCheck>()) return "Fail 24" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt new file mode 100644 index 00000000000..8abd22f77a5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt @@ -0,0 +1,52 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a) { + it.value +} + +fun extension(a: IC): T = bar(a) { + it.extensionValue() +} + +fun dispatch(a: IC): T = bar(a) { + it.dispatchValue() +} + +fun normal(a: IC): T = bar(a) { + normalValue(it) +} + +fun IC.extensionValue(): T = value + +fun normalValue(ic: IC): T = ic.value + +fun interface FunIFace { + fun call(ic: T): R +} + +fun bar(value: T, f: FunIFace): R { + return f.call(value) +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) { + fun dispatchValue(): T = value +} + +fun box(): String { + var res = underlying(IC(40)) + 2 + if (res != 42) return "FAIL 1: $res" + + res = extension(IC(40)) + 3 + if (res != 43) return "FAIL 2: $res" + + res = dispatch(IC(40)) + 4 + if (res != 44) return "FAIL 3: $res" + + res = normal(IC(40)) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt new file mode 100644 index 00000000000..960eb6c5cd6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt @@ -0,0 +1,52 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a) { + it.value +} + +fun extension(a: IC): T = bar(a) { + it.extensionValue() +} + +fun dispatch(a: IC): T = bar(a) { + it.dispatchValue() +} + +fun normal(a: IC): T = bar(a) { + normalValue(it) +} + +fun interface FunIFace { + fun call(ic: T): R +} + +fun bar(value: T, f: FunIFace): R { + return f.call(value) +} + +fun IC.extensionValue(): T = value + +fun normalValue(ic: IC): T = ic.value + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) { + fun dispatchValue(): T = value +} + +fun box(): String { + var res = underlying(IC(40)) + 2 + if (res != 42) "FAIL 1 $res" + + res = extension(IC(40)) + 3 + if (res != 43) return "FAIL 2: $res" + + res = dispatch(IC(40)) + 4 + if (res != 44) return "FAIL 3: $res" + + res = normal(IC(40)) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt new file mode 100644 index 00000000000..e1ab2f9f5b2 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt @@ -0,0 +1,56 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a) { + it.value.value as T +} + +fun extension(a: IC): T = bar(a) { + it.extensionValue() +} + +fun dispatch(a: IC): T = bar(a) { + it.dispatchValue() +} + +fun normal(a: IC): T = bar(a) { + normalValue(it) +} + +fun IC.extensionValue(): T = value.value as T + +fun normalValue(ic: IC): T = ic.value.value as T + +fun interface FunIFace { + fun call(ic: T): R +} + +fun bar(value: T, f: FunIFace): R { + return f.call(value) +} + +interface Foo + +class FooHolder(val value: Any): Foo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T): Foo { + fun dispatchValue(): T = value.value as T +} + +fun box(): String { + var res = underlying(IC(FooHolder(40))) + 2 + if (res != 42) return "FAIL 1: $res" + + res = extension(IC(FooHolder(40))) + 3 + if (res != 43) return "FAIL 2: $res" + + res = dispatch(IC(FooHolder(40))) + 4 + if (res != 44) return "FAIL 3: $res" + + res = normal(IC(FooHolder(40))) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt new file mode 100644 index 00000000000..f97b46d9e8d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt @@ -0,0 +1,56 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a) { + (it.value as FooHolder).value as T +} + +fun extension(a: IC): T = bar(a) { + it.extensionValue() +} + +fun dispatch(a: IC): T = bar(a) { + it.dispatchValue() +} + +fun normal(a: IC): T = bar(a) { + normalValue(it) +} + +fun IC.extensionValue(): T = (value as FooHolder).value as T + +fun normalValue(ic: IC): T = (ic.value as FooHolder).value as T + +fun interface FunIFace { + fun call(ic: T): R +} + +fun bar(value: T, f: FunIFace): R { + return f.call(value) +} + +interface Foo + +class FooHolder(val value: Any): Foo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T): Foo { + fun dispatchValue(): T = (value as FooHolder).value as T +} + +fun box(): String { + var res = underlying(IC(FooHolder(40))) + 2 + if (res != 42) return "FAIL 1: $res" + + res = extension(IC(FooHolder(40))) + 3 + if (res != 43) return "FAIL 2: $res" + + res = dispatch(IC(FooHolder(40))) + 4 + if (res != 44) return "FAIL 3: $res" + + res = normal(IC(FooHolder(40))) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt new file mode 100644 index 00000000000..8f548106eec --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt @@ -0,0 +1,44 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a) { it.value } + +fun extension(a: IC): T = bar(a) { it.extensionValue() } + +fun dispatch(a: IC): T = bar(a) { it.dispatchValue() } + +fun normal(a: IC): T = bar(a) { normalValue(it) } + +fun interface FunIFace { + fun call(ic: T): R +} + +fun bar(value: T, f: FunIFace): R { + return f.call(value) +} + +fun IC.extensionValue(): T = value + +fun normalValue(ic: IC): T = ic.value + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) { + fun dispatchValue(): T = value +} + +fun box(): String { + var res = underlying(IC(40)) + 2 + if (res != 42) "FAIL 1: $res" + + res = extension(IC(40)) + 3 + if (res != 43) "FAIL 2: $res" + + res = dispatch(IC(40)) + 4 + if (res != 44) "FAIL 3: $res" + + res = normal(IC(40)) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt new file mode 100644 index 00000000000..24d7dd9a53c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt @@ -0,0 +1,22 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) + +fun foo(a: Result, ic: IC): Pair = bar(a, ic) { a, ic -> + a.getOrThrow() to ic.value +} + +fun interface FunIFace { + fun call(t1: T1, t2: T2): R +} + +fun bar(t1: T1, t2: T2, f: FunIFace): R { + return f.call(t1, t2) +} + +fun Pair.join(): String = "$first$second" + +fun box(): String = foo(Result.success("O"), IC("K")).join() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt new file mode 100644 index 00000000000..654b4fbe0ce --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt @@ -0,0 +1,52 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a) { + it.value +} + +fun extension(a: IC): T = bar(a) { + it.extensionValue() +} + +fun dispatch(a: IC): T = bar(a) { + it.dispatchValue() +} + +fun normal(a: IC): T = bar(a) { + normalValue(it) +} + +fun interface FunIFace { + fun call(ic: T): R +} + +fun bar(value: T, f: FunIFace): R { + return f.call(value) +} + +fun IC.extensionValue(): T = value + +fun normalValue(ic: IC): T = ic.value + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) { + fun dispatchValue(): T = value +} + +fun box(): String { + var res = underlying(IC("O")) + "K" + if (res != "OK") return "FAIL 1: $res" + + res = extension(IC("O")) + "K" + if (res != "OK") return "FAIL 2: $res" + + res = dispatch(IC("O")) + "K" + if (res != "OK") return "FAIL 3: $res" + + res = normal(IC("O")) + "K" + if (res != "OK") return "FAIL 3: $res" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt new file mode 100644 index 00000000000..ef145bb16fb --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt @@ -0,0 +1,48 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a) { + it.value +} + +fun extension(a: IC): T = bar(a) { + it.extensionValue() +} + +fun dispatch(a: IC): T = bar(a) { + it.dispatchValue() +} + +fun normal(a: IC): T = bar(a) { + normalValue(it) +} + +fun IC.extensionValue(): T = value + +fun normalValue(ic: IC): T = ic.value + +fun bar(value: T, f: (T) -> R): R { + return f(value) +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) { + fun dispatchValue(): T = value +} + +fun box(): String { + var res = underlying(IC(40)) + 2 + if (res != 42) return "FAIL 1: $res" + + res = extension(IC(40)) + 3 + if (res != 43) return "FAIL 2: $res" + + res = dispatch(IC(40)) + 4 + if (res != 44) return "FAIL 3: $res" + + res = normal(IC(40)) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt new file mode 100644 index 00000000000..7ad7ffafafe --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt @@ -0,0 +1,48 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a) { + it.value +} + +fun extension(a: IC): T = bar(a) { + it.extensionValue() +} + +fun dispatch(a: IC): T = bar(a) { + it.dispatchValue() +} + +fun normal(a: IC): T = bar(a) { + normalValue(it) +} + +fun bar(value: T, f: (T) -> R): R { + return f(value) +} + +fun IC.extensionValue(): T = value + +fun normalValue(ic: IC): T = ic.value + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) { + fun dispatchValue(): T = value +} + +fun box(): String { + var res = underlying(IC(40)) + 2 + if (res != 42) "FAIL 1 $res" + + res = extension(IC(40)) + 3 + if (res != 43) return "FAIL 2: $res" + + res = dispatch(IC(40)) + 4 + if (res != 44) return "FAIL 3: $res" + + res = normal(IC(40)) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt new file mode 100644 index 00000000000..ca72bcb51c3 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt @@ -0,0 +1,52 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a) { + it.value.value as T +} + +fun extension(a: IC): T = bar(a) { + it.extensionValue() +} + +fun dispatch(a: IC): T = bar(a) { + it.dispatchValue() +} + +fun normal(a: IC): T = bar(a) { + normalValue(it) +} + +fun IC.extensionValue(): T = value.value as T + +fun normalValue(ic: IC): T = ic.value.value as T + +fun bar(value: T, f: (T) -> R): R { + return f(value) +} + +interface Foo + +class FooHolder(val value: Any): Foo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T): Foo { + fun dispatchValue(): T = value.value as T +} + +fun box(): String { + var res = underlying(IC(FooHolder(40))) + 2 + if (res != 42) return "FAIL 1: $res" + + res = extension(IC(FooHolder(40))) + 3 + if (res != 43) return "FAIL 2: $res" + + res = dispatch(IC(FooHolder(40))) + 4 + if (res != 44) return "FAIL 3: $res" + + res = normal(IC(FooHolder(40))) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt new file mode 100644 index 00000000000..f7e72cf20f5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt @@ -0,0 +1,52 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a) { + it.value.value as T +} + +fun extension(a: IC): T = bar(a) { + it.extensionValue() +} + +fun dispatch(a: IC): T = bar(a) { + it.dispatchValue() +} + +fun normal(a: IC): T = bar(a) { + normalValue(it) +} + +fun IC.extensionValue(): T = value.value as T + +fun normalValue(ic: IC): T = ic.value.value as T + +fun bar(value: T, f: (T) -> R): R { + return f(value) +} + +interface Foo + +class FooHolder(val value: Any): Foo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T): Foo { + fun dispatchValue(): T = (value as FooHolder).value as T +} + +fun box(): String { + var res = underlying(IC(FooHolder(40))) + 2 + if (res != 42) return "FAIL 1: $res" + + res = extension(IC(FooHolder(40))) + 3 + if (res != 43) return "FAIL 2: $res" + + res = dispatch(IC(FooHolder(40))) + 4 + if (res != 44) return "FAIL 3: $res" + + res = normal(IC(FooHolder(40))) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt new file mode 100644 index 00000000000..ff4b8f72a4c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt @@ -0,0 +1,48 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a) { + it.value +} + +fun extension(a: IC): T = bar(a) { + it.extensionValue() +} + +fun dispatch(a: IC): T = bar(a) { + it.dispatchValue() +} + +fun normal(a: IC): T = bar(a) { + normalValue(it) +} + +fun bar(value: T, f: (T) -> R): R { + return f(value) +} + +fun IC.extensionValue(): T = value + +fun normalValue(ic: IC): T = ic.value + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) { + fun dispatchValue(): T = value +} + +fun box(): String { + var res = underlying(IC(40)) + 2 + if (res != 42) "FAIL 1: $res" + + res = extension(IC(40)) + 3 + if (res != 43) "FAIL 2: $res" + + res = dispatch(IC(40)) + 4 + if (res != 44) "FAIL 3: $res" + + res = normal(IC(40)) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt new file mode 100644 index 00000000000..d694607836b --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt @@ -0,0 +1,18 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) + +fun foo(a: Result, ic: IC): Pair = bar(a, ic) { a, ic -> + a.getOrThrow() to ic.value +} + +fun bar(t1: T1, t2: T2, f: (T1, T2) -> R): R { + return f(t1, t2) +} + +fun Pair.join(): String = "$first$second" + +fun box(): String = foo(Result.success("O"), IC("K")).join() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt new file mode 100644 index 00000000000..1a6fdddfb3b --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt @@ -0,0 +1,48 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a) { + it.value +} + +fun extension(a: IC): T = bar(a) { + it.extensionValue() +} + +fun dispatch(a: IC): T = bar(a) { + it.dispatchValue() +} + +fun normal(a: IC): T = bar(a) { + normalValue(it) +} + +fun bar(value: T, f: (T) -> R): R { + return f(value) +} + +fun IC.extensionValue(): T = value + +fun normalValue(ic: IC): T = ic.value + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) { + fun dispatchValue(): T = value +} + +fun box(): String { + var res = underlying(IC("O")) + "K" + if (res != "OK") return "FAIL 1: $res" + + res = extension(IC("O")) + "K" + if (res != "OK") return "FAIL 2: $res" + + res = dispatch(IC("O")) + "K" + if (res != "OK") return "FAIL 3: $res" + + res = normal(IC("O")) + "K" + if (res != "OK") return "FAIL 3: $res" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt new file mode 100644 index 00000000000..fe370aca31e --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt @@ -0,0 +1,52 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.value +}) + +fun extension(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.extensionValue() +}) + +fun dispatch(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.dispatchValue() +}) + +fun normal(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = normalValue(ic) +}) + +fun IC.extensionValue(): T = value + +fun normalValue(ic: IC): T = ic.value + +interface IFace { + fun call(ic: T): R +} + +fun bar(value: T, f: IFace): R { + return f.call(value) +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) { + fun dispatchValue(): T = value +} + +fun box(): String { + var res = underlying(IC(40)) + 2 + if (res != 42) return "FAIL 1: $res" + + res = extension(IC(40)) + 3 + if (res != 43) return "FAIL 2: $res" + + res = dispatch(IC(40)) + 4 + if (res != 44) return "FAIL 3: $res" + + res = normal(IC(40)) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt new file mode 100644 index 00000000000..71dabda0852 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt @@ -0,0 +1,52 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.value +}) + +fun extension(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.extensionValue() +}) + +fun dispatch(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.dispatchValue() +}) + +fun normal(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = normalValue(ic) +}) + +interface IFace { + fun call(ic: T): R +} + +fun bar(value: T, f: IFace): R { + return f.call(value) +} + +fun IC.extensionValue(): T = value + +fun normalValue(ic: IC): T = ic.value + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) { + fun dispatchValue(): T = value +} + +fun box(): String { + var res = underlying(IC(40)) + 2 + if (res != 42) "FAIL 1 $res" + + res = extension(IC(40)) + 3 + if (res != 43) return "FAIL 2: $res" + + res = dispatch(IC(40)) + 4 + if (res != 44) return "FAIL 3: $res" + + res = normal(IC(40)) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt index 36af1adc556..23485cc9d18 100644 --- a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt @@ -6,21 +6,21 @@ fun underlying(a: IC): T = bar(a, object : IFace { override fun call(ic: IC): T = (ic.value as FooHolder).value as T }) -//fun extension(a: IC): T = bar(a, object : IFace { -// override fun call(ic: IC): T = ic.extensionValue() -//}) -// -//fun dispatch(a: IC): T = bar(a, object : IFace { -// override fun call(ic: IC): T = ic.dispatchValue() -//}) -// -//fun normal(a: IC): T = bar(a, object : IFace { -// override fun call(ic: IC): T = normalValue(ic) -//}) -// -//fun IC.extensionValue(): T = (value as FooHolder).value as T -// -//fun normalValue(ic: IC): T = (ic.value as FooHolder).value as T +fun extension(a: IC): T = bar(a, object : IFace { + override fun call(ic: IC): T = ic.extensionValue() +}) + +fun dispatch(a: IC): T = bar(a, object : IFace { + override fun call(ic: IC): T = ic.dispatchValue() +}) + +fun normal(a: IC): T = bar(a, object : IFace { + override fun call(ic: IC): T = normalValue(ic) +}) + +fun IC.extensionValue(): T = (value as FooHolder).value as T + +fun normalValue(ic: IC): T = (ic.value as FooHolder).value as T interface IFace { fun call(ic: T): R @@ -36,21 +36,21 @@ class FooHolder(val value: Any): Foo OPTIONAL_JVM_INLINE_ANNOTATION value class IC(val value: Foo): Foo { -// fun dispatchValue(): T = (value as FooHolder).value as T + fun dispatchValue(): T = (value as FooHolder).value as T } fun box(): String { var res = underlying(IC(FooHolder(40))) + 2 if (res != 42) return "FAIL 1: $res" -// res = extension(IC(FooHolder(40))) + 3 -// if (res != 43) return "FAIL 2: $res" -// -// res = dispatch(IC(FooHolder(40))) + 4 -// if (res != 44) return "FAIL 3: $res" -// -// res = normal(IC(FooHolder(40))) + 5 -// if (res != 45) return "FAIL 4: $res" + res = extension(IC(FooHolder(40))) + 3 + if (res != 43) return "FAIL 2: $res" + + res = dispatch(IC(FooHolder(40))) + 4 + if (res != 44) return "FAIL 3: $res" + + res = normal(IC(FooHolder(40))) + 5 + if (res != 45) return "FAIL 4: $res" return "OK" } \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt new file mode 100644 index 00000000000..fcb64c0e12b --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt @@ -0,0 +1,56 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.value.value as T +}) + +fun extension(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.extensionValue() +}) + +fun dispatch(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.dispatchValue() +}) + +fun normal(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = normalValue(ic) +}) + +fun IC.extensionValue(): T = value.value as T + +fun normalValue(ic: IC): T = ic.value.value as T + +interface IFace { + fun call(ic: T): R +} + +fun bar(value: T, f: IFace): R { + return f.call(value) +} + +interface Foo + +class FooHolder(val value: Any): Foo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T): Foo { + fun dispatchValue(): T = value.value as T +} + +fun box(): String { + var res = underlying(IC(FooHolder(40))) + 2 + if (res != 42) return "FAIL 1: $res" + + res = extension(IC(FooHolder(40))) + 3 + if (res != 43) return "FAIL 2: $res" + + res = dispatch(IC(FooHolder(40))) + 4 + if (res != 44) return "FAIL 3: $res" + + res = normal(IC(FooHolder(40))) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt new file mode 100644 index 00000000000..7e4b5efcdec --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt @@ -0,0 +1,56 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = (ic.value as FooHolder).value as T +}) + +fun extension(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.extensionValue() +}) + +fun dispatch(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.dispatchValue() +}) + +fun normal(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = normalValue(ic) +}) + +fun IC.extensionValue(): T = (value as FooHolder).value as T + +fun normalValue(ic: IC): T = (ic.value as FooHolder).value as T + +interface IFace { + fun call(ic: T): R +} + +fun bar(value: T, f: IFace): R { + return f.call(value) +} + +interface Foo + +class FooHolder(val value: Any): Foo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T): Foo { + fun dispatchValue(): T = (value as FooHolder).value as T +} + +fun box(): String { + var res = underlying(IC(FooHolder(40))) + 2 + if (res != 42) return "FAIL 1: $res" + + res = extension(IC(FooHolder(40))) + 3 + if (res != 43) return "FAIL 2: $res" + + res = dispatch(IC(FooHolder(40))) + 4 + if (res != 44) return "FAIL 3: $res" + + res = normal(IC(FooHolder(40))) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt new file mode 100644 index 00000000000..f2a7fc3226a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt @@ -0,0 +1,52 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.value +}) + +fun extension(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.extensionValue() +}) + +fun dispatch(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.dispatchValue() +}) + +fun normal(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = normalValue(ic) +}) + +interface IFace { + fun call(ic: T): R +} + +fun bar(value: T, f: IFace): R { + return f.call(value) +} + +fun IC.extensionValue(): T = value + +fun normalValue(ic: IC): T = ic.value + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) { + fun dispatchValue(): T = value +} + +fun box(): String { + var res = underlying(IC(40)) + 2 + if (res != 42) "FAIL 1: $res" + + res = extension(IC(40)) + 3 + if (res != 43) "FAIL 2: $res" + + res = dispatch(IC(40)) + 4 + if (res != 44) "FAIL 3: $res" + + res = normal(IC(40)) + 5 + if (res != 45) return "FAIL 4: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt new file mode 100644 index 00000000000..c639bde97a1 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt @@ -0,0 +1,22 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) + +fun foo(a: Result, ic: IC): Pair = bar(a, ic, object : IFace, IC, Pair> { + override fun call(a: Result, ic: IC): Pair = a.getOrThrow() to ic.value +}) + +interface IFace { + fun call(t1: T1, t2: T2): R +} + +fun bar(t1: T1, t2: T2, f: IFace): R { + return f.call(t1, t2) +} + +fun Pair.join(): String = "$first$second" + +fun box(): String = foo(Result.success("O"), IC("K")).join() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt new file mode 100644 index 00000000000..327bc0dbdda --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt @@ -0,0 +1,52 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun underlying(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.value +}) + +fun extension(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.extensionValue() +}) + +fun dispatch(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = ic.dispatchValue() +}) + +fun normal(a: IC): T = bar(a, object : IFace, T> { + override fun call(ic: IC): T = normalValue(ic) +}) + +interface IFace { + fun call(ic: T): R +} + +fun bar(value: T, f: IFace): R { + return f.call(value) +} + +fun IC.extensionValue(): T = value + +fun normalValue(ic: IC): T = ic.value + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val value: T) { + fun dispatchValue(): T = value +} + +fun box(): String { + var res = underlying(IC("O")) + "K" + if (res != "OK") return "FAIL 1: $res" + + res = extension(IC("O")) + "K" + if (res != "OK") return "FAIL 2: $res" + + res = dispatch(IC("O")) + "K" + if (res != "OK") return "FAIL 3: $res" + + res = normal(IC("O")) + "K" + if (res != "OK") return "FAIL 3: $res" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt new file mode 100644 index 00000000000..72ab52fe699 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt @@ -0,0 +1,58 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +class BoxT(val boxed: T) +class BoxAny(val boxed: Any?) +class BoxFoo(val boxed: IFoo?) + +interface IFoo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Str(val value: T) : IFoo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Str2>(val value: T): IFoo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class StrArr(val value: Array): IFoo + +fun boxToTypeParameter(x: Str?) = BoxT(x) +fun boxToNullableAny(x: Str?) = BoxAny(x) +fun boxToNullableInterface(x: Str?) = BoxFoo(x) + +fun > box2ToTypeParameter(x: Str2?) = BoxT(x) +fun > box2ToNullableAny(x: Str2?) = BoxAny(x) +fun > box2ToNullableInterface(x: Str2?) = BoxFoo(x) + +fun boxArrToTypeParameter(x: StrArr?) = BoxT(x) +fun boxArrToNullableAny(x: StrArr?) = BoxAny(x) +fun boxArrToNullableInterface(x: StrArr?) = BoxFoo(x) + +fun useNullableStr(x: Str?) { + if (x != null) throw AssertionError() +} + +fun > useNullableStr2(x: Str2?) { + if (x != null) throw AssertionError() +} + +fun useNullableStrArr(x: StrArr?) { + if (x != null) throw AssertionError() +} + +fun box(): String { + useNullableStr(boxToTypeParameter(null).boxed) + useNullableStr(boxToNullableAny(null).boxed as Str?) + useNullableStr(boxToNullableInterface(null).boxed as Str?) + + useNullableStr2(box2ToTypeParameter>(null).boxed) + useNullableStr2(box2ToNullableAny>(null).boxed as Str2>?) + useNullableStr2(box2ToNullableInterface>(null).boxed as Str2>?) + + useNullableStrArr(boxArrToTypeParameter(null).boxed) + useNullableStrArr(boxArrToNullableAny(null).boxed as StrArr?) + useNullableStrArr(boxArrToNullableInterface(null).boxed as StrArr?) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt new file mode 100644 index 00000000000..374b5f7b895 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt @@ -0,0 +1,28 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +class BoxT(val boxed: T) +class BoxAny(val boxed: Any?) +class BoxFoo(val boxed: IFoo?) + +interface IFoo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class I32(val value: T?) : IFoo + +fun boxToTypeParameter(x: I32?) = BoxT(x) +fun boxToNullableAny(x: I32?) = BoxAny(x) +fun boxToNullableInterface(x: I32?) = BoxFoo(x) + +fun useNullableI32(x: I32?) { + if (x != null) throw AssertionError() +} + +fun box(): String { + useNullableI32(boxToTypeParameter(null).boxed) + useNullableI32(boxToNullableAny(null).boxed as I32?) + useNullableI32(boxToNullableInterface(null).boxed as I32?) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt new file mode 100644 index 00000000000..9fde2b0ea00 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt @@ -0,0 +1,134 @@ +// IGNORE_BACKEND: WASM +// WASM_MUTE_REASON: IGNORED_IN_JS +// WITH_COROUTINES +// WITH_STDLIB +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import helpers.* +import kotlin.coroutines.* +import kotlin.coroutines.intrinsics.* + +OPTIONAL_JVM_INLINE_ANNOTATION +value class BoxAny(val value: T) { + val intValue: Int get() = value as Int +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class BoxInt(val value: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class BoxLong(val value: T) + +class EmptyContinuation : Continuation { + override val context: CoroutineContext + get() = EmptyCoroutineContext + + override fun resumeWith(result: Result) {} +} + +suspend fun foo(block: suspend (BoxAny) -> Unit) { + block(BoxAny(1 as T)) + block.startCoroutineUninterceptedOrReturn(BoxAny(1 as T), EmptyContinuation()) +} + +suspend fun fooReceiver(block: suspend BoxAny.() -> Unit) { + BoxAny(1 as T).block() + block.startCoroutineUninterceptedOrReturn(BoxAny(1 as T), EmptyContinuation()) +} + +suspend fun bar(block: suspend (BoxInt) -> Unit) { + block(BoxInt(2 as T)) + block.startCoroutineUninterceptedOrReturn(BoxInt(2 as T), EmptyContinuation()) +} + +suspend fun barReceiver(block: suspend BoxInt.() -> Unit) { + BoxInt(2 as T).block() + block.startCoroutineUninterceptedOrReturn(BoxInt(2 as T), EmptyContinuation()) +} + +suspend fun baz(block: suspend (BoxLong) -> Unit) { + block(BoxLong(3L as T)) + block.startCoroutineUninterceptedOrReturn(BoxLong(3L as T), EmptyContinuation()) +} + +suspend fun bazReceiver(block: suspend BoxLong.() -> Unit) { + BoxLong(3L as T).block() + block.startCoroutineUninterceptedOrReturn(BoxLong(3L as T), EmptyContinuation()) +} + +suspend fun BoxAny.extension(block: suspend BoxAny.() -> Unit) { + this.block() + block() + + block.startCoroutineUninterceptedOrReturn(this, EmptyContinuation()) +} + +suspend fun BoxInt.extension(block: suspend BoxInt.() -> Unit) { + this.block() + block() + + block.startCoroutineUninterceptedOrReturn(this, EmptyContinuation()) +} + +suspend fun BoxLong.extension(block: suspend BoxLong.() -> Unit) { + this.block() + block() + + block.startCoroutineUninterceptedOrReturn(this, EmptyContinuation()) +} + +fun runBlocking(block: suspend () -> Unit) { + block.startCoroutine(object : Continuation { + override val context: CoroutineContext + get() = EmptyCoroutineContext + + override fun resumeWith(result: Result) { + (block as Function1, Any?>)(this) + } + }) +} + +fun box(): String { + var result = 0 + runBlocking { + foo { boxAny -> + result += boxAny.intValue + } + fooReceiver { + result += this.intValue + } + + bar { boxInt -> + result += boxInt.value + } + barReceiver { + result += value + } + + baz { boxLong -> + result += boxLong.value.toInt() + } + bazReceiver { + result += this.value.toInt() + } + + val b = BoxAny(4) + b.extension { + result += intValue + } + + val bInt = BoxInt(5) + BoxInt(5).extension { + result += value + bInt.value + } + + BoxLong(6).extension { + result += value.toInt() + } + } + + return if (result == 168) "OK" else "Error: $result" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt new file mode 100644 index 00000000000..b0ce12dc536 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt @@ -0,0 +1,20 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val s: T) { + fun isString(): Boolean = s is String +} + +class Box(val x: T) + +fun box(): String { + val f = Foo("string") + val g = Box(f) + val r = g.x.isString() + + if (!r) return "Fail" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt new file mode 100644 index 00000000000..5b816dc6a43 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt @@ -0,0 +1,21 @@ +// WITH_STDLIB +// IGNORE_BACKEND: NATIVE +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class SnekDirection(val direction: T) { + companion object { + val Up = SnekDirection(0) + } +} + +fun testUnbox() : SnekDirection { + val list = arrayListOf(SnekDirection.Up) + return list[0] +} + +fun box(): String { + val a = testUnbox() + return if (a.direction == 0) "OK" else "Fail" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt b/compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt new file mode 100644 index 00000000000..f253c3f1620 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt @@ -0,0 +1,24 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class NullableInt(private val holder: T) { + val intValue: Int get() = holder as Int +} + +val prop: ArrayList> = arrayListOf(NullableInt(0)) + +fun box(): String { + val a = prop[0].intValue + if (a != 0) return "Error 1: $a" + + val local = mutableListOf(NullableInt(1)) + val b = local[0].intValue + if (b != 1) return "Error 2: $b" + + prop[0] = NullableInt(2) + if (prop[0].intValue != 2) return "Error 3: ${prop[0].intValue}" + + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt b/compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt new file mode 100644 index 00000000000..82851a6c10c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt @@ -0,0 +1,22 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(private val u: T) { + fun asResult() = u +} + +fun test(x1: UInt?, x2: UInt?, y: UInt, z: UInt?): Int { + val a = x1 ?: y + val b = x1 ?: z!! + val c = x1 ?: x2 ?: y + return a.asResult() + b.asResult() + c.asResult() +} + +fun box(): String { + val u1 = UInt(10) + val u2 = UInt(20) + val r = test(null, null, u1, u2) + return if (r != 40) "fail: $r" else "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt new file mode 100644 index 00000000000..ca574770e08 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt @@ -0,0 +1,17 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Foo(val a: T) { + fun test(): String { + return a + inlineFun() + } +} + +inline fun inlineFun(): String = "K" + +fun box(): String { + val f = Foo("O") + return f.test() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJavaGeneric.kt b/compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJavaGeneric.kt new file mode 100644 index 00000000000..99b67665b13 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJavaGeneric.kt @@ -0,0 +1,27 @@ +// TARGET_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// FILE: a.kt + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val v: T) { + fun getT(): T? = null +} + +// FILE: UseIC.java + +public class UseIC { + private IC ic = null; + + public static String result() { + return "OK"; + } +} + +// FILE: test.kt + +fun box(): String { + return UseIC.result() +} diff --git a/compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt new file mode 100644 index 00000000000..fd2baf8ab7f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt @@ -0,0 +1,24 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class UInt(val a: T) { + fun test() { + takeNullable(this) + takeAnyInside(this) + + takeAnyInside(this.a) + } + + fun takeAnyInside(a: Any) {} +} + +fun takeNullable(a: UInt?) {} + +fun box(): String { + val a = UInt(0) + a.test() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt b/compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt new file mode 100644 index 00000000000..7ca473eca48 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt @@ -0,0 +1,25 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class InlineLong(val value: T) +inline val Number.toInlineLong get() = InlineLong(this.toLong()) + +fun box(): String { + val value = 0 + + val withoutSubject = when (value.toInlineLong) { + 0.toInlineLong -> true + else -> false + } + if (!withoutSubject) return "Fail: without subject" + + val withSubject = when (val subject = value.toInlineLong) { + 0.toInlineLong -> true + else -> false + } + if (!withSubject) return "Fail: with subject" + + return "OK" +} diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java index 4844bc7e360..ca85688abe2 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java @@ -19123,84 +19123,168 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("annotatedMemberExtensionPropertyGeneric.kt") + public void testAnnotatedMemberExtensionPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anySuperCall.kt") public void testAnySuperCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anySuperCallGeneric.kt") + public void testAnySuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundCallableReferencePassedToInlineFunction.kt") public void testBoundCallableReferencePassedToInlineFunction() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundCallableReferencePassedToInlineFunctionGeneric.kt") + public void testBoundCallableReferencePassedToInlineFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructor.kt") public void testBoxImplDoesNotExecuteInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt") + public void testBoxImplDoesNotExecuteInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxImplDoesNotExecuteInitBlock.kt") public void testBoxImplDoesNotExecuteInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxImplDoesNotExecuteInitBlockGeneric.kt") + public void testBoxImplDoesNotExecuteInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableForFakeOverride.kt") public void testBoxNullableForFakeOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableForFakeOverrideGeneric.kt") + public void testBoxNullableForFakeOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxResultInlineClassOfConstructorCall.kt") public void testBoxResultInlineClassOfConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxResultInlineClassOfConstructorCallGeneric.kt") + public void testBoxResultInlineClassOfConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSet.kt") public void testBoxUnboxInlineClassesWithOperatorsGetSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSet.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt") + public void testBoxUnboxInlineClassesWithOperatorsGetSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxUnboxOfInlineClassForCapturedVars.kt") public void testBoxUnboxOfInlineClassForCapturedVars() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVars.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxUnboxOfInlineClassForCapturedVarsGeneric.kt") + public void testBoxUnboxOfInlineClassForCapturedVarsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("bridgeForFunctionReturningInlineClass.kt") public void testBridgeForFunctionReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("bridgeForFunctionReturningInlineClassGeneric.kt") + public void testBridgeForFunctionReturningInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("bridgeGenerationWithInlineClassOverAny.kt") public void testBridgeGenerationWithInlineClassOverAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("bridgeGenerationWithInlineClassOverAnyGeneric.kt") + public void testBridgeGenerationWithInlineClassOverAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("bridgesWhenInlineClassImplementsGenericInterface.kt") public void testBridgesWhenInlineClassImplementsGenericInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt") + public void testBridgesWhenInlineClassImplementsGenericInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("callComputablePropertyInsideInlineClass.kt") public void testCallComputablePropertyInsideInlineClass() throws Exception { @@ -19213,114 +19297,228 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflection.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("callSpecializedEqualsViaReflectionGeneric.kt") + public void testCallSpecializedEqualsViaReflectionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflectionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("callSpeciallyOverriddenPropertyOfInlineClass.kt") public void testCallSpeciallyOverriddenPropertyOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt") + public void testCallSpeciallyOverriddenPropertyOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("callableReferencesWithInlineClasses.kt") public void testCallableReferencesWithInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("callableReferencesWithInlineClassesGeneric.kt") + public void testCallableReferencesWithInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("castInsideWhenExpression.kt") public void testCastInsideWhenExpression() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpression.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("castInsideWhenExpressionGeneric.kt") + public void testCastInsideWhenExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctions.kt") public void testCheckBoxUnboxOfArgumentsOnInlinedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt") + public void testCheckBoxUnboxOfArgumentsOnInlinedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingAfterAssertionOperator.kt") public void testCheckBoxingAfterAssertionOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingAfterAssertionOperatorGeneric.kt") + public void testCheckBoxingAfterAssertionOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingForComplexClassHierarchy.kt") public void testCheckBoxingForComplexClassHierarchy() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchy.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingForComplexClassHierarchyGeneric.kt") + public void testCheckBoxingForComplexClassHierarchyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingForNonLocalAndLabeledReturns.kt") public void testCheckBoxingForNonLocalAndLabeledReturns() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturns.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingForNonLocalAndLabeledReturnsGeneric.kt") + public void testCheckBoxingForNonLocalAndLabeledReturnsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingFromReturnTypeForInlineClasses.kt") public void testCheckBoxingFromReturnTypeForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingFromReturnTypeForInlineClassesGeneric.kt") + public void testCheckBoxingFromReturnTypeForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingOnFunctionCalls.kt") public void testCheckBoxingOnFunctionCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCalls.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingOnFunctionCallsGeneric.kt") + public void testCheckBoxingOnFunctionCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingOnLocalVariableAssignments.kt") public void testCheckBoxingOnLocalVariableAssignments() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignments.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingOnLocalVariableAssignmentsGeneric.kt") + public void testCheckBoxingOnLocalVariableAssignmentsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt") public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt") + public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkCallingMembersInsideInlineClass.kt") public void testCheckCallingMembersInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkCallingMembersInsideInlineClassGeneric.kt") + public void testCheckCallingMembersInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkCastToInlineClass.kt") public void testCheckCastToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkCastToInlineClassGeneric.kt") + public void testCheckCastToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkForInstanceOfInlineClass.kt") public void testCheckForInstanceOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkForInstanceOfInlineClassGeneric.kt") + public void testCheckForInstanceOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkLambdaWithInlineClassesInFunctionalType.kt") public void testCheckLambdaWithInlineClassesInFunctionalType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt") + public void testCheckLambdaWithInlineClassesInFunctionalTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkUnboxingResultFromTypeVariable.kt") public void testCheckUnboxingResultFromTypeVariable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkUnboxingResultFromTypeVariableGeneric.kt") + public void testCheckUnboxingResultFromTypeVariableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("classInInlineClassInit.kt") public void testClassInInlineClassInit() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInit.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("classInInlineClassInitGeneric.kt") + public void testClassInInlineClassInitGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("classLiteralOnInlineClass.kt") public void testClassLiteralOnInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("classLiteralOnInlineClassGeneric.kt") + public void testClassLiteralOnInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("computablePropertyInsideInlineClass.kt") public void testComputablePropertyInsideInlineClass() throws Exception { @@ -19333,36 +19531,72 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("conformToComparableAndCallInterfaceMethodGeneric.kt") + public void testConformToComparableAndCallInterfaceMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorCallableReference.kt") public void testConstructorCallableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorCallableReferenceGeneric.kt") + public void testConstructorCallableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorImplVisibility.kt") public void testConstructorImplVisibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorImplVisibilityGeneric.kt") + public void testConstructorImplVisibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("correctBoxingForBranchExpressions.kt") public void testCorrectBoxingForBranchExpressions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("correctBoxingForBranchExpressionsGeneric.kt") + public void testCorrectBoxingForBranchExpressionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("createInlineClassInArgumentPosition.kt") public void testCreateInlineClassInArgumentPosition() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPosition.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("createInlineClassInArgumentPositionGeneric.kt") + public void testCreateInlineClassInArgumentPositionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("crossinlineWithInlineClassInParameter.kt") public void testCrossinlineWithInlineClassInParameter() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameter.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("crossinlineWithInlineClassInParameterGeneric.kt") + public void testCrossinlineWithInlineClassInParameterGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("customIterator.kt") public void testCustomIterator() throws Exception { @@ -19375,126 +19609,252 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultFunctionsFromAnyForInlineClassGeneric.kt") + public void testDefaultFunctionsFromAnyForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") public void testDefaultInterfaceMethodsInInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultInterfaceMethodsInInlineClassGeneric.kt") + public void testDefaultInterfaceMethodsInInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("defaultWithInlineClassArgument.kt") public void testDefaultWithInlineClassArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultWithInlineClassArgumentGeneric.kt") + public void testDefaultWithInlineClassArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("elvisWithInlineClassAndNullConstant.kt") public void testElvisWithInlineClassAndNullConstant() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstant.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("elvisWithInlineClassAndNullConstantGeneric.kt") + public void testElvisWithInlineClassAndNullConstantGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("emptyConstructorForInlineClass.kt") public void testEmptyConstructorForInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("emptyConstructorForInlineClassGeneric.kt") + public void testEmptyConstructorForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksInlineClassNonNull.kt") public void testEqualityChecksInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksInlineClassNonNullGeneric.kt") + public void testEqualityChecksInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksMixedNullability.kt") public void testEqualityChecksMixedNullability() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullability.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksMixedNullabilityGeneric.kt") + public void testEqualityChecksMixedNullabilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNegatedInlineClassNonNull.kt") public void testEqualityChecksNegatedInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNegatedInlineClassNonNullGeneric.kt") + public void testEqualityChecksNegatedInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNegatedNonNull.kt") public void testEqualityChecksNegatedNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNegatedNonNullGeneric.kt") + public void testEqualityChecksNegatedNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNegatedNullable.kt") public void testEqualityChecksNegatedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNegatedNullableGeneric.kt") + public void testEqualityChecksNegatedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNegatedPrimitive.kt") public void testEqualityChecksNegatedPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNegatedPrimitiveGeneric.kt") + public void testEqualityChecksNegatedPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNonNull.kt") public void testEqualityChecksNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNonNullGeneric.kt") + public void testEqualityChecksNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNullable.kt") public void testEqualityChecksNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNullableGeneric.kt") + public void testEqualityChecksNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksPrimitive.kt") public void testEqualityChecksPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksPrimitiveGeneric.kt") + public void testEqualityChecksPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClass.kt") public void testEqualityForBoxesOfNullableValuesOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt") + public void testEqualityForBoxesOfNullableValuesOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsCallsLeftArgument.kt") public void testEqualsCallsLeftArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsCallsLeftArgumentGeneric.kt") + public void testEqualsCallsLeftArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsEvaluationOrderInlineClass.kt") public void testEqualsEvaluationOrderInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsEvaluationOrderInlineClassGeneric.kt") + public void testEqualsEvaluationOrderInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsEvaluationOrderNonNull.kt") public void testEqualsEvaluationOrderNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsEvaluationOrderNonNullGeneric.kt") + public void testEqualsEvaluationOrderNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsEvaluationOrderNullable.kt") public void testEqualsEvaluationOrderNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsEvaluationOrderNullableGeneric.kt") + public void testEqualsEvaluationOrderNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsEvaluationOrderPrimitive.kt") public void testEqualsEvaluationOrderPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsEvaluationOrderPrimitiveGeneric.kt") + public void testEqualsEvaluationOrderPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsOperatorWithGenericCall.kt") public void testEqualsOperatorWithGenericCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsOperatorWithGenericCallGeneric.kt") + public void testEqualsOperatorWithGenericCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("extLambdaInInlineClassFun.kt") public void testExtLambdaInInlineClassFun() throws Exception { @@ -19507,12 +19867,30 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("extLambdaInInlineClassFun2Generic.kt") + public void testExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("extLambdaInInlineClassFunGeneric.kt") + public void testExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("fieldNameClash.kt") public void testFieldNameClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("fieldNameClashGeneric.kt") + public void testFieldNameClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("funInterfaceDoubleSuffux.kt") public void testFunInterfaceDoubleSuffux() throws Exception { @@ -19531,6 +19909,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/functionExpression.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("functionExpressionGeneric.kt") + public void testFunctionExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericInlineClassSynthMembers.kt") public void testGenericInlineClassSynthMembers() throws Exception { @@ -19549,108 +19933,216 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/initBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("initBlockGeneric.kt") + public void testInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassAsLastExpressionInInLambda.kt") public void testInlineClassAsLastExpressionInInLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassAsLastExpressionInInLambdaGeneric.kt") + public void testInlineClassAsLastExpressionInInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt") public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointData() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt") + public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassFieldHandling.kt") public void testInlineClassFieldHandling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandling.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassFieldHandlingGeneric.kt") + public void testInlineClassFieldHandlingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassFunctionInvoke.kt") public void testInlineClassFunctionInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvoke.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassFunctionInvokeGeneric.kt") + public void testInlineClassFunctionInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassImplementsCollection.kt") public void testInlineClassImplementsCollection() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollection.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassImplementsCollectionGeneric.kt") + public void testInlineClassImplementsCollectionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollectionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassInInitBlock.kt") public void testInlineClassInInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassInInitBlockGeneric.kt") + public void testInlineClassInInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassInStringTemplate.kt") public void testInlineClassInStringTemplate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplate.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassInStringTemplateGeneric.kt") + public void testInlineClassInStringTemplateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassPropertyReferenceGetAndSet.kt") public void testInlineClassPropertyReferenceGetAndSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSet.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassPropertyReferenceGetAndSetGeneric.kt") + public void testInlineClassPropertyReferenceGetAndSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassValueCapturedInInlineLambda.kt") public void testInlineClassValueCapturedInInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassValueCapturedInInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassValueCapturedInNonInlineLambda.kt") public void testInlineClassValueCapturedInNonInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassValueCapturedInNonInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInNonInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassValuesInsideStrings.kt") public void testInlineClassValuesInsideStrings() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStrings.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassValuesInsideStringsGeneric.kt") + public void testInlineClassValuesInsideStringsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassWithCustomEquals.kt") public void testInlineClassWithCustomEquals() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassWithCustomEqualsGeneric.kt") + public void testInlineClassWithCustomEqualsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassWithDefaultFunctionsFromAny.kt") public void testInlineClassWithDefaultFunctionsFromAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassWithDefaultFunctionsFromAnyGeneric.kt") + public void testInlineClassWithDefaultFunctionsFromAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassesAsInlineFunParameters.kt") public void testInlineClassesAsInlineFunParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassesAsInlineFunParametersGeneric.kt") + public void testInlineClassesAsInlineFunParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassesCheckCast.kt") public void testInlineClassesCheckCast() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCast.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassesCheckCastGeneric.kt") + public void testInlineClassesCheckCastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassesInInlineLambdaParameters.kt") public void testInlineClassesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassesRefTypesInInlineLambdaParameters.kt") public void testInlineClassesRefTypesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassesRefTypesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesRefTypesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineExtLambdaInInlineClassFun.kt") public void testInlineExtLambdaInInlineClassFun() throws Exception { @@ -19663,42 +20155,90 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineExtLambdaInInlineClassFun2Generic.kt") + public void testInlineExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineExtLambdaInInlineClassFunGeneric.kt") + public void testInlineExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineFunctionInsideInlineClass.kt") public void testInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineFunctionInsideInlineClassGeneric.kt") + public void testInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("iterateOverArrayOfInlineClassValues.kt") public void testIterateOverArrayOfInlineClassValues() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValues.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("iterateOverArrayOfInlineClassValuesGeneric.kt") + public void testIterateOverArrayOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("iterateOverListOfInlineClassValues.kt") public void testIterateOverListOfInlineClassValues() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("iterateOverListOfInlineClassValuesGeneric.kt") + public void testIterateOverListOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("javaClassIntrinsicOnInlineClasses.kt") public void testJavaClassIntrinsicOnInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("javaClassIntrinsicOnInlineClassesGeneric.kt") + public void testJavaClassIntrinsicOnInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("javaPrimitiveTypeIC.kt") public void testJavaPrimitiveTypeIC() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("javaPrimitiveTypeICGeneric.kt") + public void testJavaPrimitiveTypeICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmFieldInInlineClassCompanion.kt") public void testJvmFieldInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmFieldInInlineClassCompanionGeneric.kt") + public void testJvmFieldInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmInline.kt") public void testJvmInline() throws Exception { @@ -19711,30 +20251,60 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt") + public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmStaticFunInInlineClassCompanion.kt") public void testJvmStaticFunInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmStaticFunInInlineClassCompanionGeneric.kt") + public void testJvmStaticFunInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmStaticPropertyAccessorInInlineClassCompanion.kt") public void testJvmStaticPropertyAccessorInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt") + public void testJvmStaticPropertyAccessorInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmStaticVarInInlineClassCompanion.kt") public void testJvmStaticVarInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmStaticVarInInlineClassCompanionGeneric.kt") + public void testJvmStaticVarInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kclassInAnnotation.kt") public void testKclassInAnnotation() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kclassInAnnotation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kclassInAnnotationGeneric.kt") + public void testKclassInAnnotationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kclassInAnnotationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt25246.kt") public void testKt25246() throws Exception { @@ -19747,6 +20317,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/kt25750.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt25750Generic.kt") + public void testKt25750Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt25771.kt") public void testKt25771() throws Exception { @@ -19783,18 +20359,36 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/kt27096.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096Generic.kt") + public void testKt27096Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_enum.kt") public void testKt27096_enum() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enum.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_enumGeneric.kt") + public void testKt27096_enumGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_functional.kt") public void testKt27096_functional() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functional.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_functionalGeneric.kt") + public void testKt27096_functionalGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_innerClass.kt") public void testKt27096_innerClass() throws Exception { @@ -19807,24 +20401,48 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_nullablePrimitiveGeneric.kt") + public void testKt27096_nullablePrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_nullableReference.kt") public void testKt27096_nullableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_nullableReferenceGeneric.kt") + public void testKt27096_nullableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_primitive.kt") public void testKt27096_primitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_primitiveGeneric.kt") + public void testKt27096_primitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_reference.kt") public void testKt27096_reference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_reference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_referenceGeneric.kt") + public void testKt27096_referenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27113.kt") public void testKt27113() throws Exception { @@ -19837,30 +20455,60 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/kt27113a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27113aGeneric.kt") + public void testKt27113aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27132.kt") public void testKt27132() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27132.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27132Generic.kt") + public void testKt27132Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27140.kt") public void testKt27140() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27140.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27140Generic.kt") + public void testKt27140Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27705.kt") public void testKt27705() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27705.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27705Generic.kt") + public void testKt27705Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27706.kt") public void testKt27706() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27706.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27706Generic.kt") + public void testKt27706Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt28405.kt") public void testKt28405() throws Exception { @@ -19909,6 +20557,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/kt33119.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt33119Generic.kt") + public void testKt33119Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt34268.kt") public void testKt34268() throws Exception { @@ -19927,24 +20581,48 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt37998Generic.kt") + public void testKt37998Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt38680.kt") public void testKt38680() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt38680Generic.kt") + public void testKt38680Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt38680a.kt") public void testKt38680a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt38680aGeneric.kt") + public void testKt38680aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt38680b.kt") public void testKt38680b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt38680bGeneric.kt") + public void testKt38680bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt44141.kt") public void testKt44141() throws Exception { @@ -19957,6 +20635,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt44701_jvmOverloadsGeneric.kt") + public void testKt44701_jvmOverloadsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloadsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt44867.kt") public void testKt44867() throws Exception { @@ -19975,6 +20659,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/kt45084.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt45084Generic.kt") + public void testKt45084Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { @@ -19987,6 +20677,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/kt46554.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt46554Generic.kt") + public void testKt46554Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt47609.kt") public void testKt47609() throws Exception { @@ -19999,12 +20695,24 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/kt47762.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt47762Generic.kt") + public void testKt47762Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt48993.kt") public void testKt48993() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt48993.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt48993Generic.kt") + public void testKt48993Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt48993Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt51157.kt") public void testKt51157() throws Exception { @@ -20017,12 +20725,24 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledDefaultParameterFunctionGeneric.kt") + public void testMangledDefaultParameterFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mangledSuperCalls.kt") public void testMangledSuperCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCalls.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledSuperCallsGeneric.kt") + public void testMangledSuperCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mapInlineClassesWithSuppressWildcardsMode.kt") public void testMapInlineClassesWithSuppressWildcardsMode() throws Exception { @@ -20035,6 +20755,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mappingOfBoxedFlexibleInlineClassTypeGeneric.kt") + public void testMappingOfBoxedFlexibleInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("multifileClass.kt") public void testMultifileClass() throws Exception { @@ -20047,36 +20773,72 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("nestedInlineClassGeneric.kt") + public void testNestedInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("noAssertionsOnInlineClassBasedOnNullableType.kt") public void testNoAssertionsOnInlineClassBasedOnNullableType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt") + public void testNoAssertionsOnInlineClassBasedOnNullableTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("noReturnTypeMangling.kt") public void testNoReturnTypeMangling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("noReturnTypeManglingGeneric.kt") + public void testNoReturnTypeManglingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("noReturnTypeManglingJvmName.kt") public void testNoReturnTypeManglingJvmName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("noReturnTypeManglingJvmNameGeneric.kt") + public void testNoReturnTypeManglingJvmNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableEqeqNonNull.kt") public void testNullableEqeqNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("nullableEqeqNonNullGeneric.kt") + public void testNullableEqeqNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableWrapperEquality.kt") public void testNullableWrapperEquality() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEquality.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("nullableWrapperEqualityGeneric.kt") + public void testNullableWrapperEqualityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideReturnNothing.kt") public void testOverrideReturnNothing() throws Exception { @@ -20089,48 +20851,96 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overridingFunCallingPrivateFunGeneric.kt") + public void testOverridingFunCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("passInlineClassAsVararg.kt") public void testPassInlineClassAsVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("passInlineClassAsVarargGeneric.kt") + public void testPassInlineClassAsVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("passInlineClassWithSpreadOperatorToVarargs.kt") public void testPassInlineClassWithSpreadOperatorToVarargs() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargs.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("passInlineClassWithSpreadOperatorToVarargsGeneric.kt") + public void testPassInlineClassWithSpreadOperatorToVarargsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("privateConstructorFunInterfaceMultiModule.kt") public void testPrivateConstructorFunInterfaceMultiModule() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModule.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("privateConstructorFunInterfaceMultiModuleGeneric.kt") + public void testPrivateConstructorFunInterfaceMultiModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("propertyLoweringOrder.kt") public void testPropertyLoweringOrder() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrder.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("propertyLoweringOrderGeneric.kt") + public void testPropertyLoweringOrderGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("referToPropertyInCompanionObjectOfInlineClass.kt") public void testReferToPropertyInCompanionObjectOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("referToPropertyInCompanionObjectOfInlineClassGeneric.kt") + public void testReferToPropertyInCompanionObjectOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("referToUnderlyingPropertyInsideInlineClass.kt") public void testReferToUnderlyingPropertyInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("referToUnderlyingPropertyInsideInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("referToUnderlyingPropertyOfInlineClass.kt") public void testReferToUnderlyingPropertyOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("referToUnderlyingPropertyOfInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("removeInInlineCollectionOfInlineClassAsInt.kt") public void testRemoveInInlineCollectionOfInlineClassAsInt() throws Exception { @@ -20143,6 +20953,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/result.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("resultGeneric.kt") + public void testResultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/resultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("resultInlining.kt") public void testResultInlining() throws Exception { @@ -20161,72 +20977,144 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBound.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("safeAsOfTypeParameterWithInlineClassBoundGeneric.kt") + public void testSafeAsOfTypeParameterWithInlineClassBoundGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("samWrapperDifferentModule.kt") public void testSamWrapperDifferentModule() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModule.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("samWrapperDifferentModuleGeneric.kt") + public void testSamWrapperDifferentModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("secondaryConstructorWithVararg.kt") public void testSecondaryConstructorWithVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("secondaryConstructorWithVarargGeneric.kt") + public void testSecondaryConstructorWithVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("secondaryConstructorsInsideInlineClass.kt") public void testSecondaryConstructorsInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt") public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("simpleSecondaryConstructor.kt") public void testSimpleSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("simpleSecondaryConstructorGeneric.kt") + public void testSimpleSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("smartCastOnThisOfInlineClassType.kt") public void testSmartCastOnThisOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("smartCastOnThisOfInlineClassTypeGeneric.kt") + public void testSmartCastOnThisOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("stringPlus.kt") public void testStringPlus() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/stringPlus.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("stringPlusGeneric.kt") + public void testStringPlusGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("toStringCallingPrivateFun.kt") public void testToStringCallingPrivateFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("toStringCallingPrivateFunGeneric.kt") + public void testToStringCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("toStringOfUnboxedNullable.kt") public void testToStringOfUnboxedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("toStringOfUnboxedNullableGeneric.kt") + public void testToStringOfUnboxedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("typeChecksForInlineClasses.kt") public void testTypeChecksForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("typeChecksForInlineClassesGeneric.kt") + public void testTypeChecksForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("UIntArraySortExample.kt") public void testUIntArraySortExample() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("UIntArraySortExampleGeneric.kt") + public void testUIntArraySortExampleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("UIntSafeAsInt.kt") public void testUIntSafeAsInt() throws Exception { @@ -20239,24 +21127,48 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvoke.kt") public void testUnboxParameterOfSuspendLambdaBeforeInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvoke.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt") + public void testUnboxParameterOfSuspendLambdaBeforeInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxReceiverOnCallingMethodFromInlineClass.kt") public void testUnboxReceiverOnCallingMethodFromInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxReceiverOnCallingMethodFromInlineClassGeneric.kt") + public void testUnboxReceiverOnCallingMethodFromInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxResultParameterWhenCapturingToCrossinlineLambda.kt") public void testUnboxResultParameterWhenCapturingToCrossinlineLambda() throws Exception { @@ -20269,42 +21181,84 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxValueFromPlatformTypeGeneric.kt") + public void testUnboxValueFromPlatformTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt") public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxValueOfAnyBeforeMethodInvocationGeneric.kt") + public void testUnboxValueOfAnyBeforeMethodInvocationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("useInlineClassesInsideElvisOperator.kt") public void testUseInlineClassesInsideElvisOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("useInlineClassesInsideElvisOperatorGeneric.kt") + public void testUseInlineClassesInsideElvisOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("useInlineFunctionInsideInlineClass.kt") public void testUseInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("useInlineFunctionInsideInlineClassGeneric.kt") + public void testUseInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("useOfInlineClassWithGenericMethodFromJava.kt") public void testUseOfInlineClassWithGenericMethodFromJava() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("useOfInlineClassWithGenericMethodFromJavaGeneric.kt") + public void testUseOfInlineClassWithGenericMethodFromJavaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJavaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("useThisInsideInlineClass.kt") public void testUseThisInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("useThisInsideInlineClassGeneric.kt") + public void testUseThisInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("whenWithSubject.kt") public void testWhenWithSubject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubject.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("whenWithSubjectGeneric.kt") + public void testWhenWithSubjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda") @TestDataPath("$PROJECT_ROOT") @@ -21696,11 +22650,29 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt"); } + @Test + @TestMetadata("defaultArgumentGeneric.kt") + public void testDefaultArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt"); + } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultGeneric.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simple.kt"); } + + @Test + @TestMetadata("simpleGeneric.kt") + public void testSimpleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simpleGeneric.kt"); + } } @Nested @@ -21718,6 +22690,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("argumentICGeneric.kt") + public void testArgumentICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("argumentResult.kt") public void testArgumentResult() throws Exception { @@ -21742,12 +22720,24 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappers.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledSamWrappersGeneric.kt") + public void testMangledSamWrappersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("returnIC.kt") public void testReturnIC() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("returnICGeneric.kt") + public void testReturnICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("returnResult.kt") public void testReturnResult() throws Exception { @@ -21770,60 +22760,120 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anonymousObjectInFunctionWithMangledNameGeneric.kt") + public void testAnonymousObjectInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("extensionFunctionsDoNotClash.kt") public void testExtensionFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("extensionFunctionsDoNotClashGeneric.kt") + public void testExtensionFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("functionsWithDifferentNullabilityDoNotClash.kt") public void testFunctionsWithDifferentNullabilityDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("functionsWithDifferentNullabilityDoNotClashGeneric.kt") + public void testFunctionsWithDifferentNullabilityDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericFunctionsDoNotClash.kt") public void testGenericFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericFunctionsDoNotClashGeneric.kt") + public void testGenericFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericSignatureOfFunctionWithMangledName.kt") public void testGenericSignatureOfFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericSignatureOfFunctionWithMangledNameGeneric.kt") + public void testGenericSignatureOfFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("localClassInFunctionWithMangledName.kt") public void testLocalClassInFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("localClassInFunctionWithMangledNameGeneric.kt") + public void testLocalClassInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mangledFunctionsCanBeOverridden.kt") public void testMangledFunctionsCanBeOverridden() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverridden.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledFunctionsCanBeOverriddenGeneric.kt") + public void testMangledFunctionsCanBeOverriddenGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mangledFunctionsDoNotClash.kt") public void testMangledFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledFunctionsDoNotClashGeneric.kt") + public void testMangledFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mangledFunctionsPresentInStackTrace.kt") public void testMangledFunctionsPresentInStackTrace() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTrace.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledFunctionsPresentInStackTraceGeneric.kt") + public void testMangledFunctionsPresentInStackTraceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mixedSignatureFunctionsDoNotClash.kt") public void testMixedSignatureFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mixedSignatureFunctionsDoNotClashGeneric.kt") + public void testMixedSignatureFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overridingMethodInGenericClass.kt") public void testOverridingMethodInGenericClass() throws Exception { @@ -21836,41 +22886,89 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overridingMethodInGenericClass2Generic.kt") + public void testOverridingMethodInGenericClass2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overridingMethodInGenericClassGeneric.kt") + public void testOverridingMethodInGenericClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("propertySetterWithInlineClassTypeArgument.kt") public void testPropertySetterWithInlineClassTypeArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("propertySetterWithInlineClassTypeArgumentGeneric.kt") + public void testPropertySetterWithInlineClassTypeArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("reflectionForFunctionWithMangledName.kt") public void testReflectionForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("reflectionForFunctionWithMangledNameGeneric.kt") + public void testReflectionForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("reflectionForLocalClassInFunctionWithMangledName.kt") public void testReflectionForLocalClassInFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("reflectionForLocalClassInFunctionWithMangledNameGeneric.kt") + public void testReflectionForLocalClassInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("reflectionForPropertyOfInlineClassType.kt") public void testReflectionForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("reflectionForPropertyOfInlineClassTypeGeneric.kt") + public void testReflectionForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("syntheticAccessorForFunctionWithMangledName.kt") public void testSyntheticAccessorForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("syntheticAccessorForFunctionWithMangledNameGeneric.kt") + public void testSyntheticAccessorForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("syntheticAccessorsForPropertyOfInlineClassType.kt") public void testSyntheticAccessorsForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt") + public void testSyntheticAccessorsForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -21910,48 +23008,96 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorReferencedFromOtherFile1Generic.kt") + public void testConstructorReferencedFromOtherFile1Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorReferencedFromOtherFile2.kt") public void testConstructorReferencedFromOtherFile2() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorReferencedFromOtherFile2Generic.kt") + public void testConstructorReferencedFromOtherFile2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorWithDefaultParameters.kt") public void testConstructorWithDefaultParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorWithDefaultParametersGeneric.kt") + public void testConstructorWithDefaultParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatingSuperConstructorCall.kt") public void testDelegatingSuperConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatingSuperConstructorCallGeneric.kt") + public void testDelegatingSuperConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructor.kt") public void testDelegatingSuperConstructorCallInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt") + public void testDelegatingSuperConstructorCallInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatingThisConstructorCall.kt") public void testDelegatingThisConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatingThisConstructorCallGeneric.kt") + public void testDelegatingThisConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("enumClassConstructor.kt") public void testEnumClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("enumClassConstructorGeneric.kt") + public void testEnumClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("innerClassConstructor.kt") public void testInnerClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("innerClassConstructorGeneric.kt") + public void testInnerClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt28855.kt") public void testKt28855() throws Exception { @@ -21964,23 +23110,47 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("primaryConstructorGeneric.kt") + public void testPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("privateConstructor.kt") public void testPrivateConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("privateConstructorGeneric.kt") + public void testPrivateConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("sealedClassConstructor.kt") public void testSealedClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("sealedClassConstructorGeneric.kt") + public void testSealedClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("secondaryConstructor.kt") public void testSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("secondaryConstructorGeneric.kt") + public void testSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -21998,17 +23168,35 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineCollectionOfInlineClassGeneric.kt") + public void testInlineCollectionOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineListOfInlineClass.kt") public void testInlineListOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineListOfInlineClassGeneric.kt") + public void testInlineListOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineMapOfInlineClass.kt") public void testInlineMapOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("inlineMapOfInlineClassGeneric.kt") + public void testInlineMapOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22026,18 +23214,36 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("interfaceImplementationByDelegationGeneric.kt") + public void testInterfaceImplementationByDelegationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt38337.kt") public void testKt38337() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt38337Generic.kt") + public void testKt38337Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberExtValDelegationWithInlineClassParameterTypes.kt") public void testMemberExtValDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberExtValDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberExtVarDelegationWithInlineClassParameterTypes.kt") public void testMemberExtVarDelegationWithInlineClassParameterTypes() throws Exception { @@ -22050,23 +23256,47 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("memberFunDelegatedToInlineClassIntGeneric.kt") + public void testMemberFunDelegatedToInlineClassIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberFunDelegatedToInlineClassLong.kt") public void testMemberFunDelegatedToInlineClassLong() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLong.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("memberFunDelegatedToInlineClassLongGeneric.kt") + public void testMemberFunDelegatedToInlineClassLongGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt") public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberFunDelegationWithInlineClassParameterTypes.kt") public void testMemberFunDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("memberFunDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22090,59 +23320,125 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride2Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("complexGenericMethodWithInlineClassOverride3.kt") public void testComplexGenericMethodWithInlineClassOverride3() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride3Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride3Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverrideGeneric.kt") + public void testComplexGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("defaultInterfaceExtensionFunCall.kt") public void testDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultInterfaceExtensionFunCallGeneric.kt") + public void testDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("defaultInterfaceMethodCall.kt") public void testDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultInterfaceMethodCallGeneric.kt") + public void testDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericDefaultInterfaceExtensionFunCall.kt") public void testGenericDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericDefaultInterfaceExtensionFunCallGeneric.kt") + public void testGenericDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericDefaultInterfaceMethodCall.kt") public void testGenericDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericDefaultInterfaceMethodCallGeneric.kt") + public void testGenericDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericInterfaceMethodCall.kt") public void testGenericInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericInterfaceMethodCallGeneric.kt") + public void testGenericInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericMethodWithInlineClassOverride.kt") public void testGenericMethodWithInlineClassOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericMethodWithInlineClassOverrideGeneric.kt") + public void testGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("interfaceSuperCall.kt") public void testInterfaceSuperCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("interfaceSuperCallGeneric.kt") + public void testInterfaceSuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overriddenDefaultInterfaceMethodCall.kt") public void testOverriddenDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("overriddenDefaultInterfaceMethodCallGeneric.kt") + public void testOverriddenDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22194,77 +23490,161 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAll.kt"); } + @Test + @TestMetadata("inlineClassInheritingDefaultMethodAllGeneric.kt") + public void testInlineClassInheritingDefaultMethodAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAllGeneric.kt"); + } + + @Test + @TestMetadata("inlineClassInheritingDefaultMethodGeneric.kt") + public void testInlineClassInheritingDefaultMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodGeneric.kt"); + } + @Test @TestMetadata("javaDefaultMethod.kt") public void testJavaDefaultMethod() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("javaDefaultMethodGeneric.kt") + public void testJavaDefaultMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("javaDefaultMethodOverriddenByKotlin.kt") public void testJavaDefaultMethodOverriddenByKotlin() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlin.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("javaDefaultMethodOverriddenByKotlinGeneric.kt") + public void testJavaDefaultMethodOverriddenByKotlinGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlinGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultAll.kt") public void testJvmDefaultAll() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAll.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultAllGeneric.kt") + public void testJvmDefaultAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultAllPrimaryProperty.kt") public void testJvmDefaultAllPrimaryProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultAllPrimaryPropertyGeneric.kt") + public void testJvmDefaultAllPrimaryPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultAllProperty.kt") public void testJvmDefaultAllProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultAllPropertyGeneric.kt") + public void testJvmDefaultAllPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultEnable.kt") public void testJvmDefaultEnable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultEnableGeneric.kt") + public void testJvmDefaultEnableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultEnablePrimaryProperty.kt") public void testJvmDefaultEnablePrimaryProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePrimaryProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultEnablePrimaryPropertyGeneric.kt") + public void testJvmDefaultEnablePrimaryPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePrimaryPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultEnableProperty.kt") public void testJvmDefaultEnableProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnableProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultEnablePropertyGeneric.kt") + public void testJvmDefaultEnablePropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultGeneric.kt") public void testJvmDefaultGeneric() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultGenericGeneric.kt") + public void testJvmDefaultGenericGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGenericGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultSafeCall.kt") public void testJvmDefaultSafeCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultSafeCallGeneric.kt") + public void testJvmDefaultSafeCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultSmartCast.kt") public void testJvmDefaultSmartCast() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCast.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultSmartCastGeneric.kt") + public void testJvmDefaultSmartCastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCastGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultSuspend.kt") public void testJvmDefaultSuspend() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspend.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("jvmDefaultSuspendGeneric.kt") + public void testJvmDefaultSuspendGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspendGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22282,71 +23662,143 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("captureLocalVarDelegatedToInlineClassGeneric.kt") + public void testCaptureLocalVarDelegatedToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateClassVarToInlineClass.kt") public void testDelegateClassVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateClassVarToInlineClassGeneric.kt") + public void testDelegateClassVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateClassVarToInlineClassWithProvideDelegate.kt") public void testDelegateClassVarToInlineClassWithProvideDelegate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegate.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateClassVarToInlineClassWithProvideDelegateGeneric.kt") + public void testDelegateClassVarToInlineClassWithProvideDelegateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateCompanionVarToInlineClass.kt") public void testDelegateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateCompanionVarToInlineClassGeneric.kt") + public void testDelegateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateJvmStaticCompanionVarToInlineClass.kt") public void testDelegateJvmStaticCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateJvmStaticCompanionVarToInlineClassGeneric.kt") + public void testDelegateJvmStaticCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateLocalVarToInlineClass.kt") public void testDelegateLocalVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateLocalVarToInlineClassGeneric.kt") + public void testDelegateLocalVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateObjectVarToInlineClass.kt") public void testDelegateObjectVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateObjectVarToInlineClassGeneric.kt") + public void testDelegateObjectVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatePrivateCompanionVarToInlineClass.kt") public void testDelegatePrivateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatePrivateCompanionVarToInlineClassGeneric.kt") + public void testDelegatePrivateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateTopLevelVarToInlineClass.kt") public void testDelegateTopLevelVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateTopLevelVarToInlineClassGeneric.kt") + public void testDelegateTopLevelVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatedPropertyOfInlineClassType.kt") public void testDelegatedPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatedPropertyOfInlineClassTypeGeneric.kt") + public void testDelegatedPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27070.kt") public void testKt27070() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27070Generic.kt") + public void testKt27070Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt42933.kt") public void testKt42933() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("kt42933Generic.kt") + public void testKt42933Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22477,12 +23929,24 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -22495,6 +23959,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -22507,6 +23983,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -22519,11 +24001,23 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22541,12 +24035,24 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -22559,6 +24065,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -22571,6 +24089,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -22583,11 +24107,23 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22605,12 +24141,24 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -22623,6 +24171,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -22635,6 +24195,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -22647,11 +24213,23 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } } } diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java index 73cbdf82411..f97956e5a13 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java @@ -19531,84 +19531,168 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("annotatedMemberExtensionPropertyGeneric.kt") + public void testAnnotatedMemberExtensionPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anySuperCall.kt") public void testAnySuperCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anySuperCallGeneric.kt") + public void testAnySuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundCallableReferencePassedToInlineFunction.kt") public void testBoundCallableReferencePassedToInlineFunction() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundCallableReferencePassedToInlineFunctionGeneric.kt") + public void testBoundCallableReferencePassedToInlineFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructor.kt") public void testBoxImplDoesNotExecuteInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt") + public void testBoxImplDoesNotExecuteInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxImplDoesNotExecuteInitBlock.kt") public void testBoxImplDoesNotExecuteInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxImplDoesNotExecuteInitBlockGeneric.kt") + public void testBoxImplDoesNotExecuteInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableForFakeOverride.kt") public void testBoxNullableForFakeOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableForFakeOverrideGeneric.kt") + public void testBoxNullableForFakeOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxResultInlineClassOfConstructorCall.kt") public void testBoxResultInlineClassOfConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxResultInlineClassOfConstructorCallGeneric.kt") + public void testBoxResultInlineClassOfConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSet.kt") public void testBoxUnboxInlineClassesWithOperatorsGetSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSet.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt") + public void testBoxUnboxInlineClassesWithOperatorsGetSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxUnboxOfInlineClassForCapturedVars.kt") public void testBoxUnboxOfInlineClassForCapturedVars() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVars.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxUnboxOfInlineClassForCapturedVarsGeneric.kt") + public void testBoxUnboxOfInlineClassForCapturedVarsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("bridgeForFunctionReturningInlineClass.kt") public void testBridgeForFunctionReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("bridgeForFunctionReturningInlineClassGeneric.kt") + public void testBridgeForFunctionReturningInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("bridgeGenerationWithInlineClassOverAny.kt") public void testBridgeGenerationWithInlineClassOverAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("bridgeGenerationWithInlineClassOverAnyGeneric.kt") + public void testBridgeGenerationWithInlineClassOverAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("bridgesWhenInlineClassImplementsGenericInterface.kt") public void testBridgesWhenInlineClassImplementsGenericInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt") + public void testBridgesWhenInlineClassImplementsGenericInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("callComputablePropertyInsideInlineClass.kt") public void testCallComputablePropertyInsideInlineClass() throws Exception { @@ -19621,114 +19705,228 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflection.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("callSpecializedEqualsViaReflectionGeneric.kt") + public void testCallSpecializedEqualsViaReflectionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflectionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("callSpeciallyOverriddenPropertyOfInlineClass.kt") public void testCallSpeciallyOverriddenPropertyOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt") + public void testCallSpeciallyOverriddenPropertyOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("callableReferencesWithInlineClasses.kt") public void testCallableReferencesWithInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("callableReferencesWithInlineClassesGeneric.kt") + public void testCallableReferencesWithInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("castInsideWhenExpression.kt") public void testCastInsideWhenExpression() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpression.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("castInsideWhenExpressionGeneric.kt") + public void testCastInsideWhenExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctions.kt") public void testCheckBoxUnboxOfArgumentsOnInlinedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt") + public void testCheckBoxUnboxOfArgumentsOnInlinedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingAfterAssertionOperator.kt") public void testCheckBoxingAfterAssertionOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingAfterAssertionOperatorGeneric.kt") + public void testCheckBoxingAfterAssertionOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingForComplexClassHierarchy.kt") public void testCheckBoxingForComplexClassHierarchy() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchy.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingForComplexClassHierarchyGeneric.kt") + public void testCheckBoxingForComplexClassHierarchyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingForNonLocalAndLabeledReturns.kt") public void testCheckBoxingForNonLocalAndLabeledReturns() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturns.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingForNonLocalAndLabeledReturnsGeneric.kt") + public void testCheckBoxingForNonLocalAndLabeledReturnsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingFromReturnTypeForInlineClasses.kt") public void testCheckBoxingFromReturnTypeForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingFromReturnTypeForInlineClassesGeneric.kt") + public void testCheckBoxingFromReturnTypeForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingOnFunctionCalls.kt") public void testCheckBoxingOnFunctionCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCalls.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingOnFunctionCallsGeneric.kt") + public void testCheckBoxingOnFunctionCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingOnLocalVariableAssignments.kt") public void testCheckBoxingOnLocalVariableAssignments() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignments.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingOnLocalVariableAssignmentsGeneric.kt") + public void testCheckBoxingOnLocalVariableAssignmentsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt") public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt") + public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkCallingMembersInsideInlineClass.kt") public void testCheckCallingMembersInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkCallingMembersInsideInlineClassGeneric.kt") + public void testCheckCallingMembersInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkCastToInlineClass.kt") public void testCheckCastToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkCastToInlineClassGeneric.kt") + public void testCheckCastToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkForInstanceOfInlineClass.kt") public void testCheckForInstanceOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkForInstanceOfInlineClassGeneric.kt") + public void testCheckForInstanceOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkLambdaWithInlineClassesInFunctionalType.kt") public void testCheckLambdaWithInlineClassesInFunctionalType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt") + public void testCheckLambdaWithInlineClassesInFunctionalTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("checkUnboxingResultFromTypeVariable.kt") public void testCheckUnboxingResultFromTypeVariable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("checkUnboxingResultFromTypeVariableGeneric.kt") + public void testCheckUnboxingResultFromTypeVariableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("classInInlineClassInit.kt") public void testClassInInlineClassInit() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInit.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("classInInlineClassInitGeneric.kt") + public void testClassInInlineClassInitGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("classLiteralOnInlineClass.kt") public void testClassLiteralOnInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("classLiteralOnInlineClassGeneric.kt") + public void testClassLiteralOnInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("computablePropertyInsideInlineClass.kt") public void testComputablePropertyInsideInlineClass() throws Exception { @@ -19741,36 +19939,72 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("conformToComparableAndCallInterfaceMethodGeneric.kt") + public void testConformToComparableAndCallInterfaceMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorCallableReference.kt") public void testConstructorCallableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorCallableReferenceGeneric.kt") + public void testConstructorCallableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorImplVisibility.kt") public void testConstructorImplVisibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorImplVisibilityGeneric.kt") + public void testConstructorImplVisibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("correctBoxingForBranchExpressions.kt") public void testCorrectBoxingForBranchExpressions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("correctBoxingForBranchExpressionsGeneric.kt") + public void testCorrectBoxingForBranchExpressionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("createInlineClassInArgumentPosition.kt") public void testCreateInlineClassInArgumentPosition() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPosition.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("createInlineClassInArgumentPositionGeneric.kt") + public void testCreateInlineClassInArgumentPositionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("crossinlineWithInlineClassInParameter.kt") public void testCrossinlineWithInlineClassInParameter() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameter.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("crossinlineWithInlineClassInParameterGeneric.kt") + public void testCrossinlineWithInlineClassInParameterGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("customIterator.kt") public void testCustomIterator() throws Exception { @@ -19783,126 +20017,252 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultFunctionsFromAnyForInlineClassGeneric.kt") + public void testDefaultFunctionsFromAnyForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") public void testDefaultInterfaceMethodsInInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultInterfaceMethodsInInlineClassGeneric.kt") + public void testDefaultInterfaceMethodsInInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("defaultWithInlineClassArgument.kt") public void testDefaultWithInlineClassArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultWithInlineClassArgumentGeneric.kt") + public void testDefaultWithInlineClassArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("elvisWithInlineClassAndNullConstant.kt") public void testElvisWithInlineClassAndNullConstant() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstant.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("elvisWithInlineClassAndNullConstantGeneric.kt") + public void testElvisWithInlineClassAndNullConstantGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("emptyConstructorForInlineClass.kt") public void testEmptyConstructorForInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("emptyConstructorForInlineClassGeneric.kt") + public void testEmptyConstructorForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksInlineClassNonNull.kt") public void testEqualityChecksInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksInlineClassNonNullGeneric.kt") + public void testEqualityChecksInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksMixedNullability.kt") public void testEqualityChecksMixedNullability() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullability.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksMixedNullabilityGeneric.kt") + public void testEqualityChecksMixedNullabilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNegatedInlineClassNonNull.kt") public void testEqualityChecksNegatedInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNegatedInlineClassNonNullGeneric.kt") + public void testEqualityChecksNegatedInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNegatedNonNull.kt") public void testEqualityChecksNegatedNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNegatedNonNullGeneric.kt") + public void testEqualityChecksNegatedNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNegatedNullable.kt") public void testEqualityChecksNegatedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNegatedNullableGeneric.kt") + public void testEqualityChecksNegatedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNegatedPrimitive.kt") public void testEqualityChecksNegatedPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNegatedPrimitiveGeneric.kt") + public void testEqualityChecksNegatedPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNonNull.kt") public void testEqualityChecksNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNonNullGeneric.kt") + public void testEqualityChecksNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksNullable.kt") public void testEqualityChecksNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksNullableGeneric.kt") + public void testEqualityChecksNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityChecksPrimitive.kt") public void testEqualityChecksPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityChecksPrimitiveGeneric.kt") + public void testEqualityChecksPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClass.kt") public void testEqualityForBoxesOfNullableValuesOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt") + public void testEqualityForBoxesOfNullableValuesOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsCallsLeftArgument.kt") public void testEqualsCallsLeftArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsCallsLeftArgumentGeneric.kt") + public void testEqualsCallsLeftArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsEvaluationOrderInlineClass.kt") public void testEqualsEvaluationOrderInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsEvaluationOrderInlineClassGeneric.kt") + public void testEqualsEvaluationOrderInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsEvaluationOrderNonNull.kt") public void testEqualsEvaluationOrderNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsEvaluationOrderNonNullGeneric.kt") + public void testEqualsEvaluationOrderNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsEvaluationOrderNullable.kt") public void testEqualsEvaluationOrderNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsEvaluationOrderNullableGeneric.kt") + public void testEqualsEvaluationOrderNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsEvaluationOrderPrimitive.kt") public void testEqualsEvaluationOrderPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsEvaluationOrderPrimitiveGeneric.kt") + public void testEqualsEvaluationOrderPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsOperatorWithGenericCall.kt") public void testEqualsOperatorWithGenericCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsOperatorWithGenericCallGeneric.kt") + public void testEqualsOperatorWithGenericCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("extLambdaInInlineClassFun.kt") public void testExtLambdaInInlineClassFun() throws Exception { @@ -19915,12 +20275,30 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("extLambdaInInlineClassFun2Generic.kt") + public void testExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("extLambdaInInlineClassFunGeneric.kt") + public void testExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("fieldNameClash.kt") public void testFieldNameClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("fieldNameClashGeneric.kt") + public void testFieldNameClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("funInterfaceDoubleSuffux.kt") public void testFunInterfaceDoubleSuffux() throws Exception { @@ -19939,6 +20317,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/functionExpression.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("functionExpressionGeneric.kt") + public void testFunctionExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericInlineClassSynthMembers.kt") public void testGenericInlineClassSynthMembers() throws Exception { @@ -19957,108 +20341,216 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/initBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("initBlockGeneric.kt") + public void testInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassAsLastExpressionInInLambda.kt") public void testInlineClassAsLastExpressionInInLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassAsLastExpressionInInLambdaGeneric.kt") + public void testInlineClassAsLastExpressionInInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt") public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointData() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt") + public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassFieldHandling.kt") public void testInlineClassFieldHandling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandling.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassFieldHandlingGeneric.kt") + public void testInlineClassFieldHandlingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassFunctionInvoke.kt") public void testInlineClassFunctionInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvoke.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassFunctionInvokeGeneric.kt") + public void testInlineClassFunctionInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassImplementsCollection.kt") public void testInlineClassImplementsCollection() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollection.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassImplementsCollectionGeneric.kt") + public void testInlineClassImplementsCollectionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollectionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassInInitBlock.kt") public void testInlineClassInInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassInInitBlockGeneric.kt") + public void testInlineClassInInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassInStringTemplate.kt") public void testInlineClassInStringTemplate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplate.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassInStringTemplateGeneric.kt") + public void testInlineClassInStringTemplateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassPropertyReferenceGetAndSet.kt") public void testInlineClassPropertyReferenceGetAndSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSet.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassPropertyReferenceGetAndSetGeneric.kt") + public void testInlineClassPropertyReferenceGetAndSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassValueCapturedInInlineLambda.kt") public void testInlineClassValueCapturedInInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassValueCapturedInInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassValueCapturedInNonInlineLambda.kt") public void testInlineClassValueCapturedInNonInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassValueCapturedInNonInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInNonInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassValuesInsideStrings.kt") public void testInlineClassValuesInsideStrings() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStrings.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassValuesInsideStringsGeneric.kt") + public void testInlineClassValuesInsideStringsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassWithCustomEquals.kt") public void testInlineClassWithCustomEquals() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassWithCustomEqualsGeneric.kt") + public void testInlineClassWithCustomEqualsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassWithDefaultFunctionsFromAny.kt") public void testInlineClassWithDefaultFunctionsFromAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassWithDefaultFunctionsFromAnyGeneric.kt") + public void testInlineClassWithDefaultFunctionsFromAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassesAsInlineFunParameters.kt") public void testInlineClassesAsInlineFunParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassesAsInlineFunParametersGeneric.kt") + public void testInlineClassesAsInlineFunParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassesCheckCast.kt") public void testInlineClassesCheckCast() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCast.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassesCheckCastGeneric.kt") + public void testInlineClassesCheckCastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassesInInlineLambdaParameters.kt") public void testInlineClassesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassesRefTypesInInlineLambdaParameters.kt") public void testInlineClassesRefTypesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassesRefTypesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesRefTypesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineExtLambdaInInlineClassFun.kt") public void testInlineExtLambdaInInlineClassFun() throws Exception { @@ -20071,18 +20563,42 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineExtLambdaInInlineClassFun2Generic.kt") + public void testInlineExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineExtLambdaInInlineClassFunGeneric.kt") + public void testInlineExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineFunctionInsideInlineClass.kt") public void testInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineFunctionInsideInlineClassGeneric.kt") + public void testInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineInCompanion.kt") public void testInlineInCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineInCompanionGeneric.kt") + public void testInlineInCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineToString.kt") public void testInlineToString() throws Exception { @@ -20095,30 +20611,60 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValues.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("iterateOverArrayOfInlineClassValuesGeneric.kt") + public void testIterateOverArrayOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("iterateOverListOfInlineClassValues.kt") public void testIterateOverListOfInlineClassValues() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("iterateOverListOfInlineClassValuesGeneric.kt") + public void testIterateOverListOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("javaClassIntrinsicOnInlineClasses.kt") public void testJavaClassIntrinsicOnInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("javaClassIntrinsicOnInlineClassesGeneric.kt") + public void testJavaClassIntrinsicOnInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("javaPrimitiveTypeIC.kt") public void testJavaPrimitiveTypeIC() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("javaPrimitiveTypeICGeneric.kt") + public void testJavaPrimitiveTypeICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmFieldInInlineClassCompanion.kt") public void testJvmFieldInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmFieldInInlineClassCompanionGeneric.kt") + public void testJvmFieldInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmInline.kt") public void testJvmInline() throws Exception { @@ -20131,30 +20677,60 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt") + public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmStaticFunInInlineClassCompanion.kt") public void testJvmStaticFunInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmStaticFunInInlineClassCompanionGeneric.kt") + public void testJvmStaticFunInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmStaticPropertyAccessorInInlineClassCompanion.kt") public void testJvmStaticPropertyAccessorInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt") + public void testJvmStaticPropertyAccessorInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmStaticVarInInlineClassCompanion.kt") public void testJvmStaticVarInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmStaticVarInInlineClassCompanionGeneric.kt") + public void testJvmStaticVarInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kclassInAnnotation.kt") public void testKclassInAnnotation() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kclassInAnnotation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kclassInAnnotationGeneric.kt") + public void testKclassInAnnotationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kclassInAnnotationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt25246.kt") public void testKt25246() throws Exception { @@ -20167,6 +20743,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/kt25750.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt25750Generic.kt") + public void testKt25750Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt25771.kt") public void testKt25771() throws Exception { @@ -20203,18 +20785,36 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/kt27096.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096Generic.kt") + public void testKt27096Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_enum.kt") public void testKt27096_enum() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enum.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_enumGeneric.kt") + public void testKt27096_enumGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_functional.kt") public void testKt27096_functional() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functional.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_functionalGeneric.kt") + public void testKt27096_functionalGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_innerClass.kt") public void testKt27096_innerClass() throws Exception { @@ -20227,24 +20827,48 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_nullablePrimitiveGeneric.kt") + public void testKt27096_nullablePrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_nullableReference.kt") public void testKt27096_nullableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_nullableReferenceGeneric.kt") + public void testKt27096_nullableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_primitive.kt") public void testKt27096_primitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_primitiveGeneric.kt") + public void testKt27096_primitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27096_reference.kt") public void testKt27096_reference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_reference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27096_referenceGeneric.kt") + public void testKt27096_referenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27113.kt") public void testKt27113() throws Exception { @@ -20257,30 +20881,60 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/kt27113a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27113aGeneric.kt") + public void testKt27113aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27132.kt") public void testKt27132() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27132.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27132Generic.kt") + public void testKt27132Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27140.kt") public void testKt27140() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27140.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27140Generic.kt") + public void testKt27140Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27705.kt") public void testKt27705() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27705.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27705Generic.kt") + public void testKt27705Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27706.kt") public void testKt27706() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27706.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27706Generic.kt") + public void testKt27706Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt28405.kt") public void testKt28405() throws Exception { @@ -20329,6 +20983,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/kt33119.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt33119Generic.kt") + public void testKt33119Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt34268.kt") public void testKt34268() throws Exception { @@ -20347,24 +21007,48 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt37998Generic.kt") + public void testKt37998Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt38680.kt") public void testKt38680() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt38680Generic.kt") + public void testKt38680Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt38680a.kt") public void testKt38680a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt38680aGeneric.kt") + public void testKt38680aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt38680b.kt") public void testKt38680b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt38680bGeneric.kt") + public void testKt38680bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt44141.kt") public void testKt44141() throws Exception { @@ -20377,6 +21061,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt44701_jvmOverloadsGeneric.kt") + public void testKt44701_jvmOverloadsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloadsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt44867.kt") public void testKt44867() throws Exception { @@ -20395,6 +21085,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/kt45084.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt45084Generic.kt") + public void testKt45084Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { @@ -20407,6 +21103,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/kt46554.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt46554Generic.kt") + public void testKt46554Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt47609.kt") public void testKt47609() throws Exception { @@ -20419,12 +21121,24 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/kt47762.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt47762Generic.kt") + public void testKt47762Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt48993.kt") public void testKt48993() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt48993.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt48993Generic.kt") + public void testKt48993Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt48993Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt51157.kt") public void testKt51157() throws Exception { @@ -20437,12 +21151,24 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledDefaultParameterFunctionGeneric.kt") + public void testMangledDefaultParameterFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mangledSuperCalls.kt") public void testMangledSuperCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCalls.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledSuperCallsGeneric.kt") + public void testMangledSuperCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mapInlineClassesWithSuppressWildcardsMode.kt") public void testMapInlineClassesWithSuppressWildcardsMode() throws Exception { @@ -20455,6 +21181,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mappingOfBoxedFlexibleInlineClassTypeGeneric.kt") + public void testMappingOfBoxedFlexibleInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("multifileClass.kt") public void testMultifileClass() throws Exception { @@ -20467,36 +21199,72 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("nestedInlineClassGeneric.kt") + public void testNestedInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("noAssertionsOnInlineClassBasedOnNullableType.kt") public void testNoAssertionsOnInlineClassBasedOnNullableType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt") + public void testNoAssertionsOnInlineClassBasedOnNullableTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("noReturnTypeMangling.kt") public void testNoReturnTypeMangling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("noReturnTypeManglingGeneric.kt") + public void testNoReturnTypeManglingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("noReturnTypeManglingJvmName.kt") public void testNoReturnTypeManglingJvmName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("noReturnTypeManglingJvmNameGeneric.kt") + public void testNoReturnTypeManglingJvmNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableEqeqNonNull.kt") public void testNullableEqeqNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("nullableEqeqNonNullGeneric.kt") + public void testNullableEqeqNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableWrapperEquality.kt") public void testNullableWrapperEquality() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEquality.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("nullableWrapperEqualityGeneric.kt") + public void testNullableWrapperEqualityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideReturnNothing.kt") public void testOverrideReturnNothing() throws Exception { @@ -20509,48 +21277,96 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overridingFunCallingPrivateFunGeneric.kt") + public void testOverridingFunCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("passInlineClassAsVararg.kt") public void testPassInlineClassAsVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("passInlineClassAsVarargGeneric.kt") + public void testPassInlineClassAsVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("passInlineClassWithSpreadOperatorToVarargs.kt") public void testPassInlineClassWithSpreadOperatorToVarargs() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargs.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("passInlineClassWithSpreadOperatorToVarargsGeneric.kt") + public void testPassInlineClassWithSpreadOperatorToVarargsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("privateConstructorFunInterfaceMultiModule.kt") public void testPrivateConstructorFunInterfaceMultiModule() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModule.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("privateConstructorFunInterfaceMultiModuleGeneric.kt") + public void testPrivateConstructorFunInterfaceMultiModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("propertyLoweringOrder.kt") public void testPropertyLoweringOrder() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrder.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("propertyLoweringOrderGeneric.kt") + public void testPropertyLoweringOrderGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("referToPropertyInCompanionObjectOfInlineClass.kt") public void testReferToPropertyInCompanionObjectOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("referToPropertyInCompanionObjectOfInlineClassGeneric.kt") + public void testReferToPropertyInCompanionObjectOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("referToUnderlyingPropertyInsideInlineClass.kt") public void testReferToUnderlyingPropertyInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("referToUnderlyingPropertyInsideInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("referToUnderlyingPropertyOfInlineClass.kt") public void testReferToUnderlyingPropertyOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("referToUnderlyingPropertyOfInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("removeInInlineCollectionOfInlineClassAsInt.kt") public void testRemoveInInlineCollectionOfInlineClassAsInt() throws Exception { @@ -20563,6 +21379,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/result.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("resultGeneric.kt") + public void testResultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/resultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("resultInlining.kt") public void testResultInlining() throws Exception { @@ -20581,72 +21403,144 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBound.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("safeAsOfTypeParameterWithInlineClassBoundGeneric.kt") + public void testSafeAsOfTypeParameterWithInlineClassBoundGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("samWrapperDifferentModule.kt") public void testSamWrapperDifferentModule() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModule.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("samWrapperDifferentModuleGeneric.kt") + public void testSamWrapperDifferentModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("secondaryConstructorWithVararg.kt") public void testSecondaryConstructorWithVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("secondaryConstructorWithVarargGeneric.kt") + public void testSecondaryConstructorWithVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("secondaryConstructorsInsideInlineClass.kt") public void testSecondaryConstructorsInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt") public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("simpleSecondaryConstructor.kt") public void testSimpleSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("simpleSecondaryConstructorGeneric.kt") + public void testSimpleSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("smartCastOnThisOfInlineClassType.kt") public void testSmartCastOnThisOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("smartCastOnThisOfInlineClassTypeGeneric.kt") + public void testSmartCastOnThisOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("stringPlus.kt") public void testStringPlus() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/stringPlus.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("stringPlusGeneric.kt") + public void testStringPlusGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("toStringCallingPrivateFun.kt") public void testToStringCallingPrivateFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("toStringCallingPrivateFunGeneric.kt") + public void testToStringCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("toStringOfUnboxedNullable.kt") public void testToStringOfUnboxedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("toStringOfUnboxedNullableGeneric.kt") + public void testToStringOfUnboxedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("typeChecksForInlineClasses.kt") public void testTypeChecksForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("typeChecksForInlineClassesGeneric.kt") + public void testTypeChecksForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("UIntArraySortExample.kt") public void testUIntArraySortExample() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("UIntArraySortExampleGeneric.kt") + public void testUIntArraySortExampleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("UIntSafeAsInt.kt") public void testUIntSafeAsInt() throws Exception { @@ -20659,24 +21553,48 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvoke.kt") public void testUnboxParameterOfSuspendLambdaBeforeInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvoke.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt") + public void testUnboxParameterOfSuspendLambdaBeforeInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxReceiverOnCallingMethodFromInlineClass.kt") public void testUnboxReceiverOnCallingMethodFromInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxReceiverOnCallingMethodFromInlineClassGeneric.kt") + public void testUnboxReceiverOnCallingMethodFromInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxResultParameterWhenCapturingToCrossinlineLambda.kt") public void testUnboxResultParameterWhenCapturingToCrossinlineLambda() throws Exception { @@ -20689,42 +21607,84 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxValueFromPlatformTypeGeneric.kt") + public void testUnboxValueFromPlatformTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt") public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("unboxValueOfAnyBeforeMethodInvocationGeneric.kt") + public void testUnboxValueOfAnyBeforeMethodInvocationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("useInlineClassesInsideElvisOperator.kt") public void testUseInlineClassesInsideElvisOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("useInlineClassesInsideElvisOperatorGeneric.kt") + public void testUseInlineClassesInsideElvisOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("useInlineFunctionInsideInlineClass.kt") public void testUseInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("useInlineFunctionInsideInlineClassGeneric.kt") + public void testUseInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("useOfInlineClassWithGenericMethodFromJava.kt") public void testUseOfInlineClassWithGenericMethodFromJava() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("useOfInlineClassWithGenericMethodFromJavaGeneric.kt") + public void testUseOfInlineClassWithGenericMethodFromJavaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJavaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("useThisInsideInlineClass.kt") public void testUseThisInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("useThisInsideInlineClassGeneric.kt") + public void testUseThisInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("whenWithSubject.kt") public void testWhenWithSubject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubject.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("whenWithSubjectGeneric.kt") + public void testWhenWithSubjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda") @TestDataPath("$PROJECT_ROOT") @@ -22116,11 +23076,29 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt"); } + @Test + @TestMetadata("defaultArgumentGeneric.kt") + public void testDefaultArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt"); + } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultGeneric.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simple.kt"); } + + @Test + @TestMetadata("simpleGeneric.kt") + public void testSimpleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simpleGeneric.kt"); + } } @Nested @@ -22138,6 +23116,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("argumentICGeneric.kt") + public void testArgumentICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("argumentResult.kt") public void testArgumentResult() throws Exception { @@ -22162,12 +23146,24 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappers.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledSamWrappersGeneric.kt") + public void testMangledSamWrappersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("returnIC.kt") public void testReturnIC() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("returnICGeneric.kt") + public void testReturnICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("returnResult.kt") public void testReturnResult() throws Exception { @@ -22190,60 +23186,120 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anonymousObjectInFunctionWithMangledNameGeneric.kt") + public void testAnonymousObjectInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("extensionFunctionsDoNotClash.kt") public void testExtensionFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("extensionFunctionsDoNotClashGeneric.kt") + public void testExtensionFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("functionsWithDifferentNullabilityDoNotClash.kt") public void testFunctionsWithDifferentNullabilityDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("functionsWithDifferentNullabilityDoNotClashGeneric.kt") + public void testFunctionsWithDifferentNullabilityDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericFunctionsDoNotClash.kt") public void testGenericFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericFunctionsDoNotClashGeneric.kt") + public void testGenericFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericSignatureOfFunctionWithMangledName.kt") public void testGenericSignatureOfFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericSignatureOfFunctionWithMangledNameGeneric.kt") + public void testGenericSignatureOfFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("localClassInFunctionWithMangledName.kt") public void testLocalClassInFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("localClassInFunctionWithMangledNameGeneric.kt") + public void testLocalClassInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mangledFunctionsCanBeOverridden.kt") public void testMangledFunctionsCanBeOverridden() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverridden.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledFunctionsCanBeOverriddenGeneric.kt") + public void testMangledFunctionsCanBeOverriddenGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mangledFunctionsDoNotClash.kt") public void testMangledFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledFunctionsDoNotClashGeneric.kt") + public void testMangledFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mangledFunctionsPresentInStackTrace.kt") public void testMangledFunctionsPresentInStackTrace() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTrace.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mangledFunctionsPresentInStackTraceGeneric.kt") + public void testMangledFunctionsPresentInStackTraceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("mixedSignatureFunctionsDoNotClash.kt") public void testMixedSignatureFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("mixedSignatureFunctionsDoNotClashGeneric.kt") + public void testMixedSignatureFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overridingMethodInGenericClass.kt") public void testOverridingMethodInGenericClass() throws Exception { @@ -22256,41 +23312,89 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overridingMethodInGenericClass2Generic.kt") + public void testOverridingMethodInGenericClass2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overridingMethodInGenericClassGeneric.kt") + public void testOverridingMethodInGenericClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("propertySetterWithInlineClassTypeArgument.kt") public void testPropertySetterWithInlineClassTypeArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("propertySetterWithInlineClassTypeArgumentGeneric.kt") + public void testPropertySetterWithInlineClassTypeArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("reflectionForFunctionWithMangledName.kt") public void testReflectionForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("reflectionForFunctionWithMangledNameGeneric.kt") + public void testReflectionForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("reflectionForLocalClassInFunctionWithMangledName.kt") public void testReflectionForLocalClassInFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("reflectionForLocalClassInFunctionWithMangledNameGeneric.kt") + public void testReflectionForLocalClassInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("reflectionForPropertyOfInlineClassType.kt") public void testReflectionForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("reflectionForPropertyOfInlineClassTypeGeneric.kt") + public void testReflectionForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("syntheticAccessorForFunctionWithMangledName.kt") public void testSyntheticAccessorForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("syntheticAccessorForFunctionWithMangledNameGeneric.kt") + public void testSyntheticAccessorForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("syntheticAccessorsForPropertyOfInlineClassType.kt") public void testSyntheticAccessorsForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt") + public void testSyntheticAccessorsForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22330,48 +23434,96 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorReferencedFromOtherFile1Generic.kt") + public void testConstructorReferencedFromOtherFile1Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorReferencedFromOtherFile2.kt") public void testConstructorReferencedFromOtherFile2() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorReferencedFromOtherFile2Generic.kt") + public void testConstructorReferencedFromOtherFile2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorWithDefaultParameters.kt") public void testConstructorWithDefaultParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorWithDefaultParametersGeneric.kt") + public void testConstructorWithDefaultParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatingSuperConstructorCall.kt") public void testDelegatingSuperConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatingSuperConstructorCallGeneric.kt") + public void testDelegatingSuperConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructor.kt") public void testDelegatingSuperConstructorCallInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt") + public void testDelegatingSuperConstructorCallInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatingThisConstructorCall.kt") public void testDelegatingThisConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatingThisConstructorCallGeneric.kt") + public void testDelegatingThisConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("enumClassConstructor.kt") public void testEnumClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("enumClassConstructorGeneric.kt") + public void testEnumClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("innerClassConstructor.kt") public void testInnerClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("innerClassConstructorGeneric.kt") + public void testInnerClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt28855.kt") public void testKt28855() throws Exception { @@ -22384,23 +23536,47 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("primaryConstructorGeneric.kt") + public void testPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("privateConstructor.kt") public void testPrivateConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("privateConstructorGeneric.kt") + public void testPrivateConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("sealedClassConstructor.kt") public void testSealedClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("sealedClassConstructorGeneric.kt") + public void testSealedClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("secondaryConstructor.kt") public void testSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("secondaryConstructorGeneric.kt") + public void testSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22418,17 +23594,35 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineCollectionOfInlineClassGeneric.kt") + public void testInlineCollectionOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineListOfInlineClass.kt") public void testInlineListOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineListOfInlineClassGeneric.kt") + public void testInlineListOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineMapOfInlineClass.kt") public void testInlineMapOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("inlineMapOfInlineClassGeneric.kt") + public void testInlineMapOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22446,18 +23640,36 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("interfaceImplementationByDelegationGeneric.kt") + public void testInterfaceImplementationByDelegationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt38337.kt") public void testKt38337() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt38337Generic.kt") + public void testKt38337Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberExtValDelegationWithInlineClassParameterTypes.kt") public void testMemberExtValDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberExtValDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberExtVarDelegationWithInlineClassParameterTypes.kt") public void testMemberExtVarDelegationWithInlineClassParameterTypes() throws Exception { @@ -22470,23 +23682,47 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("memberFunDelegatedToInlineClassIntGeneric.kt") + public void testMemberFunDelegatedToInlineClassIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberFunDelegatedToInlineClassLong.kt") public void testMemberFunDelegatedToInlineClassLong() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLong.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("memberFunDelegatedToInlineClassLongGeneric.kt") + public void testMemberFunDelegatedToInlineClassLongGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt") public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("memberFunDelegationWithInlineClassParameterTypes.kt") public void testMemberFunDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("memberFunDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22510,59 +23746,125 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride2Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("complexGenericMethodWithInlineClassOverride3.kt") public void testComplexGenericMethodWithInlineClassOverride3() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride3Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride3Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverrideGeneric.kt") + public void testComplexGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("defaultInterfaceExtensionFunCall.kt") public void testDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultInterfaceExtensionFunCallGeneric.kt") + public void testDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("defaultInterfaceMethodCall.kt") public void testDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("defaultInterfaceMethodCallGeneric.kt") + public void testDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericDefaultInterfaceExtensionFunCall.kt") public void testGenericDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericDefaultInterfaceExtensionFunCallGeneric.kt") + public void testGenericDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericDefaultInterfaceMethodCall.kt") public void testGenericDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericDefaultInterfaceMethodCallGeneric.kt") + public void testGenericDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericInterfaceMethodCall.kt") public void testGenericInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericInterfaceMethodCallGeneric.kt") + public void testGenericInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericMethodWithInlineClassOverride.kt") public void testGenericMethodWithInlineClassOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericMethodWithInlineClassOverrideGeneric.kt") + public void testGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("interfaceSuperCall.kt") public void testInterfaceSuperCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("interfaceSuperCallGeneric.kt") + public void testInterfaceSuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overriddenDefaultInterfaceMethodCall.kt") public void testOverriddenDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("overriddenDefaultInterfaceMethodCallGeneric.kt") + public void testOverriddenDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22614,77 +23916,161 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAll.kt"); } + @Test + @TestMetadata("inlineClassInheritingDefaultMethodAllGeneric.kt") + public void testInlineClassInheritingDefaultMethodAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAllGeneric.kt"); + } + + @Test + @TestMetadata("inlineClassInheritingDefaultMethodGeneric.kt") + public void testInlineClassInheritingDefaultMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodGeneric.kt"); + } + @Test @TestMetadata("javaDefaultMethod.kt") public void testJavaDefaultMethod() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("javaDefaultMethodGeneric.kt") + public void testJavaDefaultMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("javaDefaultMethodOverriddenByKotlin.kt") public void testJavaDefaultMethodOverriddenByKotlin() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlin.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("javaDefaultMethodOverriddenByKotlinGeneric.kt") + public void testJavaDefaultMethodOverriddenByKotlinGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlinGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultAll.kt") public void testJvmDefaultAll() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAll.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultAllGeneric.kt") + public void testJvmDefaultAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultAllPrimaryProperty.kt") public void testJvmDefaultAllPrimaryProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultAllPrimaryPropertyGeneric.kt") + public void testJvmDefaultAllPrimaryPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultAllProperty.kt") public void testJvmDefaultAllProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultAllPropertyGeneric.kt") + public void testJvmDefaultAllPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultEnable.kt") public void testJvmDefaultEnable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultEnableGeneric.kt") + public void testJvmDefaultEnableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultEnablePrimaryProperty.kt") public void testJvmDefaultEnablePrimaryProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePrimaryProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultEnablePrimaryPropertyGeneric.kt") + public void testJvmDefaultEnablePrimaryPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePrimaryPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultEnableProperty.kt") public void testJvmDefaultEnableProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnableProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultEnablePropertyGeneric.kt") + public void testJvmDefaultEnablePropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultGeneric.kt") public void testJvmDefaultGeneric() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultGenericGeneric.kt") + public void testJvmDefaultGenericGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGenericGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultSafeCall.kt") public void testJvmDefaultSafeCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultSafeCallGeneric.kt") + public void testJvmDefaultSafeCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultSmartCast.kt") public void testJvmDefaultSmartCast() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCast.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("jvmDefaultSmartCastGeneric.kt") + public void testJvmDefaultSmartCastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCastGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("jvmDefaultSuspend.kt") public void testJvmDefaultSuspend() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspend.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("jvmDefaultSuspendGeneric.kt") + public void testJvmDefaultSuspendGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspendGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22702,71 +24088,143 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("captureLocalVarDelegatedToInlineClassGeneric.kt") + public void testCaptureLocalVarDelegatedToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateClassVarToInlineClass.kt") public void testDelegateClassVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateClassVarToInlineClassGeneric.kt") + public void testDelegateClassVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateClassVarToInlineClassWithProvideDelegate.kt") public void testDelegateClassVarToInlineClassWithProvideDelegate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegate.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateClassVarToInlineClassWithProvideDelegateGeneric.kt") + public void testDelegateClassVarToInlineClassWithProvideDelegateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateCompanionVarToInlineClass.kt") public void testDelegateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateCompanionVarToInlineClassGeneric.kt") + public void testDelegateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateJvmStaticCompanionVarToInlineClass.kt") public void testDelegateJvmStaticCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateJvmStaticCompanionVarToInlineClassGeneric.kt") + public void testDelegateJvmStaticCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateLocalVarToInlineClass.kt") public void testDelegateLocalVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateLocalVarToInlineClassGeneric.kt") + public void testDelegateLocalVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateObjectVarToInlineClass.kt") public void testDelegateObjectVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateObjectVarToInlineClassGeneric.kt") + public void testDelegateObjectVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatePrivateCompanionVarToInlineClass.kt") public void testDelegatePrivateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatePrivateCompanionVarToInlineClassGeneric.kt") + public void testDelegatePrivateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegateTopLevelVarToInlineClass.kt") public void testDelegateTopLevelVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegateTopLevelVarToInlineClassGeneric.kt") + public void testDelegateTopLevelVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("delegatedPropertyOfInlineClassType.kt") public void testDelegatedPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("delegatedPropertyOfInlineClassTypeGeneric.kt") + public void testDelegatedPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27070.kt") public void testKt27070() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27070Generic.kt") + public void testKt27070Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt42933.kt") public void testKt42933() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("kt42933Generic.kt") + public void testKt42933Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22897,12 +24355,24 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -22915,6 +24385,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -22927,6 +24409,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -22939,11 +24427,23 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -22961,12 +24461,24 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -22979,6 +24491,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -22991,6 +24515,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -23003,11 +24533,23 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -23025,12 +24567,24 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -23043,6 +24597,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -23055,6 +24621,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -23067,11 +24639,23 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } } } diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index d9657c387f4..afe7a2bcaa9 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -15898,11 +15898,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("anySuperCallGeneric.kt") + public void ignoreAnySuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxNullableForFakeOverride.kt") public void ignoreBoxNullableForFakeOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxNullableForFakeOverrideGeneric.kt") + public void ignoreBoxNullableForFakeOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("customIterator.kt") public void ignoreCustomIterator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/customIterator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -15913,11 +15923,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassWithCustomEqualsGeneric.kt") + public void ignoreInlineClassWithCustomEqualsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kclassInAnnotation.kt") public void ignoreKclassInAnnotation() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kclassInAnnotation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kclassInAnnotationGeneric.kt") + public void ignoreKclassInAnnotationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kclassInAnnotationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt31994.kt") public void ignoreKt31994() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt"); @@ -15933,6 +15953,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt44701_jvmOverloadsGeneric.kt") + public void ignoreKt44701_jvmOverloadsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloadsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt44867.kt") public void ignoreKt44867() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt"); @@ -15953,16 +15978,31 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBound.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("safeAsOfTypeParameterWithInlineClassBoundGeneric.kt") + public void ignoreSafeAsOfTypeParameterWithInlineClassBoundGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("simpleSecondaryConstructor.kt") public void ignoreSimpleSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("simpleSecondaryConstructorGeneric.kt") + public void ignoreSimpleSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("toStringOfUnboxedNullable.kt") public void ignoreToStringOfUnboxedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("toStringOfUnboxedNullableGeneric.kt") + public void ignoreToStringOfUnboxedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -15980,61 +16020,121 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("annotatedMemberExtensionPropertyGeneric.kt") + public void testAnnotatedMemberExtensionPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boundCallableReferencePassedToInlineFunction.kt") public void testBoundCallableReferencePassedToInlineFunction() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boundCallableReferencePassedToInlineFunctionGeneric.kt") + public void testBoundCallableReferencePassedToInlineFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructor.kt") public void testBoxImplDoesNotExecuteInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt") + public void testBoxImplDoesNotExecuteInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxImplDoesNotExecuteInitBlock.kt") public void testBoxImplDoesNotExecuteInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxImplDoesNotExecuteInitBlockGeneric.kt") + public void testBoxImplDoesNotExecuteInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxResultInlineClassOfConstructorCall.kt") public void testBoxResultInlineClassOfConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxResultInlineClassOfConstructorCallGeneric.kt") + public void testBoxResultInlineClassOfConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSet.kt") public void testBoxUnboxInlineClassesWithOperatorsGetSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSet.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt") + public void testBoxUnboxInlineClassesWithOperatorsGetSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxUnboxOfInlineClassForCapturedVars.kt") public void testBoxUnboxOfInlineClassForCapturedVars() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVars.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxUnboxOfInlineClassForCapturedVarsGeneric.kt") + public void testBoxUnboxOfInlineClassForCapturedVarsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("bridgeForFunctionReturningInlineClass.kt") public void testBridgeForFunctionReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("bridgeForFunctionReturningInlineClassGeneric.kt") + public void testBridgeForFunctionReturningInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("bridgeGenerationWithInlineClassOverAny.kt") public void testBridgeGenerationWithInlineClassOverAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("bridgeGenerationWithInlineClassOverAnyGeneric.kt") + public void testBridgeGenerationWithInlineClassOverAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("bridgesWhenInlineClassImplementsGenericInterface.kt") public void testBridgesWhenInlineClassImplementsGenericInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt") + public void testBridgesWhenInlineClassImplementsGenericInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("callComputablePropertyInsideInlineClass.kt") public void testCallComputablePropertyInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callComputablePropertyInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16045,96 +16145,191 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflection.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("callSpecializedEqualsViaReflectionGeneric.kt") + public void testCallSpecializedEqualsViaReflectionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflectionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("callSpeciallyOverriddenPropertyOfInlineClass.kt") public void testCallSpeciallyOverriddenPropertyOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt") + public void testCallSpeciallyOverriddenPropertyOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("callableReferencesWithInlineClasses.kt") public void testCallableReferencesWithInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("callableReferencesWithInlineClassesGeneric.kt") + public void testCallableReferencesWithInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("castInsideWhenExpression.kt") public void testCastInsideWhenExpression() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpression.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("castInsideWhenExpressionGeneric.kt") + public void testCastInsideWhenExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctions.kt") public void testCheckBoxUnboxOfArgumentsOnInlinedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt") + public void testCheckBoxUnboxOfArgumentsOnInlinedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("checkBoxingAfterAssertionOperator.kt") public void testCheckBoxingAfterAssertionOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("checkBoxingAfterAssertionOperatorGeneric.kt") + public void testCheckBoxingAfterAssertionOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("checkBoxingForComplexClassHierarchy.kt") public void testCheckBoxingForComplexClassHierarchy() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchy.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("checkBoxingForComplexClassHierarchyGeneric.kt") + public void testCheckBoxingForComplexClassHierarchyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("checkBoxingForNonLocalAndLabeledReturns.kt") public void testCheckBoxingForNonLocalAndLabeledReturns() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturns.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("checkBoxingForNonLocalAndLabeledReturnsGeneric.kt") + public void testCheckBoxingForNonLocalAndLabeledReturnsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("checkBoxingFromReturnTypeForInlineClasses.kt") public void testCheckBoxingFromReturnTypeForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("checkBoxingFromReturnTypeForInlineClassesGeneric.kt") + public void testCheckBoxingFromReturnTypeForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("checkBoxingOnFunctionCalls.kt") public void testCheckBoxingOnFunctionCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCalls.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("checkBoxingOnFunctionCallsGeneric.kt") + public void testCheckBoxingOnFunctionCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("checkBoxingOnLocalVariableAssignments.kt") public void testCheckBoxingOnLocalVariableAssignments() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignments.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("checkBoxingOnLocalVariableAssignmentsGeneric.kt") + public void testCheckBoxingOnLocalVariableAssignmentsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt") public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt") + public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("checkCallingMembersInsideInlineClass.kt") public void testCheckCallingMembersInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("checkCallingMembersInsideInlineClassGeneric.kt") + public void testCheckCallingMembersInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("checkCastToInlineClass.kt") public void testCheckCastToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("checkCastToInlineClassGeneric.kt") + public void testCheckCastToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("checkForInstanceOfInlineClass.kt") public void testCheckForInstanceOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("checkForInstanceOfInlineClassGeneric.kt") + public void testCheckForInstanceOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("checkLambdaWithInlineClassesInFunctionalType.kt") public void testCheckLambdaWithInlineClassesInFunctionalType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt") + public void testCheckLambdaWithInlineClassesInFunctionalTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("checkUnboxingResultFromTypeVariable.kt") public void testCheckUnboxingResultFromTypeVariable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("checkUnboxingResultFromTypeVariableGeneric.kt") + public void testCheckUnboxingResultFromTypeVariableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("classInInlineClassInit.kt") public void testClassInInlineClassInit() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInit.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("classInInlineClassInitGeneric.kt") + public void testClassInInlineClassInitGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("classLiteralOnInlineClass.kt") public void testClassLiteralOnInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("classLiteralOnInlineClassGeneric.kt") + public void testClassLiteralOnInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("computablePropertyInsideInlineClass.kt") public void testComputablePropertyInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/computablePropertyInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16145,136 +16340,271 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("conformToComparableAndCallInterfaceMethodGeneric.kt") + public void testConformToComparableAndCallInterfaceMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("constructorCallableReference.kt") public void testConstructorCallableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("constructorCallableReferenceGeneric.kt") + public void testConstructorCallableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("constructorImplVisibility.kt") public void testConstructorImplVisibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("constructorImplVisibilityGeneric.kt") + public void testConstructorImplVisibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("correctBoxingForBranchExpressions.kt") public void testCorrectBoxingForBranchExpressions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("correctBoxingForBranchExpressionsGeneric.kt") + public void testCorrectBoxingForBranchExpressionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("createInlineClassInArgumentPosition.kt") public void testCreateInlineClassInArgumentPosition() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPosition.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("createInlineClassInArgumentPositionGeneric.kt") + public void testCreateInlineClassInArgumentPositionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("crossinlineWithInlineClassInParameter.kt") public void testCrossinlineWithInlineClassInParameter() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameter.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("crossinlineWithInlineClassInParameterGeneric.kt") + public void testCrossinlineWithInlineClassInParameterGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("defaultFunctionsFromAnyForInlineClass.kt") public void testDefaultFunctionsFromAnyForInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("defaultFunctionsFromAnyForInlineClassGeneric.kt") + public void testDefaultFunctionsFromAnyForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") public void testDefaultInterfaceMethodsInInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("defaultInterfaceMethodsInInlineClassGeneric.kt") + public void testDefaultInterfaceMethodsInInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("defaultWithInlineClassArgument.kt") public void testDefaultWithInlineClassArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("defaultWithInlineClassArgumentGeneric.kt") + public void testDefaultWithInlineClassArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("elvisWithInlineClassAndNullConstant.kt") public void testElvisWithInlineClassAndNullConstant() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstant.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("elvisWithInlineClassAndNullConstantGeneric.kt") + public void testElvisWithInlineClassAndNullConstantGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("emptyConstructorForInlineClass.kt") public void testEmptyConstructorForInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("emptyConstructorForInlineClassGeneric.kt") + public void testEmptyConstructorForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalityChecksInlineClassNonNull.kt") public void testEqualityChecksInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalityChecksInlineClassNonNullGeneric.kt") + public void testEqualityChecksInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalityChecksMixedNullability.kt") public void testEqualityChecksMixedNullability() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullability.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalityChecksMixedNullabilityGeneric.kt") + public void testEqualityChecksMixedNullabilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalityChecksNegatedInlineClassNonNull.kt") public void testEqualityChecksNegatedInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalityChecksNegatedInlineClassNonNullGeneric.kt") + public void testEqualityChecksNegatedInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalityChecksNegatedNonNull.kt") public void testEqualityChecksNegatedNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalityChecksNegatedNonNullGeneric.kt") + public void testEqualityChecksNegatedNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalityChecksNegatedNullable.kt") public void testEqualityChecksNegatedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalityChecksNegatedNullableGeneric.kt") + public void testEqualityChecksNegatedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalityChecksNegatedPrimitive.kt") public void testEqualityChecksNegatedPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalityChecksNegatedPrimitiveGeneric.kt") + public void testEqualityChecksNegatedPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalityChecksNonNull.kt") public void testEqualityChecksNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalityChecksNonNullGeneric.kt") + public void testEqualityChecksNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalityChecksNullable.kt") public void testEqualityChecksNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalityChecksNullableGeneric.kt") + public void testEqualityChecksNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalityChecksPrimitive.kt") public void testEqualityChecksPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalityChecksPrimitiveGeneric.kt") + public void testEqualityChecksPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClass.kt") public void testEqualityForBoxesOfNullableValuesOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt") + public void testEqualityForBoxesOfNullableValuesOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalsCallsLeftArgument.kt") public void testEqualsCallsLeftArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalsCallsLeftArgumentGeneric.kt") + public void testEqualsCallsLeftArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalsEvaluationOrderInlineClass.kt") public void testEqualsEvaluationOrderInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalsEvaluationOrderInlineClassGeneric.kt") + public void testEqualsEvaluationOrderInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalsEvaluationOrderNonNull.kt") public void testEqualsEvaluationOrderNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalsEvaluationOrderNonNullGeneric.kt") + public void testEqualsEvaluationOrderNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalsEvaluationOrderNullable.kt") public void testEqualsEvaluationOrderNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalsEvaluationOrderNullableGeneric.kt") + public void testEqualsEvaluationOrderNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalsEvaluationOrderPrimitive.kt") public void testEqualsEvaluationOrderPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalsEvaluationOrderPrimitiveGeneric.kt") + public void testEqualsEvaluationOrderPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalsOperatorWithGenericCall.kt") public void testEqualsOperatorWithGenericCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalsOperatorWithGenericCallGeneric.kt") + public void testEqualsOperatorWithGenericCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("extLambdaInInlineClassFun.kt") public void testExtLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16285,11 +16615,26 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("extLambdaInInlineClassFun2Generic.kt") + public void testExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @TestMetadata("extLambdaInInlineClassFunGeneric.kt") + public void testExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("fieldNameClash.kt") public void testFieldNameClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("fieldNameClashGeneric.kt") + public void testFieldNameClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("funInterfaceDoubleSuffux.kt") public void testFunInterfaceDoubleSuffux() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/funInterfaceDoubleSuffux.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16305,6 +16650,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/functionExpression.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("functionExpressionGeneric.kt") + public void testFunctionExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("genericInlineClassSynthMembers.kt") public void testGenericInlineClassSynthMembers() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/genericInlineClassSynthMembers.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16320,86 +16670,171 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/initBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("initBlockGeneric.kt") + public void testInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassAsLastExpressionInInLambda.kt") public void testInlineClassAsLastExpressionInInLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassAsLastExpressionInInLambdaGeneric.kt") + public void testInlineClassAsLastExpressionInInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt") public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointData() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt") + public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassFieldHandling.kt") public void testInlineClassFieldHandling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandling.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassFieldHandlingGeneric.kt") + public void testInlineClassFieldHandlingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassFunctionInvoke.kt") public void testInlineClassFunctionInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvoke.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassFunctionInvokeGeneric.kt") + public void testInlineClassFunctionInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassImplementsCollection.kt") public void testInlineClassImplementsCollection() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollection.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassImplementsCollectionGeneric.kt") + public void testInlineClassImplementsCollectionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollectionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassInInitBlock.kt") public void testInlineClassInInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassInInitBlockGeneric.kt") + public void testInlineClassInInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassInStringTemplate.kt") public void testInlineClassInStringTemplate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplate.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassInStringTemplateGeneric.kt") + public void testInlineClassInStringTemplateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassPropertyReferenceGetAndSet.kt") public void testInlineClassPropertyReferenceGetAndSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSet.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassPropertyReferenceGetAndSetGeneric.kt") + public void testInlineClassPropertyReferenceGetAndSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassValueCapturedInInlineLambda.kt") public void testInlineClassValueCapturedInInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassValueCapturedInInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassValueCapturedInNonInlineLambda.kt") public void testInlineClassValueCapturedInNonInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassValueCapturedInNonInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInNonInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassValuesInsideStrings.kt") public void testInlineClassValuesInsideStrings() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStrings.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassValuesInsideStringsGeneric.kt") + public void testInlineClassValuesInsideStringsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassWithDefaultFunctionsFromAny.kt") public void testInlineClassWithDefaultFunctionsFromAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassWithDefaultFunctionsFromAnyGeneric.kt") + public void testInlineClassWithDefaultFunctionsFromAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassesAsInlineFunParameters.kt") public void testInlineClassesAsInlineFunParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassesAsInlineFunParametersGeneric.kt") + public void testInlineClassesAsInlineFunParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassesCheckCast.kt") public void testInlineClassesCheckCast() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCast.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassesCheckCastGeneric.kt") + public void testInlineClassesCheckCastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassesInInlineLambdaParameters.kt") public void testInlineClassesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassesRefTypesInInlineLambdaParameters.kt") public void testInlineClassesRefTypesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassesRefTypesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesRefTypesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineExtLambdaInInlineClassFun.kt") public void testInlineExtLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16410,36 +16845,76 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineExtLambdaInInlineClassFun2Generic.kt") + public void testInlineExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @TestMetadata("inlineExtLambdaInInlineClassFunGeneric.kt") + public void testInlineExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineFunctionInsideInlineClass.kt") public void testInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineFunctionInsideInlineClassGeneric.kt") + public void testInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("iterateOverArrayOfInlineClassValues.kt") public void testIterateOverArrayOfInlineClassValues() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValues.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("iterateOverArrayOfInlineClassValuesGeneric.kt") + public void testIterateOverArrayOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("iterateOverListOfInlineClassValues.kt") public void testIterateOverListOfInlineClassValues() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("iterateOverListOfInlineClassValuesGeneric.kt") + public void testIterateOverListOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("javaClassIntrinsicOnInlineClasses.kt") public void testJavaClassIntrinsicOnInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("javaClassIntrinsicOnInlineClassesGeneric.kt") + public void testJavaClassIntrinsicOnInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("javaPrimitiveTypeIC.kt") public void testJavaPrimitiveTypeIC() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("javaPrimitiveTypeICGeneric.kt") + public void testJavaPrimitiveTypeICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmFieldInInlineClassCompanion.kt") public void testJvmFieldInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmFieldInInlineClassCompanionGeneric.kt") + public void testJvmFieldInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmInline.kt") public void testJvmInline() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmInline.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16450,21 +16925,41 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt") + public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmStaticFunInInlineClassCompanion.kt") public void testJvmStaticFunInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmStaticFunInInlineClassCompanionGeneric.kt") + public void testJvmStaticFunInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmStaticPropertyAccessorInInlineClassCompanion.kt") public void testJvmStaticPropertyAccessorInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt") + public void testJvmStaticPropertyAccessorInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmStaticVarInInlineClassCompanion.kt") public void testJvmStaticVarInInlineClassCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmStaticVarInInlineClassCompanionGeneric.kt") + public void testJvmStaticVarInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt25246.kt") public void testKt25246() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt25246.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16475,6 +16970,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/kt25750.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt25750Generic.kt") + public void testKt25750Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt25771.kt") public void testKt25771() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt25771.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16505,16 +17005,31 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/kt27096.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27096Generic.kt") + public void testKt27096Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27096_enum.kt") public void testKt27096_enum() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enum.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27096_enumGeneric.kt") + public void testKt27096_enumGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27096_functional.kt") public void testKt27096_functional() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functional.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27096_functionalGeneric.kt") + public void testKt27096_functionalGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27096_innerClass.kt") public void testKt27096_innerClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_innerClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16525,21 +17040,41 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27096_nullablePrimitiveGeneric.kt") + public void testKt27096_nullablePrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27096_nullableReference.kt") public void testKt27096_nullableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27096_nullableReferenceGeneric.kt") + public void testKt27096_nullableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27096_primitive.kt") public void testKt27096_primitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27096_primitiveGeneric.kt") + public void testKt27096_primitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27096_reference.kt") public void testKt27096_reference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_reference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27096_referenceGeneric.kt") + public void testKt27096_referenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27113.kt") public void testKt27113() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27113.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16550,26 +17085,51 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/kt27113a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27113aGeneric.kt") + public void testKt27113aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27132.kt") public void testKt27132() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27132.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27132Generic.kt") + public void testKt27132Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27140.kt") public void testKt27140() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27140.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27140Generic.kt") + public void testKt27140Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27705.kt") public void testKt27705() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27705.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27705Generic.kt") + public void testKt27705Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27706.kt") public void testKt27706() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27706.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27706Generic.kt") + public void testKt27706Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt28405.kt") public void testKt28405() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt28405.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16600,6 +17160,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/kt33119.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt33119Generic.kt") + public void testKt33119Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt34268.kt") public void testKt34268() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt34268.kt"); @@ -16615,21 +17180,41 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt37998Generic.kt") + public void testKt37998Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt38680.kt") public void testKt38680() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt38680Generic.kt") + public void testKt38680Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt38680a.kt") public void testKt38680a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt38680aGeneric.kt") + public void testKt38680aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt38680b.kt") public void testKt38680b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt38680bGeneric.kt") + public void testKt38680bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt44141.kt") public void testKt44141() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt44141.kt"); @@ -16640,11 +17225,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/kt45084.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt45084Generic.kt") + public void testKt45084Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt46554.kt") public void testKt46554() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt46554.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt46554Generic.kt") + public void testKt46554Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt47609.kt") public void testKt47609() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt47609.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16655,11 +17250,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/kt47762.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt47762Generic.kt") + public void testKt47762Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt48993.kt") public void testKt48993() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt48993.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt48993Generic.kt") + public void testKt48993Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt48993Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt51157.kt") public void testKt51157() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt51157.kt"); @@ -16670,11 +17275,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("mangledDefaultParameterFunctionGeneric.kt") + public void testMangledDefaultParameterFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("mangledSuperCalls.kt") public void testMangledSuperCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCalls.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("mangledSuperCallsGeneric.kt") + public void testMangledSuperCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("mapInlineClassesWithSuppressWildcardsMode.kt") public void testMapInlineClassesWithSuppressWildcardsMode() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/mapInlineClassesWithSuppressWildcardsMode.kt"); @@ -16685,6 +17300,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("mappingOfBoxedFlexibleInlineClassTypeGeneric.kt") + public void testMappingOfBoxedFlexibleInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("multifileClass.kt") public void testMultifileClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/multifileClass.kt"); @@ -16695,31 +17315,61 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("nestedInlineClassGeneric.kt") + public void testNestedInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("noAssertionsOnInlineClassBasedOnNullableType.kt") public void testNoAssertionsOnInlineClassBasedOnNullableType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt") + public void testNoAssertionsOnInlineClassBasedOnNullableTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("noReturnTypeMangling.kt") public void testNoReturnTypeMangling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("noReturnTypeManglingGeneric.kt") + public void testNoReturnTypeManglingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("noReturnTypeManglingJvmName.kt") public void testNoReturnTypeManglingJvmName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("noReturnTypeManglingJvmNameGeneric.kt") + public void testNoReturnTypeManglingJvmNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("nullableEqeqNonNull.kt") public void testNullableEqeqNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("nullableEqeqNonNullGeneric.kt") + public void testNullableEqeqNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("nullableWrapperEquality.kt") public void testNullableWrapperEquality() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEquality.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("nullableWrapperEqualityGeneric.kt") + public void testNullableWrapperEqualityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("overrideReturnNothing.kt") public void testOverrideReturnNothing() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/overrideReturnNothing.kt"); @@ -16730,41 +17380,81 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("overridingFunCallingPrivateFunGeneric.kt") + public void testOverridingFunCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("passInlineClassAsVararg.kt") public void testPassInlineClassAsVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("passInlineClassAsVarargGeneric.kt") + public void testPassInlineClassAsVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("passInlineClassWithSpreadOperatorToVarargs.kt") public void testPassInlineClassWithSpreadOperatorToVarargs() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargs.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("passInlineClassWithSpreadOperatorToVarargsGeneric.kt") + public void testPassInlineClassWithSpreadOperatorToVarargsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("privateConstructorFunInterfaceMultiModule.kt") public void testPrivateConstructorFunInterfaceMultiModule() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModule.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("privateConstructorFunInterfaceMultiModuleGeneric.kt") + public void testPrivateConstructorFunInterfaceMultiModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("propertyLoweringOrder.kt") public void testPropertyLoweringOrder() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrder.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("propertyLoweringOrderGeneric.kt") + public void testPropertyLoweringOrderGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("referToPropertyInCompanionObjectOfInlineClass.kt") public void testReferToPropertyInCompanionObjectOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("referToPropertyInCompanionObjectOfInlineClassGeneric.kt") + public void testReferToPropertyInCompanionObjectOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("referToUnderlyingPropertyInsideInlineClass.kt") public void testReferToUnderlyingPropertyInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("referToUnderlyingPropertyInsideInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("referToUnderlyingPropertyOfInlineClass.kt") public void testReferToUnderlyingPropertyOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("referToUnderlyingPropertyOfInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("removeInInlineCollectionOfInlineClassAsInt.kt") public void testRemoveInInlineCollectionOfInlineClassAsInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/removeInInlineCollectionOfInlineClassAsInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -16775,6 +17465,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/result.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("resultGeneric.kt") + public void testResultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/resultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("resultInlining.kt") public void testResultInlining() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/resultInlining.kt"); @@ -16790,46 +17485,91 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModule.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("samWrapperDifferentModuleGeneric.kt") + public void testSamWrapperDifferentModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("secondaryConstructorWithVararg.kt") public void testSecondaryConstructorWithVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("secondaryConstructorWithVarargGeneric.kt") + public void testSecondaryConstructorWithVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("secondaryConstructorsInsideInlineClass.kt") public void testSecondaryConstructorsInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("secondaryConstructorsInsideInlineClassGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt") public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("smartCastOnThisOfInlineClassType.kt") public void testSmartCastOnThisOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("smartCastOnThisOfInlineClassTypeGeneric.kt") + public void testSmartCastOnThisOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("stringPlus.kt") public void testStringPlus() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/stringPlus.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("stringPlusGeneric.kt") + public void testStringPlusGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("toStringCallingPrivateFun.kt") public void testToStringCallingPrivateFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("toStringCallingPrivateFunGeneric.kt") + public void testToStringCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("typeChecksForInlineClasses.kt") public void testTypeChecksForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("typeChecksForInlineClassesGeneric.kt") + public void testTypeChecksForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("UIntArraySortExample.kt") public void testUIntArraySortExample() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("UIntArraySortExampleGeneric.kt") + public void testUIntArraySortExampleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("UIntSafeAsInt.kt") public void testUIntSafeAsInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/UIntSafeAsInt.kt"); @@ -16840,21 +17580,41 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvoke.kt") public void testUnboxParameterOfSuspendLambdaBeforeInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvoke.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt") + public void testUnboxParameterOfSuspendLambdaBeforeInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("unboxReceiverOnCallingMethodFromInlineClass.kt") public void testUnboxReceiverOnCallingMethodFromInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("unboxReceiverOnCallingMethodFromInlineClassGeneric.kt") + public void testUnboxReceiverOnCallingMethodFromInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("unboxResultParameterWhenCapturingToCrossinlineLambda.kt") public void testUnboxResultParameterWhenCapturingToCrossinlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxResultParameterWhenCapturingToCrossinlineLambda.kt"); @@ -16865,36 +17625,71 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("unboxValueFromPlatformTypeGeneric.kt") + public void testUnboxValueFromPlatformTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt") public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("unboxValueOfAnyBeforeMethodInvocationGeneric.kt") + public void testUnboxValueOfAnyBeforeMethodInvocationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("useInlineClassesInsideElvisOperator.kt") public void testUseInlineClassesInsideElvisOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("useInlineClassesInsideElvisOperatorGeneric.kt") + public void testUseInlineClassesInsideElvisOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("useInlineFunctionInsideInlineClass.kt") public void testUseInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("useInlineFunctionInsideInlineClassGeneric.kt") + public void testUseInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("useOfInlineClassWithGenericMethodFromJava.kt") public void testUseOfInlineClassWithGenericMethodFromJava() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("useOfInlineClassWithGenericMethodFromJavaGeneric.kt") + public void testUseOfInlineClassWithGenericMethodFromJavaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJavaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("useThisInsideInlineClass.kt") public void testUseThisInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("useThisInsideInlineClassGeneric.kt") + public void testUseThisInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("whenWithSubject.kt") public void testWhenWithSubject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubject.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("whenWithSubjectGeneric.kt") + public void testWhenWithSubjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -18120,11 +18915,26 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt"); } + @TestMetadata("defaultArgumentGeneric.kt") + public void ignoreDefaultArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt"); + } + + @TestMetadata("defaultGeneric.kt") + public void ignoreDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultGeneric.kt"); + } + @TestMetadata("simple.kt") public void ignoreSimple() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simple.kt"); } + @TestMetadata("simpleGeneric.kt") + public void ignoreSimpleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simpleGeneric.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -18148,11 +18958,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappers.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("mangledSamWrappersGeneric.kt") + public void ignoreMangledSamWrappersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("returnIC.kt") public void ignoreReturnIC() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("returnICGeneric.kt") + public void ignoreReturnICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("returnResult.kt") public void ignoreReturnResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnResult.kt"); @@ -18175,6 +18995,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("argumentICGeneric.kt") + public void testArgumentICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("javaSam.kt") public void testJavaSam() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/javaSam.kt"); @@ -18207,51 +19032,101 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("anonymousObjectInFunctionWithMangledNameGeneric.kt") + public void testAnonymousObjectInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("extensionFunctionsDoNotClash.kt") public void testExtensionFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("extensionFunctionsDoNotClashGeneric.kt") + public void testExtensionFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("functionsWithDifferentNullabilityDoNotClash.kt") public void testFunctionsWithDifferentNullabilityDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("functionsWithDifferentNullabilityDoNotClashGeneric.kt") + public void testFunctionsWithDifferentNullabilityDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("genericFunctionsDoNotClash.kt") public void testGenericFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("genericFunctionsDoNotClashGeneric.kt") + public void testGenericFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("genericSignatureOfFunctionWithMangledName.kt") public void testGenericSignatureOfFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("genericSignatureOfFunctionWithMangledNameGeneric.kt") + public void testGenericSignatureOfFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("localClassInFunctionWithMangledName.kt") public void testLocalClassInFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("localClassInFunctionWithMangledNameGeneric.kt") + public void testLocalClassInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("mangledFunctionsCanBeOverridden.kt") public void testMangledFunctionsCanBeOverridden() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverridden.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("mangledFunctionsCanBeOverriddenGeneric.kt") + public void testMangledFunctionsCanBeOverriddenGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("mangledFunctionsDoNotClash.kt") public void testMangledFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("mangledFunctionsDoNotClashGeneric.kt") + public void testMangledFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("mangledFunctionsPresentInStackTrace.kt") public void testMangledFunctionsPresentInStackTrace() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTrace.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("mangledFunctionsPresentInStackTraceGeneric.kt") + public void testMangledFunctionsPresentInStackTraceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("mixedSignatureFunctionsDoNotClash.kt") public void testMixedSignatureFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("mixedSignatureFunctionsDoNotClashGeneric.kt") + public void testMixedSignatureFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("overridingMethodInGenericClass.kt") public void testOverridingMethodInGenericClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -18262,35 +19137,75 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("overridingMethodInGenericClass2Generic.kt") + public void testOverridingMethodInGenericClass2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @TestMetadata("overridingMethodInGenericClassGeneric.kt") + public void testOverridingMethodInGenericClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("propertySetterWithInlineClassTypeArgument.kt") public void testPropertySetterWithInlineClassTypeArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("propertySetterWithInlineClassTypeArgumentGeneric.kt") + public void testPropertySetterWithInlineClassTypeArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("reflectionForFunctionWithMangledName.kt") public void testReflectionForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("reflectionForFunctionWithMangledNameGeneric.kt") + public void testReflectionForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("reflectionForLocalClassInFunctionWithMangledName.kt") public void testReflectionForLocalClassInFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("reflectionForLocalClassInFunctionWithMangledNameGeneric.kt") + public void testReflectionForLocalClassInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("reflectionForPropertyOfInlineClassType.kt") public void testReflectionForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("reflectionForPropertyOfInlineClassTypeGeneric.kt") + public void testReflectionForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("syntheticAccessorForFunctionWithMangledName.kt") public void testSyntheticAccessorForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("syntheticAccessorForFunctionWithMangledNameGeneric.kt") + public void testSyntheticAccessorForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("syntheticAccessorsForPropertyOfInlineClassType.kt") public void testSyntheticAccessorsForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @TestMetadata("syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt") + public void testSyntheticAccessorsForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue") @@ -18337,41 +19252,81 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("constructorReferencedFromOtherFile1Generic.kt") + public void testConstructorReferencedFromOtherFile1Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("constructorReferencedFromOtherFile2.kt") public void testConstructorReferencedFromOtherFile2() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("constructorReferencedFromOtherFile2Generic.kt") + public void testConstructorReferencedFromOtherFile2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("constructorWithDefaultParameters.kt") public void testConstructorWithDefaultParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("constructorWithDefaultParametersGeneric.kt") + public void testConstructorWithDefaultParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("delegatingSuperConstructorCall.kt") public void testDelegatingSuperConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("delegatingSuperConstructorCallGeneric.kt") + public void testDelegatingSuperConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructor.kt") public void testDelegatingSuperConstructorCallInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt") + public void testDelegatingSuperConstructorCallInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("delegatingThisConstructorCall.kt") public void testDelegatingThisConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("delegatingThisConstructorCallGeneric.kt") + public void testDelegatingThisConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("enumClassConstructor.kt") public void testEnumClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("enumClassConstructorGeneric.kt") + public void testEnumClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("innerClassConstructor.kt") public void testInnerClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("innerClassConstructorGeneric.kt") + public void testInnerClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt28855.kt") public void testKt28855() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/kt28855.kt"); @@ -18382,20 +19337,40 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("primaryConstructorGeneric.kt") + public void testPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("privateConstructor.kt") public void testPrivateConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("privateConstructorGeneric.kt") + public void testPrivateConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("sealedClassConstructor.kt") public void testSealedClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("sealedClassConstructorGeneric.kt") + public void testSealedClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("secondaryConstructor.kt") public void testSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @TestMetadata("secondaryConstructorGeneric.kt") + public void testSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/inlineClassCollection") @@ -18419,15 +19394,30 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineCollectionOfInlineClassGeneric.kt") + public void testInlineCollectionOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineListOfInlineClass.kt") public void testInlineListOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineListOfInlineClassGeneric.kt") + public void testInlineListOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineMapOfInlineClass.kt") public void testInlineMapOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @TestMetadata("inlineMapOfInlineClassGeneric.kt") + public void testInlineMapOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/interfaceDelegation") @@ -18451,16 +19441,31 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("interfaceImplementationByDelegationGeneric.kt") + public void testInterfaceImplementationByDelegationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt38337.kt") public void testKt38337() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt38337Generic.kt") + public void testKt38337Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypes.kt") public void testMemberExtValDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberExtValDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("memberExtVarDelegationWithInlineClassParameterTypes.kt") public void testMemberExtVarDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -18471,20 +19476,40 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("memberFunDelegatedToInlineClassIntGeneric.kt") + public void testMemberFunDelegatedToInlineClassIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("memberFunDelegatedToInlineClassLong.kt") public void testMemberFunDelegatedToInlineClassLong() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLong.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("memberFunDelegatedToInlineClassLongGeneric.kt") + public void testMemberFunDelegatedToInlineClassLongGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt") public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("memberFunDelegationWithInlineClassParameterTypes.kt") public void testMemberFunDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @TestMetadata("memberFunDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls") @@ -18513,50 +19538,105 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("complexGenericMethodWithInlineClassOverride2Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("complexGenericMethodWithInlineClassOverride3.kt") public void testComplexGenericMethodWithInlineClassOverride3() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("complexGenericMethodWithInlineClassOverride3Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride3Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @TestMetadata("complexGenericMethodWithInlineClassOverrideGeneric.kt") + public void testComplexGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("defaultInterfaceExtensionFunCall.kt") public void testDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("defaultInterfaceExtensionFunCallGeneric.kt") + public void testDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("defaultInterfaceMethodCall.kt") public void testDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("defaultInterfaceMethodCallGeneric.kt") + public void testDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("genericDefaultInterfaceExtensionFunCall.kt") public void testGenericDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("genericDefaultInterfaceExtensionFunCallGeneric.kt") + public void testGenericDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("genericDefaultInterfaceMethodCall.kt") public void testGenericDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("genericDefaultInterfaceMethodCallGeneric.kt") + public void testGenericDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("genericInterfaceMethodCall.kt") public void testGenericInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("genericInterfaceMethodCallGeneric.kt") + public void testGenericInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("genericMethodWithInlineClassOverride.kt") public void testGenericMethodWithInlineClassOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("genericMethodWithInlineClassOverrideGeneric.kt") + public void testGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("interfaceSuperCall.kt") public void testInterfaceSuperCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("interfaceSuperCallGeneric.kt") + public void testInterfaceSuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("overriddenDefaultInterfaceMethodCall.kt") public void testOverriddenDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @TestMetadata("overriddenDefaultInterfaceMethodCallGeneric.kt") + public void testOverriddenDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/javaInterop") @@ -18613,65 +19693,135 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAll.kt"); } + @TestMetadata("inlineClassInheritingDefaultMethodAllGeneric.kt") + public void testInlineClassInheritingDefaultMethodAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAllGeneric.kt"); + } + + @TestMetadata("inlineClassInheritingDefaultMethodGeneric.kt") + public void testInlineClassInheritingDefaultMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodGeneric.kt"); + } + @TestMetadata("javaDefaultMethod.kt") public void testJavaDefaultMethod() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("javaDefaultMethodGeneric.kt") + public void testJavaDefaultMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("javaDefaultMethodOverriddenByKotlin.kt") public void testJavaDefaultMethodOverriddenByKotlin() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlin.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("javaDefaultMethodOverriddenByKotlinGeneric.kt") + public void testJavaDefaultMethodOverriddenByKotlinGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlinGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmDefaultAll.kt") public void testJvmDefaultAll() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAll.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmDefaultAllGeneric.kt") + public void testJvmDefaultAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmDefaultAllPrimaryProperty.kt") public void testJvmDefaultAllPrimaryProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmDefaultAllPrimaryPropertyGeneric.kt") + public void testJvmDefaultAllPrimaryPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmDefaultAllProperty.kt") public void testJvmDefaultAllProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmDefaultAllPropertyGeneric.kt") + public void testJvmDefaultAllPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmDefaultEnable.kt") public void testJvmDefaultEnable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmDefaultEnableGeneric.kt") + public void testJvmDefaultEnableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmDefaultEnablePrimaryProperty.kt") public void testJvmDefaultEnablePrimaryProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePrimaryProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmDefaultEnablePrimaryPropertyGeneric.kt") + public void testJvmDefaultEnablePrimaryPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePrimaryPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmDefaultEnableProperty.kt") public void testJvmDefaultEnableProperty() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnableProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmDefaultEnablePropertyGeneric.kt") + public void testJvmDefaultEnablePropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmDefaultGeneric.kt") public void testJvmDefaultGeneric() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmDefaultGenericGeneric.kt") + public void testJvmDefaultGenericGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGenericGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmDefaultSafeCall.kt") public void testJvmDefaultSafeCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmDefaultSafeCallGeneric.kt") + public void testJvmDefaultSafeCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmDefaultSmartCast.kt") public void testJvmDefaultSmartCast() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCast.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("jvmDefaultSmartCastGeneric.kt") + public void testJvmDefaultSmartCastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCastGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("jvmDefaultSuspend.kt") public void testJvmDefaultSuspend() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspend.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @TestMetadata("jvmDefaultSuspendGeneric.kt") + public void testJvmDefaultSuspendGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspendGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/propertyDelegation") @@ -18695,60 +19845,120 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("captureLocalVarDelegatedToInlineClassGeneric.kt") + public void testCaptureLocalVarDelegatedToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("delegateClassVarToInlineClass.kt") public void testDelegateClassVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("delegateClassVarToInlineClassGeneric.kt") + public void testDelegateClassVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("delegateClassVarToInlineClassWithProvideDelegate.kt") public void testDelegateClassVarToInlineClassWithProvideDelegate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegate.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("delegateClassVarToInlineClassWithProvideDelegateGeneric.kt") + public void testDelegateClassVarToInlineClassWithProvideDelegateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("delegateCompanionVarToInlineClass.kt") public void testDelegateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("delegateCompanionVarToInlineClassGeneric.kt") + public void testDelegateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("delegateJvmStaticCompanionVarToInlineClass.kt") public void testDelegateJvmStaticCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("delegateJvmStaticCompanionVarToInlineClassGeneric.kt") + public void testDelegateJvmStaticCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("delegateLocalVarToInlineClass.kt") public void testDelegateLocalVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("delegateLocalVarToInlineClassGeneric.kt") + public void testDelegateLocalVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("delegateObjectVarToInlineClass.kt") public void testDelegateObjectVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("delegateObjectVarToInlineClassGeneric.kt") + public void testDelegateObjectVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("delegatePrivateCompanionVarToInlineClass.kt") public void testDelegatePrivateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("delegatePrivateCompanionVarToInlineClassGeneric.kt") + public void testDelegatePrivateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("delegateTopLevelVarToInlineClass.kt") public void testDelegateTopLevelVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("delegateTopLevelVarToInlineClassGeneric.kt") + public void testDelegateTopLevelVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("delegatedPropertyOfInlineClassType.kt") public void testDelegatedPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("delegatedPropertyOfInlineClassTypeGeneric.kt") + public void testDelegatedPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27070.kt") public void testKt27070() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27070Generic.kt") + public void testKt27070Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt42933.kt") public void testKt42933() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @TestMetadata("kt42933Generic.kt") + public void testKt42933Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/result") @@ -18880,11 +20090,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/iface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -18895,6 +20115,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/nullableResult.kt"); @@ -18905,6 +20135,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("result.kt") public void testResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/result.kt"); @@ -18915,10 +20150,20 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda") @@ -18942,11 +20187,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/iface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -18957,6 +20212,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/nullableResult.kt"); @@ -18967,6 +20232,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("result.kt") public void testResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/result.kt"); @@ -18977,10 +20247,20 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral") @@ -19009,11 +20289,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -19024,11 +20314,26 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("result.kt") public void testResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/result.kt"); @@ -19039,10 +20344,20 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } } } diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java index 07475ff2848..dd454326286 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java @@ -14931,84 +14931,168 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("annotatedMemberExtensionPropertyGeneric.kt") + public void testAnnotatedMemberExtensionPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("anySuperCall.kt") public void testAnySuperCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anySuperCallGeneric.kt") + public void testAnySuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boundCallableReferencePassedToInlineFunction.kt") public void testBoundCallableReferencePassedToInlineFunction() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunction.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boundCallableReferencePassedToInlineFunctionGeneric.kt") + public void testBoundCallableReferencePassedToInlineFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructor.kt") public void testBoxImplDoesNotExecuteInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt") + public void testBoxImplDoesNotExecuteInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxImplDoesNotExecuteInitBlock.kt") public void testBoxImplDoesNotExecuteInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlock.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxImplDoesNotExecuteInitBlockGeneric.kt") + public void testBoxImplDoesNotExecuteInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableForFakeOverride.kt") public void testBoxNullableForFakeOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverride.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableForFakeOverrideGeneric.kt") + public void testBoxNullableForFakeOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxResultInlineClassOfConstructorCall.kt") public void testBoxResultInlineClassOfConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxResultInlineClassOfConstructorCallGeneric.kt") + public void testBoxResultInlineClassOfConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSet.kt") public void testBoxUnboxInlineClassesWithOperatorsGetSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSet.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt") + public void testBoxUnboxInlineClassesWithOperatorsGetSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxUnboxOfInlineClassForCapturedVars.kt") public void testBoxUnboxOfInlineClassForCapturedVars() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVars.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxUnboxOfInlineClassForCapturedVarsGeneric.kt") + public void testBoxUnboxOfInlineClassForCapturedVarsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("bridgeForFunctionReturningInlineClass.kt") public void testBridgeForFunctionReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("bridgeForFunctionReturningInlineClassGeneric.kt") + public void testBridgeForFunctionReturningInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("bridgeGenerationWithInlineClassOverAny.kt") public void testBridgeGenerationWithInlineClassOverAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("bridgeGenerationWithInlineClassOverAnyGeneric.kt") + public void testBridgeGenerationWithInlineClassOverAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("bridgesWhenInlineClassImplementsGenericInterface.kt") public void testBridgesWhenInlineClassImplementsGenericInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt") + public void testBridgesWhenInlineClassImplementsGenericInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("callComputablePropertyInsideInlineClass.kt") public void testCallComputablePropertyInsideInlineClass() throws Exception { @@ -15021,96 +15105,192 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClasses.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("callableReferencesWithInlineClassesGeneric.kt") + public void testCallableReferencesWithInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("castInsideWhenExpression.kt") public void testCastInsideWhenExpression() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpression.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("castInsideWhenExpressionGeneric.kt") + public void testCastInsideWhenExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctions.kt") public void testCheckBoxUnboxOfArgumentsOnInlinedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctions.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt") + public void testCheckBoxUnboxOfArgumentsOnInlinedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingAfterAssertionOperator.kt") public void testCheckBoxingAfterAssertionOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperator.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingAfterAssertionOperatorGeneric.kt") + public void testCheckBoxingAfterAssertionOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingForComplexClassHierarchy.kt") public void testCheckBoxingForComplexClassHierarchy() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchy.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingForComplexClassHierarchyGeneric.kt") + public void testCheckBoxingForComplexClassHierarchyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingForNonLocalAndLabeledReturns.kt") public void testCheckBoxingForNonLocalAndLabeledReturns() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturns.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingForNonLocalAndLabeledReturnsGeneric.kt") + public void testCheckBoxingForNonLocalAndLabeledReturnsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingFromReturnTypeForInlineClasses.kt") public void testCheckBoxingFromReturnTypeForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClasses.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingFromReturnTypeForInlineClassesGeneric.kt") + public void testCheckBoxingFromReturnTypeForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingOnFunctionCalls.kt") public void testCheckBoxingOnFunctionCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCalls.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingOnFunctionCallsGeneric.kt") + public void testCheckBoxingOnFunctionCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingOnLocalVariableAssignments.kt") public void testCheckBoxingOnLocalVariableAssignments() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignments.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingOnLocalVariableAssignmentsGeneric.kt") + public void testCheckBoxingOnLocalVariableAssignmentsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt") public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt") + public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkCallingMembersInsideInlineClass.kt") public void testCheckCallingMembersInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkCallingMembersInsideInlineClassGeneric.kt") + public void testCheckCallingMembersInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkCastToInlineClass.kt") public void testCheckCastToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkCastToInlineClassGeneric.kt") + public void testCheckCastToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkForInstanceOfInlineClass.kt") public void testCheckForInstanceOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkForInstanceOfInlineClassGeneric.kt") + public void testCheckForInstanceOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkLambdaWithInlineClassesInFunctionalType.kt") public void testCheckLambdaWithInlineClassesInFunctionalType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt") + public void testCheckLambdaWithInlineClassesInFunctionalTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkUnboxingResultFromTypeVariable.kt") public void testCheckUnboxingResultFromTypeVariable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkUnboxingResultFromTypeVariableGeneric.kt") + public void testCheckUnboxingResultFromTypeVariableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("classInInlineClassInit.kt") public void testClassInInlineClassInit() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInit.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("classInInlineClassInitGeneric.kt") + public void testClassInInlineClassInitGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("computablePropertyInsideInlineClass.kt") public void testComputablePropertyInsideInlineClass() throws Exception { @@ -15123,30 +15303,60 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethod.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("conformToComparableAndCallInterfaceMethodGeneric.kt") + public void testConformToComparableAndCallInterfaceMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("constructorCallableReference.kt") public void testConstructorCallableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReference.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("constructorCallableReferenceGeneric.kt") + public void testConstructorCallableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("correctBoxingForBranchExpressions.kt") public void testCorrectBoxingForBranchExpressions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressions.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("correctBoxingForBranchExpressionsGeneric.kt") + public void testCorrectBoxingForBranchExpressionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("createInlineClassInArgumentPosition.kt") public void testCreateInlineClassInArgumentPosition() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPosition.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("createInlineClassInArgumentPositionGeneric.kt") + public void testCreateInlineClassInArgumentPositionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("crossinlineWithInlineClassInParameter.kt") public void testCrossinlineWithInlineClassInParameter() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameter.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("crossinlineWithInlineClassInParameterGeneric.kt") + public void testCrossinlineWithInlineClassInParameterGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("customIterator.kt") public void testCustomIterator() throws Exception { @@ -15159,126 +15369,252 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("defaultFunctionsFromAnyForInlineClassGeneric.kt") + public void testDefaultFunctionsFromAnyForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") public void testDefaultInterfaceMethodsInInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("defaultInterfaceMethodsInInlineClassGeneric.kt") + public void testDefaultInterfaceMethodsInInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("defaultWithInlineClassArgument.kt") public void testDefaultWithInlineClassArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgument.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("defaultWithInlineClassArgumentGeneric.kt") + public void testDefaultWithInlineClassArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("elvisWithInlineClassAndNullConstant.kt") public void testElvisWithInlineClassAndNullConstant() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstant.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("elvisWithInlineClassAndNullConstantGeneric.kt") + public void testElvisWithInlineClassAndNullConstantGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("emptyConstructorForInlineClass.kt") public void testEmptyConstructorForInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("emptyConstructorForInlineClassGeneric.kt") + public void testEmptyConstructorForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksInlineClassNonNull.kt") public void testEqualityChecksInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksInlineClassNonNullGeneric.kt") + public void testEqualityChecksInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksMixedNullability.kt") public void testEqualityChecksMixedNullability() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullability.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksMixedNullabilityGeneric.kt") + public void testEqualityChecksMixedNullabilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksNegatedInlineClassNonNull.kt") public void testEqualityChecksNegatedInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksNegatedInlineClassNonNullGeneric.kt") + public void testEqualityChecksNegatedInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksNegatedNonNull.kt") public void testEqualityChecksNegatedNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksNegatedNonNullGeneric.kt") + public void testEqualityChecksNegatedNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksNegatedNullable.kt") public void testEqualityChecksNegatedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksNegatedNullableGeneric.kt") + public void testEqualityChecksNegatedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksNegatedPrimitive.kt") public void testEqualityChecksNegatedPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksNegatedPrimitiveGeneric.kt") + public void testEqualityChecksNegatedPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksNonNull.kt") public void testEqualityChecksNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksNonNullGeneric.kt") + public void testEqualityChecksNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksNullable.kt") public void testEqualityChecksNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksNullableGeneric.kt") + public void testEqualityChecksNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksPrimitive.kt") public void testEqualityChecksPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksPrimitiveGeneric.kt") + public void testEqualityChecksPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClass.kt") public void testEqualityForBoxesOfNullableValuesOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt") + public void testEqualityForBoxesOfNullableValuesOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsCallsLeftArgument.kt") public void testEqualsCallsLeftArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgument.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsCallsLeftArgumentGeneric.kt") + public void testEqualsCallsLeftArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsEvaluationOrderInlineClass.kt") public void testEqualsEvaluationOrderInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsEvaluationOrderInlineClassGeneric.kt") + public void testEqualsEvaluationOrderInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsEvaluationOrderNonNull.kt") public void testEqualsEvaluationOrderNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsEvaluationOrderNonNullGeneric.kt") + public void testEqualsEvaluationOrderNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsEvaluationOrderNullable.kt") public void testEqualsEvaluationOrderNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsEvaluationOrderNullableGeneric.kt") + public void testEqualsEvaluationOrderNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsEvaluationOrderPrimitive.kt") public void testEqualsEvaluationOrderPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsEvaluationOrderPrimitiveGeneric.kt") + public void testEqualsEvaluationOrderPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsOperatorWithGenericCall.kt") public void testEqualsOperatorWithGenericCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsOperatorWithGenericCallGeneric.kt") + public void testEqualsOperatorWithGenericCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("extLambdaInInlineClassFun.kt") public void testExtLambdaInInlineClassFun() throws Exception { @@ -15291,12 +15627,30 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("extLambdaInInlineClassFun2Generic.kt") + public void testExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("extLambdaInInlineClassFunGeneric.kt") + public void testExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("fieldNameClash.kt") public void testFieldNameClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("fieldNameClashGeneric.kt") + public void testFieldNameClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("funInterfaceDoubleSuffux.kt") public void testFunInterfaceDoubleSuffux() throws Exception { @@ -15315,6 +15669,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/functionExpression.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("functionExpressionGeneric.kt") + public void testFunctionExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericInlineClassSynthMembers.kt") public void testGenericInlineClassSynthMembers() throws Exception { @@ -15333,102 +15693,204 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/initBlock.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("initBlockGeneric.kt") + public void testInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassAsLastExpressionInInLambda.kt") public void testInlineClassAsLastExpressionInInLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassAsLastExpressionInInLambdaGeneric.kt") + public void testInlineClassAsLastExpressionInInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt") public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointData() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt") + public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassFieldHandling.kt") public void testInlineClassFieldHandling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandling.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassFieldHandlingGeneric.kt") + public void testInlineClassFieldHandlingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassFunctionInvoke.kt") public void testInlineClassFunctionInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvoke.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassFunctionInvokeGeneric.kt") + public void testInlineClassFunctionInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassInInitBlock.kt") public void testInlineClassInInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlock.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassInInitBlockGeneric.kt") + public void testInlineClassInInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassInStringTemplate.kt") public void testInlineClassInStringTemplate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplate.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassInStringTemplateGeneric.kt") + public void testInlineClassInStringTemplateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassPropertyReferenceGetAndSet.kt") public void testInlineClassPropertyReferenceGetAndSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSet.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassPropertyReferenceGetAndSetGeneric.kt") + public void testInlineClassPropertyReferenceGetAndSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassValueCapturedInInlineLambda.kt") public void testInlineClassValueCapturedInInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassValueCapturedInInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassValueCapturedInNonInlineLambda.kt") public void testInlineClassValueCapturedInNonInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassValueCapturedInNonInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInNonInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassValuesInsideStrings.kt") public void testInlineClassValuesInsideStrings() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStrings.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassValuesInsideStringsGeneric.kt") + public void testInlineClassValuesInsideStringsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassWithCustomEquals.kt") public void testInlineClassWithCustomEquals() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassWithCustomEqualsGeneric.kt") + public void testInlineClassWithCustomEqualsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassWithDefaultFunctionsFromAny.kt") public void testInlineClassWithDefaultFunctionsFromAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassWithDefaultFunctionsFromAnyGeneric.kt") + public void testInlineClassWithDefaultFunctionsFromAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassesAsInlineFunParameters.kt") public void testInlineClassesAsInlineFunParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassesAsInlineFunParametersGeneric.kt") + public void testInlineClassesAsInlineFunParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassesCheckCast.kt") public void testInlineClassesCheckCast() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCast.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassesCheckCastGeneric.kt") + public void testInlineClassesCheckCastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassesInInlineLambdaParameters.kt") public void testInlineClassesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassesRefTypesInInlineLambdaParameters.kt") public void testInlineClassesRefTypesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassesRefTypesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesRefTypesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineExtLambdaInInlineClassFun.kt") public void testInlineExtLambdaInInlineClassFun() throws Exception { @@ -15441,24 +15903,54 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineExtLambdaInInlineClassFun2Generic.kt") + public void testInlineExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("inlineExtLambdaInInlineClassFunGeneric.kt") + public void testInlineExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineFunctionInsideInlineClass.kt") public void testInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineFunctionInsideInlineClassGeneric.kt") + public void testInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("iterateOverArrayOfInlineClassValues.kt") public void testIterateOverArrayOfInlineClassValues() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValues.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("iterateOverArrayOfInlineClassValuesGeneric.kt") + public void testIterateOverArrayOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("iterateOverListOfInlineClassValues.kt") public void testIterateOverListOfInlineClassValues() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("iterateOverListOfInlineClassValuesGeneric.kt") + public void testIterateOverListOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("jvmInline.kt") public void testJvmInline() throws Exception { @@ -15477,6 +15969,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt25750.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt25750Generic.kt") + public void testKt25750Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt25771.kt") public void testKt25771() throws Exception { @@ -15513,18 +16011,36 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt27096.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096Generic.kt") + public void testKt27096Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27096_enum.kt") public void testKt27096_enum() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enum.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096_enumGeneric.kt") + public void testKt27096_enumGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27096_functional.kt") public void testKt27096_functional() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functional.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096_functionalGeneric.kt") + public void testKt27096_functionalGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27096_innerClass.kt") public void testKt27096_innerClass() throws Exception { @@ -15537,24 +16053,48 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096_nullablePrimitiveGeneric.kt") + public void testKt27096_nullablePrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27096_nullableReference.kt") public void testKt27096_nullableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReference.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096_nullableReferenceGeneric.kt") + public void testKt27096_nullableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27096_primitive.kt") public void testKt27096_primitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096_primitiveGeneric.kt") + public void testKt27096_primitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27096_reference.kt") public void testKt27096_reference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_reference.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096_referenceGeneric.kt") + public void testKt27096_referenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27113.kt") public void testKt27113() throws Exception { @@ -15567,30 +16107,60 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt27113a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27113aGeneric.kt") + public void testKt27113aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27132.kt") public void testKt27132() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27132.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27132Generic.kt") + public void testKt27132Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27140.kt") public void testKt27140() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27140.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27140Generic.kt") + public void testKt27140Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27705.kt") public void testKt27705() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27705.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27705Generic.kt") + public void testKt27705Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27706.kt") public void testKt27706() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27706.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27706Generic.kt") + public void testKt27706Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt28405.kt") public void testKt28405() throws Exception { @@ -15621,6 +16191,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt33119.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt33119Generic.kt") + public void testKt33119Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt34268.kt") public void testKt34268() throws Exception { @@ -15639,24 +16215,48 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt37998Generic.kt") + public void testKt37998Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt38680.kt") public void testKt38680() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt38680Generic.kt") + public void testKt38680Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt38680a.kt") public void testKt38680a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt38680aGeneric.kt") + public void testKt38680aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt38680b.kt") public void testKt38680b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680b.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt38680bGeneric.kt") + public void testKt38680bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt44141.kt") public void testKt44141() throws Exception { @@ -15681,6 +16281,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt45084.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt45084Generic.kt") + public void testKt45084Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { @@ -15693,12 +16299,24 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt46554.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt46554Generic.kt") + public void testKt46554Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt47762.kt") public void testKt47762() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt47762.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt47762Generic.kt") + public void testKt47762Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt51157.kt") public void testKt51157() throws Exception { @@ -15711,12 +16329,24 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mangledDefaultParameterFunctionGeneric.kt") + public void testMangledDefaultParameterFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("mangledSuperCalls.kt") public void testMangledSuperCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCalls.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mangledSuperCallsGeneric.kt") + public void testMangledSuperCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("multifileClass.kt") public void testMultifileClass() throws Exception { @@ -15729,30 +16359,60 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("nestedInlineClassGeneric.kt") + public void testNestedInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("noAssertionsOnInlineClassBasedOnNullableType.kt") public void testNoAssertionsOnInlineClassBasedOnNullableType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt") + public void testNoAssertionsOnInlineClassBasedOnNullableTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("noReturnTypeMangling.kt") public void testNoReturnTypeMangling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("noReturnTypeManglingGeneric.kt") + public void testNoReturnTypeManglingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("nullableEqeqNonNull.kt") public void testNullableEqeqNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("nullableEqeqNonNullGeneric.kt") + public void testNullableEqeqNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("nullableWrapperEquality.kt") public void testNullableWrapperEquality() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEquality.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("nullableWrapperEqualityGeneric.kt") + public void testNullableWrapperEqualityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideReturnNothing.kt") public void testOverrideReturnNothing() throws Exception { @@ -15765,48 +16425,96 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overridingFunCallingPrivateFunGeneric.kt") + public void testOverridingFunCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("passInlineClassAsVararg.kt") public void testPassInlineClassAsVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVararg.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("passInlineClassAsVarargGeneric.kt") + public void testPassInlineClassAsVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("passInlineClassWithSpreadOperatorToVarargs.kt") public void testPassInlineClassWithSpreadOperatorToVarargs() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargs.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("passInlineClassWithSpreadOperatorToVarargsGeneric.kt") + public void testPassInlineClassWithSpreadOperatorToVarargsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("privateConstructorFunInterfaceMultiModule.kt") public void testPrivateConstructorFunInterfaceMultiModule() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModule.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("privateConstructorFunInterfaceMultiModuleGeneric.kt") + public void testPrivateConstructorFunInterfaceMultiModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("propertyLoweringOrder.kt") public void testPropertyLoweringOrder() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrder.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("propertyLoweringOrderGeneric.kt") + public void testPropertyLoweringOrderGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("referToPropertyInCompanionObjectOfInlineClass.kt") public void testReferToPropertyInCompanionObjectOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("referToPropertyInCompanionObjectOfInlineClassGeneric.kt") + public void testReferToPropertyInCompanionObjectOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("referToUnderlyingPropertyInsideInlineClass.kt") public void testReferToUnderlyingPropertyInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("referToUnderlyingPropertyInsideInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("referToUnderlyingPropertyOfInlineClass.kt") public void testReferToUnderlyingPropertyOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("referToUnderlyingPropertyOfInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("removeInInlineCollectionOfInlineClassAsInt.kt") public void testRemoveInInlineCollectionOfInlineClassAsInt() throws Exception { @@ -15819,6 +16527,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/result.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("resultGeneric.kt") + public void testResultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/resultGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("resultInlining.kt") public void testResultInlining() throws Exception { @@ -15837,72 +16551,144 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBound.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("safeAsOfTypeParameterWithInlineClassBoundGeneric.kt") + public void testSafeAsOfTypeParameterWithInlineClassBoundGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("samWrapperDifferentModule.kt") public void testSamWrapperDifferentModule() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModule.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("samWrapperDifferentModuleGeneric.kt") + public void testSamWrapperDifferentModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("secondaryConstructorWithVararg.kt") public void testSecondaryConstructorWithVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVararg.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("secondaryConstructorWithVarargGeneric.kt") + public void testSecondaryConstructorWithVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("secondaryConstructorsInsideInlineClass.kt") public void testSecondaryConstructorsInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt") public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("simpleSecondaryConstructor.kt") public void testSimpleSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("simpleSecondaryConstructorGeneric.kt") + public void testSimpleSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("smartCastOnThisOfInlineClassType.kt") public void testSmartCastOnThisOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("smartCastOnThisOfInlineClassTypeGeneric.kt") + public void testSmartCastOnThisOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("stringPlus.kt") public void testStringPlus() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/stringPlus.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("stringPlusGeneric.kt") + public void testStringPlusGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("toStringCallingPrivateFun.kt") public void testToStringCallingPrivateFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("toStringCallingPrivateFunGeneric.kt") + public void testToStringCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("toStringOfUnboxedNullable.kt") public void testToStringOfUnboxedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("toStringOfUnboxedNullableGeneric.kt") + public void testToStringOfUnboxedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("typeChecksForInlineClasses.kt") public void testTypeChecksForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("typeChecksForInlineClassesGeneric.kt") + public void testTypeChecksForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("UIntArraySortExample.kt") public void testUIntArraySortExample() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("UIntArraySortExampleGeneric.kt") + public void testUIntArraySortExampleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("UIntSafeAsInt.kt") public void testUIntSafeAsInt() throws Exception { @@ -15915,24 +16701,48 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvoke.kt") public void testUnboxParameterOfSuspendLambdaBeforeInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvoke.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt") + public void testUnboxParameterOfSuspendLambdaBeforeInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("unboxReceiverOnCallingMethodFromInlineClass.kt") public void testUnboxReceiverOnCallingMethodFromInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("unboxReceiverOnCallingMethodFromInlineClassGeneric.kt") + public void testUnboxReceiverOnCallingMethodFromInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("unboxResultParameterWhenCapturingToCrossinlineLambda.kt") public void testUnboxResultParameterWhenCapturingToCrossinlineLambda() throws Exception { @@ -15945,36 +16755,72 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("unboxValueFromPlatformTypeGeneric.kt") + public void testUnboxValueFromPlatformTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt") public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("unboxValueOfAnyBeforeMethodInvocationGeneric.kt") + public void testUnboxValueOfAnyBeforeMethodInvocationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("useInlineClassesInsideElvisOperator.kt") public void testUseInlineClassesInsideElvisOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("useInlineClassesInsideElvisOperatorGeneric.kt") + public void testUseInlineClassesInsideElvisOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("useInlineFunctionInsideInlineClass.kt") public void testUseInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("useInlineFunctionInsideInlineClassGeneric.kt") + public void testUseInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("useThisInsideInlineClass.kt") public void testUseThisInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("useThisInsideInlineClassGeneric.kt") + public void testUseThisInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("whenWithSubject.kt") public void testWhenWithSubject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubject.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("whenWithSubjectGeneric.kt") + public void testWhenWithSubjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda") @TestDataPath("$PROJECT_ROOT") @@ -17258,11 +18104,29 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt"); } + @Test + @TestMetadata("defaultArgumentGeneric.kt") + public void testDefaultArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt"); + } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultGeneric.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simple.kt"); } + + @Test + @TestMetadata("simpleGeneric.kt") + public void testSimpleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simpleGeneric.kt"); + } } @Nested @@ -17280,6 +18144,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentIC.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("argumentICGeneric.kt") + public void testArgumentICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("argumentResult.kt") public void testArgumentResult() throws Exception { @@ -17292,12 +18162,24 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappers.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mangledSamWrappersGeneric.kt") + public void testMangledSamWrappersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("returnIC.kt") public void testReturnIC() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnIC.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("returnICGeneric.kt") + public void testReturnICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("returnResult.kt") public void testReturnResult() throws Exception { @@ -17320,54 +18202,108 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anonymousObjectInFunctionWithMangledNameGeneric.kt") + public void testAnonymousObjectInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("extensionFunctionsDoNotClash.kt") public void testExtensionFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("extensionFunctionsDoNotClashGeneric.kt") + public void testExtensionFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("functionsWithDifferentNullabilityDoNotClash.kt") public void testFunctionsWithDifferentNullabilityDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("functionsWithDifferentNullabilityDoNotClashGeneric.kt") + public void testFunctionsWithDifferentNullabilityDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericFunctionsDoNotClash.kt") public void testGenericFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericFunctionsDoNotClashGeneric.kt") + public void testGenericFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("localClassInFunctionWithMangledName.kt") public void testLocalClassInFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("localClassInFunctionWithMangledNameGeneric.kt") + public void testLocalClassInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("mangledFunctionsCanBeOverridden.kt") public void testMangledFunctionsCanBeOverridden() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverridden.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mangledFunctionsCanBeOverriddenGeneric.kt") + public void testMangledFunctionsCanBeOverriddenGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("mangledFunctionsDoNotClash.kt") public void testMangledFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mangledFunctionsDoNotClashGeneric.kt") + public void testMangledFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("mangledFunctionsPresentInStackTrace.kt") public void testMangledFunctionsPresentInStackTrace() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTrace.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mangledFunctionsPresentInStackTraceGeneric.kt") + public void testMangledFunctionsPresentInStackTraceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("mixedSignatureFunctionsDoNotClash.kt") public void testMixedSignatureFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mixedSignatureFunctionsDoNotClashGeneric.kt") + public void testMixedSignatureFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overridingMethodInGenericClass.kt") public void testOverridingMethodInGenericClass() throws Exception { @@ -17380,35 +18316,77 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overridingMethodInGenericClass2Generic.kt") + public void testOverridingMethodInGenericClass2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("overridingMethodInGenericClassGeneric.kt") + public void testOverridingMethodInGenericClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("propertySetterWithInlineClassTypeArgument.kt") public void testPropertySetterWithInlineClassTypeArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgument.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("propertySetterWithInlineClassTypeArgumentGeneric.kt") + public void testPropertySetterWithInlineClassTypeArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("reflectionForFunctionWithMangledName.kt") public void testReflectionForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("reflectionForFunctionWithMangledNameGeneric.kt") + public void testReflectionForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("reflectionForPropertyOfInlineClassType.kt") public void testReflectionForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("reflectionForPropertyOfInlineClassTypeGeneric.kt") + public void testReflectionForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("syntheticAccessorForFunctionWithMangledName.kt") public void testSyntheticAccessorForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("syntheticAccessorForFunctionWithMangledNameGeneric.kt") + public void testSyntheticAccessorForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("syntheticAccessorsForPropertyOfInlineClassType.kt") public void testSyntheticAccessorsForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt") + public void testSyntheticAccessorsForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17448,48 +18426,96 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("constructorReferencedFromOtherFile1Generic.kt") + public void testConstructorReferencedFromOtherFile1Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("constructorReferencedFromOtherFile2.kt") public void testConstructorReferencedFromOtherFile2() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("constructorReferencedFromOtherFile2Generic.kt") + public void testConstructorReferencedFromOtherFile2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("constructorWithDefaultParameters.kt") public void testConstructorWithDefaultParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("constructorWithDefaultParametersGeneric.kt") + public void testConstructorWithDefaultParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegatingSuperConstructorCall.kt") public void testDelegatingSuperConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegatingSuperConstructorCallGeneric.kt") + public void testDelegatingSuperConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructor.kt") public void testDelegatingSuperConstructorCallInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt") + public void testDelegatingSuperConstructorCallInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegatingThisConstructorCall.kt") public void testDelegatingThisConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegatingThisConstructorCallGeneric.kt") + public void testDelegatingThisConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("enumClassConstructor.kt") public void testEnumClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("enumClassConstructorGeneric.kt") + public void testEnumClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("innerClassConstructor.kt") public void testInnerClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("innerClassConstructorGeneric.kt") + public void testInnerClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt28855.kt") public void testKt28855() throws Exception { @@ -17502,23 +18528,47 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("primaryConstructorGeneric.kt") + public void testPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("privateConstructor.kt") public void testPrivateConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("privateConstructorGeneric.kt") + public void testPrivateConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("sealedClassConstructor.kt") public void testSealedClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("sealedClassConstructorGeneric.kt") + public void testSealedClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("secondaryConstructor.kt") public void testSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("secondaryConstructorGeneric.kt") + public void testSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17536,17 +18586,35 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineCollectionOfInlineClassGeneric.kt") + public void testInlineCollectionOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineListOfInlineClass.kt") public void testInlineListOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineListOfInlineClassGeneric.kt") + public void testInlineListOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineMapOfInlineClass.kt") public void testInlineMapOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("inlineMapOfInlineClassGeneric.kt") + public void testInlineMapOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17564,18 +18632,36 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("interfaceImplementationByDelegationGeneric.kt") + public void testInterfaceImplementationByDelegationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt38337.kt") public void testKt38337() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt38337Generic.kt") + public void testKt38337Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("memberExtValDelegationWithInlineClassParameterTypes.kt") public void testMemberExtValDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberExtValDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("memberExtVarDelegationWithInlineClassParameterTypes.kt") public void testMemberExtVarDelegationWithInlineClassParameterTypes() throws Exception { @@ -17588,23 +18674,47 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("memberFunDelegatedToInlineClassIntGeneric.kt") + public void testMemberFunDelegatedToInlineClassIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("memberFunDelegatedToInlineClassLong.kt") public void testMemberFunDelegatedToInlineClassLong() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLong.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("memberFunDelegatedToInlineClassLongGeneric.kt") + public void testMemberFunDelegatedToInlineClassLongGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt") public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("memberFunDelegationWithInlineClassParameterTypes.kt") public void testMemberFunDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("memberFunDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17628,59 +18738,125 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride2Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("complexGenericMethodWithInlineClassOverride3.kt") public void testComplexGenericMethodWithInlineClassOverride3() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride3Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride3Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverrideGeneric.kt") + public void testComplexGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("defaultInterfaceExtensionFunCall.kt") public void testDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("defaultInterfaceExtensionFunCallGeneric.kt") + public void testDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("defaultInterfaceMethodCall.kt") public void testDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("defaultInterfaceMethodCallGeneric.kt") + public void testDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericDefaultInterfaceExtensionFunCall.kt") public void testGenericDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericDefaultInterfaceExtensionFunCallGeneric.kt") + public void testGenericDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericDefaultInterfaceMethodCall.kt") public void testGenericDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericDefaultInterfaceMethodCallGeneric.kt") + public void testGenericDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericInterfaceMethodCall.kt") public void testGenericInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericInterfaceMethodCallGeneric.kt") + public void testGenericInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericMethodWithInlineClassOverride.kt") public void testGenericMethodWithInlineClassOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericMethodWithInlineClassOverrideGeneric.kt") + public void testGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("interfaceSuperCall.kt") public void testInterfaceSuperCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("interfaceSuperCallGeneric.kt") + public void testInterfaceSuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overriddenDefaultInterfaceMethodCall.kt") public void testOverriddenDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("overriddenDefaultInterfaceMethodCallGeneric.kt") + public void testOverriddenDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17718,65 +18894,131 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("captureLocalVarDelegatedToInlineClassGeneric.kt") + public void testCaptureLocalVarDelegatedToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegateClassVarToInlineClass.kt") public void testDelegateClassVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegateClassVarToInlineClassGeneric.kt") + public void testDelegateClassVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegateClassVarToInlineClassWithProvideDelegate.kt") public void testDelegateClassVarToInlineClassWithProvideDelegate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegate.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegateClassVarToInlineClassWithProvideDelegateGeneric.kt") + public void testDelegateClassVarToInlineClassWithProvideDelegateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegateCompanionVarToInlineClass.kt") public void testDelegateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegateCompanionVarToInlineClassGeneric.kt") + public void testDelegateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegateLocalVarToInlineClass.kt") public void testDelegateLocalVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegateLocalVarToInlineClassGeneric.kt") + public void testDelegateLocalVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegateObjectVarToInlineClass.kt") public void testDelegateObjectVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegateObjectVarToInlineClassGeneric.kt") + public void testDelegateObjectVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegatePrivateCompanionVarToInlineClass.kt") public void testDelegatePrivateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegatePrivateCompanionVarToInlineClassGeneric.kt") + public void testDelegatePrivateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegateTopLevelVarToInlineClass.kt") public void testDelegateTopLevelVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegateTopLevelVarToInlineClassGeneric.kt") + public void testDelegateTopLevelVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegatedPropertyOfInlineClassType.kt") public void testDelegatedPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegatedPropertyOfInlineClassTypeGeneric.kt") + public void testDelegatedPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27070.kt") public void testKt27070() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27070Generic.kt") + public void testKt27070Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt42933.kt") public void testKt42933() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("kt42933Generic.kt") + public void testKt42933Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17907,12 +19149,24 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -17925,6 +19179,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -17937,6 +19203,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -17949,11 +19221,23 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17971,12 +19255,24 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -17989,6 +19285,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -18001,6 +19309,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -18013,11 +19327,23 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -18035,12 +19361,24 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -18053,6 +19391,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -18065,6 +19415,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -18077,11 +19433,23 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } } } diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java index c865e67d33a..9d17423d436 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java @@ -14895,84 +14895,168 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("annotatedMemberExtensionPropertyGeneric.kt") + public void testAnnotatedMemberExtensionPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("anySuperCall.kt") public void testAnySuperCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anySuperCallGeneric.kt") + public void testAnySuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boundCallableReferencePassedToInlineFunction.kt") public void testBoundCallableReferencePassedToInlineFunction() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunction.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boundCallableReferencePassedToInlineFunctionGeneric.kt") + public void testBoundCallableReferencePassedToInlineFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructor.kt") public void testBoxImplDoesNotExecuteInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt") + public void testBoxImplDoesNotExecuteInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxImplDoesNotExecuteInitBlock.kt") public void testBoxImplDoesNotExecuteInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlock.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxImplDoesNotExecuteInitBlockGeneric.kt") + public void testBoxImplDoesNotExecuteInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableForFakeOverride.kt") public void testBoxNullableForFakeOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverride.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableForFakeOverrideGeneric.kt") + public void testBoxNullableForFakeOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxResultInlineClassOfConstructorCall.kt") public void testBoxResultInlineClassOfConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxResultInlineClassOfConstructorCallGeneric.kt") + public void testBoxResultInlineClassOfConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSet.kt") public void testBoxUnboxInlineClassesWithOperatorsGetSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSet.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt") + public void testBoxUnboxInlineClassesWithOperatorsGetSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxUnboxOfInlineClassForCapturedVars.kt") public void testBoxUnboxOfInlineClassForCapturedVars() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVars.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxUnboxOfInlineClassForCapturedVarsGeneric.kt") + public void testBoxUnboxOfInlineClassForCapturedVarsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("bridgeForFunctionReturningInlineClass.kt") public void testBridgeForFunctionReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("bridgeForFunctionReturningInlineClassGeneric.kt") + public void testBridgeForFunctionReturningInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("bridgeGenerationWithInlineClassOverAny.kt") public void testBridgeGenerationWithInlineClassOverAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("bridgeGenerationWithInlineClassOverAnyGeneric.kt") + public void testBridgeGenerationWithInlineClassOverAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("bridgesWhenInlineClassImplementsGenericInterface.kt") public void testBridgesWhenInlineClassImplementsGenericInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt") + public void testBridgesWhenInlineClassImplementsGenericInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("callComputablePropertyInsideInlineClass.kt") public void testCallComputablePropertyInsideInlineClass() throws Exception { @@ -14985,96 +15069,192 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClasses.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("callableReferencesWithInlineClassesGeneric.kt") + public void testCallableReferencesWithInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("castInsideWhenExpression.kt") public void testCastInsideWhenExpression() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpression.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("castInsideWhenExpressionGeneric.kt") + public void testCastInsideWhenExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctions.kt") public void testCheckBoxUnboxOfArgumentsOnInlinedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctions.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt") + public void testCheckBoxUnboxOfArgumentsOnInlinedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingAfterAssertionOperator.kt") public void testCheckBoxingAfterAssertionOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperator.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingAfterAssertionOperatorGeneric.kt") + public void testCheckBoxingAfterAssertionOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingForComplexClassHierarchy.kt") public void testCheckBoxingForComplexClassHierarchy() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchy.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingForComplexClassHierarchyGeneric.kt") + public void testCheckBoxingForComplexClassHierarchyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingForNonLocalAndLabeledReturns.kt") public void testCheckBoxingForNonLocalAndLabeledReturns() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturns.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingForNonLocalAndLabeledReturnsGeneric.kt") + public void testCheckBoxingForNonLocalAndLabeledReturnsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingFromReturnTypeForInlineClasses.kt") public void testCheckBoxingFromReturnTypeForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClasses.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingFromReturnTypeForInlineClassesGeneric.kt") + public void testCheckBoxingFromReturnTypeForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingOnFunctionCalls.kt") public void testCheckBoxingOnFunctionCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCalls.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingOnFunctionCallsGeneric.kt") + public void testCheckBoxingOnFunctionCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingOnLocalVariableAssignments.kt") public void testCheckBoxingOnLocalVariableAssignments() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignments.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingOnLocalVariableAssignmentsGeneric.kt") + public void testCheckBoxingOnLocalVariableAssignmentsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt") public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt") + public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkCallingMembersInsideInlineClass.kt") public void testCheckCallingMembersInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkCallingMembersInsideInlineClassGeneric.kt") + public void testCheckCallingMembersInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkCastToInlineClass.kt") public void testCheckCastToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkCastToInlineClassGeneric.kt") + public void testCheckCastToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkForInstanceOfInlineClass.kt") public void testCheckForInstanceOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkForInstanceOfInlineClassGeneric.kt") + public void testCheckForInstanceOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkLambdaWithInlineClassesInFunctionalType.kt") public void testCheckLambdaWithInlineClassesInFunctionalType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt") + public void testCheckLambdaWithInlineClassesInFunctionalTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("checkUnboxingResultFromTypeVariable.kt") public void testCheckUnboxingResultFromTypeVariable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("checkUnboxingResultFromTypeVariableGeneric.kt") + public void testCheckUnboxingResultFromTypeVariableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("classInInlineClassInit.kt") public void testClassInInlineClassInit() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInit.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("classInInlineClassInitGeneric.kt") + public void testClassInInlineClassInitGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("computablePropertyInsideInlineClass.kt") public void testComputablePropertyInsideInlineClass() throws Exception { @@ -15087,30 +15267,60 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethod.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("conformToComparableAndCallInterfaceMethodGeneric.kt") + public void testConformToComparableAndCallInterfaceMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("constructorCallableReference.kt") public void testConstructorCallableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReference.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("constructorCallableReferenceGeneric.kt") + public void testConstructorCallableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("correctBoxingForBranchExpressions.kt") public void testCorrectBoxingForBranchExpressions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressions.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("correctBoxingForBranchExpressionsGeneric.kt") + public void testCorrectBoxingForBranchExpressionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("createInlineClassInArgumentPosition.kt") public void testCreateInlineClassInArgumentPosition() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPosition.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("createInlineClassInArgumentPositionGeneric.kt") + public void testCreateInlineClassInArgumentPositionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("crossinlineWithInlineClassInParameter.kt") public void testCrossinlineWithInlineClassInParameter() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameter.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("crossinlineWithInlineClassInParameterGeneric.kt") + public void testCrossinlineWithInlineClassInParameterGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("customIterator.kt") public void testCustomIterator() throws Exception { @@ -15123,126 +15333,252 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("defaultFunctionsFromAnyForInlineClassGeneric.kt") + public void testDefaultFunctionsFromAnyForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") public void testDefaultInterfaceMethodsInInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("defaultInterfaceMethodsInInlineClassGeneric.kt") + public void testDefaultInterfaceMethodsInInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("defaultWithInlineClassArgument.kt") public void testDefaultWithInlineClassArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgument.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("defaultWithInlineClassArgumentGeneric.kt") + public void testDefaultWithInlineClassArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("elvisWithInlineClassAndNullConstant.kt") public void testElvisWithInlineClassAndNullConstant() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstant.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("elvisWithInlineClassAndNullConstantGeneric.kt") + public void testElvisWithInlineClassAndNullConstantGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("emptyConstructorForInlineClass.kt") public void testEmptyConstructorForInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("emptyConstructorForInlineClassGeneric.kt") + public void testEmptyConstructorForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksInlineClassNonNull.kt") public void testEqualityChecksInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksInlineClassNonNullGeneric.kt") + public void testEqualityChecksInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksMixedNullability.kt") public void testEqualityChecksMixedNullability() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullability.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksMixedNullabilityGeneric.kt") + public void testEqualityChecksMixedNullabilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksNegatedInlineClassNonNull.kt") public void testEqualityChecksNegatedInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksNegatedInlineClassNonNullGeneric.kt") + public void testEqualityChecksNegatedInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksNegatedNonNull.kt") public void testEqualityChecksNegatedNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksNegatedNonNullGeneric.kt") + public void testEqualityChecksNegatedNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksNegatedNullable.kt") public void testEqualityChecksNegatedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksNegatedNullableGeneric.kt") + public void testEqualityChecksNegatedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksNegatedPrimitive.kt") public void testEqualityChecksNegatedPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksNegatedPrimitiveGeneric.kt") + public void testEqualityChecksNegatedPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksNonNull.kt") public void testEqualityChecksNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksNonNullGeneric.kt") + public void testEqualityChecksNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksNullable.kt") public void testEqualityChecksNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksNullableGeneric.kt") + public void testEqualityChecksNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityChecksPrimitive.kt") public void testEqualityChecksPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityChecksPrimitiveGeneric.kt") + public void testEqualityChecksPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClass.kt") public void testEqualityForBoxesOfNullableValuesOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt") + public void testEqualityForBoxesOfNullableValuesOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsCallsLeftArgument.kt") public void testEqualsCallsLeftArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgument.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsCallsLeftArgumentGeneric.kt") + public void testEqualsCallsLeftArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsEvaluationOrderInlineClass.kt") public void testEqualsEvaluationOrderInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsEvaluationOrderInlineClassGeneric.kt") + public void testEqualsEvaluationOrderInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsEvaluationOrderNonNull.kt") public void testEqualsEvaluationOrderNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsEvaluationOrderNonNullGeneric.kt") + public void testEqualsEvaluationOrderNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsEvaluationOrderNullable.kt") public void testEqualsEvaluationOrderNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsEvaluationOrderNullableGeneric.kt") + public void testEqualsEvaluationOrderNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsEvaluationOrderPrimitive.kt") public void testEqualsEvaluationOrderPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsEvaluationOrderPrimitiveGeneric.kt") + public void testEqualsEvaluationOrderPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsOperatorWithGenericCall.kt") public void testEqualsOperatorWithGenericCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsOperatorWithGenericCallGeneric.kt") + public void testEqualsOperatorWithGenericCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("extLambdaInInlineClassFun.kt") public void testExtLambdaInInlineClassFun() throws Exception { @@ -15255,12 +15591,30 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("extLambdaInInlineClassFun2Generic.kt") + public void testExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("extLambdaInInlineClassFunGeneric.kt") + public void testExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("fieldNameClash.kt") public void testFieldNameClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("fieldNameClashGeneric.kt") + public void testFieldNameClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("funInterfaceDoubleSuffux.kt") public void testFunInterfaceDoubleSuffux() throws Exception { @@ -15279,6 +15633,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/functionExpression.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("functionExpressionGeneric.kt") + public void testFunctionExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericInlineClassSynthMembers.kt") public void testGenericInlineClassSynthMembers() throws Exception { @@ -15297,102 +15657,204 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/initBlock.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("initBlockGeneric.kt") + public void testInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassAsLastExpressionInInLambda.kt") public void testInlineClassAsLastExpressionInInLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassAsLastExpressionInInLambdaGeneric.kt") + public void testInlineClassAsLastExpressionInInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt") public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointData() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt") + public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassFieldHandling.kt") public void testInlineClassFieldHandling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandling.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassFieldHandlingGeneric.kt") + public void testInlineClassFieldHandlingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassFunctionInvoke.kt") public void testInlineClassFunctionInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvoke.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassFunctionInvokeGeneric.kt") + public void testInlineClassFunctionInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassInInitBlock.kt") public void testInlineClassInInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlock.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassInInitBlockGeneric.kt") + public void testInlineClassInInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassInStringTemplate.kt") public void testInlineClassInStringTemplate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplate.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassInStringTemplateGeneric.kt") + public void testInlineClassInStringTemplateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassPropertyReferenceGetAndSet.kt") public void testInlineClassPropertyReferenceGetAndSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSet.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassPropertyReferenceGetAndSetGeneric.kt") + public void testInlineClassPropertyReferenceGetAndSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassValueCapturedInInlineLambda.kt") public void testInlineClassValueCapturedInInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassValueCapturedInInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassValueCapturedInNonInlineLambda.kt") public void testInlineClassValueCapturedInNonInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassValueCapturedInNonInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInNonInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassValuesInsideStrings.kt") public void testInlineClassValuesInsideStrings() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStrings.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassValuesInsideStringsGeneric.kt") + public void testInlineClassValuesInsideStringsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassWithCustomEquals.kt") public void testInlineClassWithCustomEquals() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassWithCustomEqualsGeneric.kt") + public void testInlineClassWithCustomEqualsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassWithDefaultFunctionsFromAny.kt") public void testInlineClassWithDefaultFunctionsFromAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassWithDefaultFunctionsFromAnyGeneric.kt") + public void testInlineClassWithDefaultFunctionsFromAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassesAsInlineFunParameters.kt") public void testInlineClassesAsInlineFunParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassesAsInlineFunParametersGeneric.kt") + public void testInlineClassesAsInlineFunParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassesCheckCast.kt") public void testInlineClassesCheckCast() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCast.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassesCheckCastGeneric.kt") + public void testInlineClassesCheckCastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassesInInlineLambdaParameters.kt") public void testInlineClassesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassesRefTypesInInlineLambdaParameters.kt") public void testInlineClassesRefTypesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassesRefTypesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesRefTypesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineExtLambdaInInlineClassFun.kt") public void testInlineExtLambdaInInlineClassFun() throws Exception { @@ -15405,24 +15867,54 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineExtLambdaInInlineClassFun2Generic.kt") + public void testInlineExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("inlineExtLambdaInInlineClassFunGeneric.kt") + public void testInlineExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineFunctionInsideInlineClass.kt") public void testInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineFunctionInsideInlineClassGeneric.kt") + public void testInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("iterateOverArrayOfInlineClassValues.kt") public void testIterateOverArrayOfInlineClassValues() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValues.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("iterateOverArrayOfInlineClassValuesGeneric.kt") + public void testIterateOverArrayOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("iterateOverListOfInlineClassValues.kt") public void testIterateOverListOfInlineClassValues() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("iterateOverListOfInlineClassValuesGeneric.kt") + public void testIterateOverListOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("jvmInline.kt") public void testJvmInline() throws Exception { @@ -15441,6 +15933,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt25750.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt25750Generic.kt") + public void testKt25750Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt25771.kt") public void testKt25771() throws Exception { @@ -15477,18 +15975,36 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt27096.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096Generic.kt") + public void testKt27096Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27096_enum.kt") public void testKt27096_enum() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enum.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096_enumGeneric.kt") + public void testKt27096_enumGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27096_functional.kt") public void testKt27096_functional() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functional.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096_functionalGeneric.kt") + public void testKt27096_functionalGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27096_innerClass.kt") public void testKt27096_innerClass() throws Exception { @@ -15501,24 +16017,48 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096_nullablePrimitiveGeneric.kt") + public void testKt27096_nullablePrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27096_nullableReference.kt") public void testKt27096_nullableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReference.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096_nullableReferenceGeneric.kt") + public void testKt27096_nullableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27096_primitive.kt") public void testKt27096_primitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096_primitiveGeneric.kt") + public void testKt27096_primitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27096_reference.kt") public void testKt27096_reference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_reference.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27096_referenceGeneric.kt") + public void testKt27096_referenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27113.kt") public void testKt27113() throws Exception { @@ -15531,30 +16071,60 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt27113a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27113aGeneric.kt") + public void testKt27113aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27132.kt") public void testKt27132() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27132.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27132Generic.kt") + public void testKt27132Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27140.kt") public void testKt27140() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27140.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27140Generic.kt") + public void testKt27140Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27705.kt") public void testKt27705() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27705.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27705Generic.kt") + public void testKt27705Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27706.kt") public void testKt27706() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27706.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27706Generic.kt") + public void testKt27706Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt28405.kt") public void testKt28405() throws Exception { @@ -15585,6 +16155,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt33119.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt33119Generic.kt") + public void testKt33119Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt34268.kt") public void testKt34268() throws Exception { @@ -15603,24 +16179,48 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt37998Generic.kt") + public void testKt37998Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt38680.kt") public void testKt38680() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt38680Generic.kt") + public void testKt38680Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt38680a.kt") public void testKt38680a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt38680aGeneric.kt") + public void testKt38680aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt38680b.kt") public void testKt38680b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680b.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt38680bGeneric.kt") + public void testKt38680bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt44141.kt") public void testKt44141() throws Exception { @@ -15645,6 +16245,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt45084.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt45084Generic.kt") + public void testKt45084Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { @@ -15657,12 +16263,24 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt46554.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt46554Generic.kt") + public void testKt46554Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt47762.kt") public void testKt47762() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt47762.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt47762Generic.kt") + public void testKt47762Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt51157.kt") public void testKt51157() throws Exception { @@ -15675,12 +16293,24 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mangledDefaultParameterFunctionGeneric.kt") + public void testMangledDefaultParameterFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("mangledSuperCalls.kt") public void testMangledSuperCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCalls.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mangledSuperCallsGeneric.kt") + public void testMangledSuperCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("multifileClass.kt") public void testMultifileClass() throws Exception { @@ -15693,30 +16323,60 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("nestedInlineClassGeneric.kt") + public void testNestedInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("noAssertionsOnInlineClassBasedOnNullableType.kt") public void testNoAssertionsOnInlineClassBasedOnNullableType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt") + public void testNoAssertionsOnInlineClassBasedOnNullableTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("noReturnTypeMangling.kt") public void testNoReturnTypeMangling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("noReturnTypeManglingGeneric.kt") + public void testNoReturnTypeManglingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("nullableEqeqNonNull.kt") public void testNullableEqeqNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("nullableEqeqNonNullGeneric.kt") + public void testNullableEqeqNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("nullableWrapperEquality.kt") public void testNullableWrapperEquality() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEquality.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("nullableWrapperEqualityGeneric.kt") + public void testNullableWrapperEqualityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideReturnNothing.kt") public void testOverrideReturnNothing() throws Exception { @@ -15729,48 +16389,96 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overridingFunCallingPrivateFunGeneric.kt") + public void testOverridingFunCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("passInlineClassAsVararg.kt") public void testPassInlineClassAsVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVararg.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("passInlineClassAsVarargGeneric.kt") + public void testPassInlineClassAsVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("passInlineClassWithSpreadOperatorToVarargs.kt") public void testPassInlineClassWithSpreadOperatorToVarargs() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargs.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("passInlineClassWithSpreadOperatorToVarargsGeneric.kt") + public void testPassInlineClassWithSpreadOperatorToVarargsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("privateConstructorFunInterfaceMultiModule.kt") public void testPrivateConstructorFunInterfaceMultiModule() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModule.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("privateConstructorFunInterfaceMultiModuleGeneric.kt") + public void testPrivateConstructorFunInterfaceMultiModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("propertyLoweringOrder.kt") public void testPropertyLoweringOrder() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrder.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("propertyLoweringOrderGeneric.kt") + public void testPropertyLoweringOrderGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("referToPropertyInCompanionObjectOfInlineClass.kt") public void testReferToPropertyInCompanionObjectOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("referToPropertyInCompanionObjectOfInlineClassGeneric.kt") + public void testReferToPropertyInCompanionObjectOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("referToUnderlyingPropertyInsideInlineClass.kt") public void testReferToUnderlyingPropertyInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("referToUnderlyingPropertyInsideInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("referToUnderlyingPropertyOfInlineClass.kt") public void testReferToUnderlyingPropertyOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("referToUnderlyingPropertyOfInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("removeInInlineCollectionOfInlineClassAsInt.kt") public void testRemoveInInlineCollectionOfInlineClassAsInt() throws Exception { @@ -15783,6 +16491,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/result.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("resultGeneric.kt") + public void testResultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/resultGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("resultInlining.kt") public void testResultInlining() throws Exception { @@ -15801,72 +16515,144 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBound.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("safeAsOfTypeParameterWithInlineClassBoundGeneric.kt") + public void testSafeAsOfTypeParameterWithInlineClassBoundGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("samWrapperDifferentModule.kt") public void testSamWrapperDifferentModule() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModule.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("samWrapperDifferentModuleGeneric.kt") + public void testSamWrapperDifferentModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("secondaryConstructorWithVararg.kt") public void testSecondaryConstructorWithVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVararg.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("secondaryConstructorWithVarargGeneric.kt") + public void testSecondaryConstructorWithVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("secondaryConstructorsInsideInlineClass.kt") public void testSecondaryConstructorsInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt") public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("simpleSecondaryConstructor.kt") public void testSimpleSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("simpleSecondaryConstructorGeneric.kt") + public void testSimpleSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("smartCastOnThisOfInlineClassType.kt") public void testSmartCastOnThisOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("smartCastOnThisOfInlineClassTypeGeneric.kt") + public void testSmartCastOnThisOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("stringPlus.kt") public void testStringPlus() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/stringPlus.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("stringPlusGeneric.kt") + public void testStringPlusGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("toStringCallingPrivateFun.kt") public void testToStringCallingPrivateFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("toStringCallingPrivateFunGeneric.kt") + public void testToStringCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("toStringOfUnboxedNullable.kt") public void testToStringOfUnboxedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("toStringOfUnboxedNullableGeneric.kt") + public void testToStringOfUnboxedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("typeChecksForInlineClasses.kt") public void testTypeChecksForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("typeChecksForInlineClassesGeneric.kt") + public void testTypeChecksForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("UIntArraySortExample.kt") public void testUIntArraySortExample() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("UIntArraySortExampleGeneric.kt") + public void testUIntArraySortExampleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("UIntSafeAsInt.kt") public void testUIntSafeAsInt() throws Exception { @@ -15879,24 +16665,48 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvoke.kt") public void testUnboxParameterOfSuspendLambdaBeforeInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvoke.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt") + public void testUnboxParameterOfSuspendLambdaBeforeInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("unboxReceiverOnCallingMethodFromInlineClass.kt") public void testUnboxReceiverOnCallingMethodFromInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("unboxReceiverOnCallingMethodFromInlineClassGeneric.kt") + public void testUnboxReceiverOnCallingMethodFromInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("unboxResultParameterWhenCapturingToCrossinlineLambda.kt") public void testUnboxResultParameterWhenCapturingToCrossinlineLambda() throws Exception { @@ -15909,36 +16719,72 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("unboxValueFromPlatformTypeGeneric.kt") + public void testUnboxValueFromPlatformTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt") public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("unboxValueOfAnyBeforeMethodInvocationGeneric.kt") + public void testUnboxValueOfAnyBeforeMethodInvocationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("useInlineClassesInsideElvisOperator.kt") public void testUseInlineClassesInsideElvisOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("useInlineClassesInsideElvisOperatorGeneric.kt") + public void testUseInlineClassesInsideElvisOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("useInlineFunctionInsideInlineClass.kt") public void testUseInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("useInlineFunctionInsideInlineClassGeneric.kt") + public void testUseInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("useThisInsideInlineClass.kt") public void testUseThisInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("useThisInsideInlineClassGeneric.kt") + public void testUseThisInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("whenWithSubject.kt") public void testWhenWithSubject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubject.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("whenWithSubjectGeneric.kt") + public void testWhenWithSubjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda") @TestDataPath("$PROJECT_ROOT") @@ -17222,11 +18068,29 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt"); } + @Test + @TestMetadata("defaultArgumentGeneric.kt") + public void testDefaultArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt"); + } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultGeneric.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simple.kt"); } + + @Test + @TestMetadata("simpleGeneric.kt") + public void testSimpleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simpleGeneric.kt"); + } } @Nested @@ -17244,6 +18108,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentIC.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("argumentICGeneric.kt") + public void testArgumentICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("argumentResult.kt") public void testArgumentResult() throws Exception { @@ -17256,12 +18126,24 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappers.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mangledSamWrappersGeneric.kt") + public void testMangledSamWrappersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("returnIC.kt") public void testReturnIC() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnIC.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("returnICGeneric.kt") + public void testReturnICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("returnResult.kt") public void testReturnResult() throws Exception { @@ -17284,54 +18166,108 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anonymousObjectInFunctionWithMangledNameGeneric.kt") + public void testAnonymousObjectInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("extensionFunctionsDoNotClash.kt") public void testExtensionFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("extensionFunctionsDoNotClashGeneric.kt") + public void testExtensionFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("functionsWithDifferentNullabilityDoNotClash.kt") public void testFunctionsWithDifferentNullabilityDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("functionsWithDifferentNullabilityDoNotClashGeneric.kt") + public void testFunctionsWithDifferentNullabilityDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericFunctionsDoNotClash.kt") public void testGenericFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericFunctionsDoNotClashGeneric.kt") + public void testGenericFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("localClassInFunctionWithMangledName.kt") public void testLocalClassInFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("localClassInFunctionWithMangledNameGeneric.kt") + public void testLocalClassInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("mangledFunctionsCanBeOverridden.kt") public void testMangledFunctionsCanBeOverridden() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverridden.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mangledFunctionsCanBeOverriddenGeneric.kt") + public void testMangledFunctionsCanBeOverriddenGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("mangledFunctionsDoNotClash.kt") public void testMangledFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mangledFunctionsDoNotClashGeneric.kt") + public void testMangledFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("mangledFunctionsPresentInStackTrace.kt") public void testMangledFunctionsPresentInStackTrace() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTrace.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mangledFunctionsPresentInStackTraceGeneric.kt") + public void testMangledFunctionsPresentInStackTraceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("mixedSignatureFunctionsDoNotClash.kt") public void testMixedSignatureFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("mixedSignatureFunctionsDoNotClashGeneric.kt") + public void testMixedSignatureFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overridingMethodInGenericClass.kt") public void testOverridingMethodInGenericClass() throws Exception { @@ -17344,35 +18280,77 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overridingMethodInGenericClass2Generic.kt") + public void testOverridingMethodInGenericClass2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("overridingMethodInGenericClassGeneric.kt") + public void testOverridingMethodInGenericClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("propertySetterWithInlineClassTypeArgument.kt") public void testPropertySetterWithInlineClassTypeArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgument.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("propertySetterWithInlineClassTypeArgumentGeneric.kt") + public void testPropertySetterWithInlineClassTypeArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("reflectionForFunctionWithMangledName.kt") public void testReflectionForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("reflectionForFunctionWithMangledNameGeneric.kt") + public void testReflectionForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("reflectionForPropertyOfInlineClassType.kt") public void testReflectionForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("reflectionForPropertyOfInlineClassTypeGeneric.kt") + public void testReflectionForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("syntheticAccessorForFunctionWithMangledName.kt") public void testSyntheticAccessorForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("syntheticAccessorForFunctionWithMangledNameGeneric.kt") + public void testSyntheticAccessorForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("syntheticAccessorsForPropertyOfInlineClassType.kt") public void testSyntheticAccessorsForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt") + public void testSyntheticAccessorsForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17412,48 +18390,96 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("constructorReferencedFromOtherFile1Generic.kt") + public void testConstructorReferencedFromOtherFile1Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("constructorReferencedFromOtherFile2.kt") public void testConstructorReferencedFromOtherFile2() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("constructorReferencedFromOtherFile2Generic.kt") + public void testConstructorReferencedFromOtherFile2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("constructorWithDefaultParameters.kt") public void testConstructorWithDefaultParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("constructorWithDefaultParametersGeneric.kt") + public void testConstructorWithDefaultParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegatingSuperConstructorCall.kt") public void testDelegatingSuperConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegatingSuperConstructorCallGeneric.kt") + public void testDelegatingSuperConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructor.kt") public void testDelegatingSuperConstructorCallInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt") + public void testDelegatingSuperConstructorCallInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegatingThisConstructorCall.kt") public void testDelegatingThisConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegatingThisConstructorCallGeneric.kt") + public void testDelegatingThisConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("enumClassConstructor.kt") public void testEnumClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("enumClassConstructorGeneric.kt") + public void testEnumClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("innerClassConstructor.kt") public void testInnerClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("innerClassConstructorGeneric.kt") + public void testInnerClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt28855.kt") public void testKt28855() throws Exception { @@ -17466,23 +18492,47 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("primaryConstructorGeneric.kt") + public void testPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("privateConstructor.kt") public void testPrivateConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("privateConstructorGeneric.kt") + public void testPrivateConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("sealedClassConstructor.kt") public void testSealedClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("sealedClassConstructorGeneric.kt") + public void testSealedClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("secondaryConstructor.kt") public void testSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("secondaryConstructorGeneric.kt") + public void testSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17500,17 +18550,35 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineCollectionOfInlineClassGeneric.kt") + public void testInlineCollectionOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineListOfInlineClass.kt") public void testInlineListOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineListOfInlineClassGeneric.kt") + public void testInlineListOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineMapOfInlineClass.kt") public void testInlineMapOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("inlineMapOfInlineClassGeneric.kt") + public void testInlineMapOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17528,18 +18596,36 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("interfaceImplementationByDelegationGeneric.kt") + public void testInterfaceImplementationByDelegationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt38337.kt") public void testKt38337() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt38337Generic.kt") + public void testKt38337Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("memberExtValDelegationWithInlineClassParameterTypes.kt") public void testMemberExtValDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberExtValDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("memberExtVarDelegationWithInlineClassParameterTypes.kt") public void testMemberExtVarDelegationWithInlineClassParameterTypes() throws Exception { @@ -17552,23 +18638,47 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("memberFunDelegatedToInlineClassIntGeneric.kt") + public void testMemberFunDelegatedToInlineClassIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("memberFunDelegatedToInlineClassLong.kt") public void testMemberFunDelegatedToInlineClassLong() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLong.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("memberFunDelegatedToInlineClassLongGeneric.kt") + public void testMemberFunDelegatedToInlineClassLongGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt") public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("memberFunDelegationWithInlineClassParameterTypes.kt") public void testMemberFunDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("memberFunDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17592,59 +18702,125 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride2Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("complexGenericMethodWithInlineClassOverride3.kt") public void testComplexGenericMethodWithInlineClassOverride3() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride3Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride3Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverrideGeneric.kt") + public void testComplexGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("defaultInterfaceExtensionFunCall.kt") public void testDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("defaultInterfaceExtensionFunCallGeneric.kt") + public void testDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("defaultInterfaceMethodCall.kt") public void testDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("defaultInterfaceMethodCallGeneric.kt") + public void testDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericDefaultInterfaceExtensionFunCall.kt") public void testGenericDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericDefaultInterfaceExtensionFunCallGeneric.kt") + public void testGenericDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericDefaultInterfaceMethodCall.kt") public void testGenericDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericDefaultInterfaceMethodCallGeneric.kt") + public void testGenericDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericInterfaceMethodCall.kt") public void testGenericInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericInterfaceMethodCallGeneric.kt") + public void testGenericInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericMethodWithInlineClassOverride.kt") public void testGenericMethodWithInlineClassOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericMethodWithInlineClassOverrideGeneric.kt") + public void testGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("interfaceSuperCall.kt") public void testInterfaceSuperCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("interfaceSuperCallGeneric.kt") + public void testInterfaceSuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overriddenDefaultInterfaceMethodCall.kt") public void testOverriddenDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("overriddenDefaultInterfaceMethodCallGeneric.kt") + public void testOverriddenDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17682,65 +18858,131 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("captureLocalVarDelegatedToInlineClassGeneric.kt") + public void testCaptureLocalVarDelegatedToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegateClassVarToInlineClass.kt") public void testDelegateClassVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegateClassVarToInlineClassGeneric.kt") + public void testDelegateClassVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegateClassVarToInlineClassWithProvideDelegate.kt") public void testDelegateClassVarToInlineClassWithProvideDelegate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegate.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegateClassVarToInlineClassWithProvideDelegateGeneric.kt") + public void testDelegateClassVarToInlineClassWithProvideDelegateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegateCompanionVarToInlineClass.kt") public void testDelegateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegateCompanionVarToInlineClassGeneric.kt") + public void testDelegateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegateLocalVarToInlineClass.kt") public void testDelegateLocalVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegateLocalVarToInlineClassGeneric.kt") + public void testDelegateLocalVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegateObjectVarToInlineClass.kt") public void testDelegateObjectVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegateObjectVarToInlineClassGeneric.kt") + public void testDelegateObjectVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegatePrivateCompanionVarToInlineClass.kt") public void testDelegatePrivateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegatePrivateCompanionVarToInlineClassGeneric.kt") + public void testDelegatePrivateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegateTopLevelVarToInlineClass.kt") public void testDelegateTopLevelVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegateTopLevelVarToInlineClassGeneric.kt") + public void testDelegateTopLevelVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("delegatedPropertyOfInlineClassType.kt") public void testDelegatedPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("delegatedPropertyOfInlineClassTypeGeneric.kt") + public void testDelegatedPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27070.kt") public void testKt27070() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27070Generic.kt") + public void testKt27070Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt42933.kt") public void testKt42933() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("kt42933Generic.kt") + public void testKt42933Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17871,12 +19113,24 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -17889,6 +19143,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -17901,6 +19167,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -17913,11 +19185,23 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17935,12 +19219,24 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -17953,6 +19249,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -17965,6 +19273,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -17977,11 +19291,23 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -17999,12 +19325,24 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -18017,6 +19355,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -18029,6 +19379,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -18041,11 +19397,23 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } } } diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxWasmTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxWasmTestGenerated.java index bfe80d3e17b..afe30400dfc 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxWasmTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxWasmTestGenerated.java @@ -12557,71 +12557,141 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("annotatedMemberExtensionPropertyGeneric.kt") + public void testAnnotatedMemberExtensionPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("anySuperCall.kt") public void testAnySuperCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("anySuperCallGeneric.kt") + public void testAnySuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boundCallableReferencePassedToInlineFunction.kt") public void testBoundCallableReferencePassedToInlineFunction() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunction.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boundCallableReferencePassedToInlineFunctionGeneric.kt") + public void testBoundCallableReferencePassedToInlineFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructor.kt") public void testBoxImplDoesNotExecuteInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt") + public void testBoxImplDoesNotExecuteInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxImplDoesNotExecuteInitBlock.kt") public void testBoxImplDoesNotExecuteInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlock.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxImplDoesNotExecuteInitBlockGeneric.kt") + public void testBoxImplDoesNotExecuteInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxNullableForFakeOverride.kt") public void testBoxNullableForFakeOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverride.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxNullableForFakeOverrideGeneric.kt") + public void testBoxNullableForFakeOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxResultInlineClassOfConstructorCall.kt") public void testBoxResultInlineClassOfConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxResultInlineClassOfConstructorCallGeneric.kt") + public void testBoxResultInlineClassOfConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSet.kt") public void testBoxUnboxInlineClassesWithOperatorsGetSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSet.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt") + public void testBoxUnboxInlineClassesWithOperatorsGetSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxUnboxOfInlineClassForCapturedVars.kt") public void testBoxUnboxOfInlineClassForCapturedVars() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVars.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxUnboxOfInlineClassForCapturedVarsGeneric.kt") + public void testBoxUnboxOfInlineClassForCapturedVarsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("bridgeForFunctionReturningInlineClass.kt") public void testBridgeForFunctionReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("bridgeForFunctionReturningInlineClassGeneric.kt") + public void testBridgeForFunctionReturningInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("bridgeGenerationWithInlineClassOverAny.kt") public void testBridgeGenerationWithInlineClassOverAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("bridgeGenerationWithInlineClassOverAnyGeneric.kt") + public void testBridgeGenerationWithInlineClassOverAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("bridgesWhenInlineClassImplementsGenericInterface.kt") public void testBridgesWhenInlineClassImplementsGenericInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt") + public void testBridgesWhenInlineClassImplementsGenericInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("callComputablePropertyInsideInlineClass.kt") public void testCallComputablePropertyInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callComputablePropertyInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -12632,81 +12702,161 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClasses.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("callableReferencesWithInlineClassesGeneric.kt") + public void testCallableReferencesWithInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("castInsideWhenExpression.kt") public void testCastInsideWhenExpression() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpression.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("castInsideWhenExpressionGeneric.kt") + public void testCastInsideWhenExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctions.kt") public void testCheckBoxUnboxOfArgumentsOnInlinedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctions.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt") + public void testCheckBoxUnboxOfArgumentsOnInlinedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("checkBoxingAfterAssertionOperator.kt") public void testCheckBoxingAfterAssertionOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperator.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("checkBoxingAfterAssertionOperatorGeneric.kt") + public void testCheckBoxingAfterAssertionOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("checkBoxingForComplexClassHierarchy.kt") public void testCheckBoxingForComplexClassHierarchy() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchy.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("checkBoxingForComplexClassHierarchyGeneric.kt") + public void testCheckBoxingForComplexClassHierarchyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("checkBoxingForNonLocalAndLabeledReturns.kt") public void testCheckBoxingForNonLocalAndLabeledReturns() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturns.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("checkBoxingForNonLocalAndLabeledReturnsGeneric.kt") + public void testCheckBoxingForNonLocalAndLabeledReturnsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("checkBoxingFromReturnTypeForInlineClasses.kt") public void testCheckBoxingFromReturnTypeForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClasses.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("checkBoxingFromReturnTypeForInlineClassesGeneric.kt") + public void testCheckBoxingFromReturnTypeForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("checkBoxingOnFunctionCalls.kt") public void testCheckBoxingOnFunctionCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCalls.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("checkBoxingOnFunctionCallsGeneric.kt") + public void testCheckBoxingOnFunctionCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("checkBoxingOnLocalVariableAssignments.kt") public void testCheckBoxingOnLocalVariableAssignments() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignments.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("checkBoxingOnLocalVariableAssignmentsGeneric.kt") + public void testCheckBoxingOnLocalVariableAssignmentsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt") public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt") + public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("checkCallingMembersInsideInlineClass.kt") public void testCheckCallingMembersInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("checkCallingMembersInsideInlineClassGeneric.kt") + public void testCheckCallingMembersInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("checkCastToInlineClass.kt") public void testCheckCastToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("checkCastToInlineClassGeneric.kt") + public void testCheckCastToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("checkForInstanceOfInlineClass.kt") public void testCheckForInstanceOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("checkForInstanceOfInlineClassGeneric.kt") + public void testCheckForInstanceOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("checkLambdaWithInlineClassesInFunctionalType.kt") public void testCheckLambdaWithInlineClassesInFunctionalType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt") + public void testCheckLambdaWithInlineClassesInFunctionalTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("checkUnboxingResultFromTypeVariable.kt") public void testCheckUnboxingResultFromTypeVariable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("checkUnboxingResultFromTypeVariableGeneric.kt") + public void testCheckUnboxingResultFromTypeVariableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("classInInlineClassInit.kt") public void testClassInInlineClassInit() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInit.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("classInInlineClassInitGeneric.kt") + public void testClassInInlineClassInitGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("computablePropertyInsideInlineClass.kt") public void testComputablePropertyInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/computablePropertyInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -12717,26 +12867,51 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethod.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("conformToComparableAndCallInterfaceMethodGeneric.kt") + public void testConformToComparableAndCallInterfaceMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("constructorCallableReference.kt") public void testConstructorCallableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReference.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("constructorCallableReferenceGeneric.kt") + public void testConstructorCallableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("correctBoxingForBranchExpressions.kt") public void testCorrectBoxingForBranchExpressions() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressions.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("correctBoxingForBranchExpressionsGeneric.kt") + public void testCorrectBoxingForBranchExpressionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("createInlineClassInArgumentPosition.kt") public void testCreateInlineClassInArgumentPosition() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPosition.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("createInlineClassInArgumentPositionGeneric.kt") + public void testCreateInlineClassInArgumentPositionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("crossinlineWithInlineClassInParameter.kt") public void testCrossinlineWithInlineClassInParameter() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameter.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("crossinlineWithInlineClassInParameterGeneric.kt") + public void testCrossinlineWithInlineClassInParameterGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("customIterator.kt") public void testCustomIterator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/customIterator.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -12747,106 +12922,211 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("defaultFunctionsFromAnyForInlineClassGeneric.kt") + public void testDefaultFunctionsFromAnyForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") public void testDefaultInterfaceMethodsInInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("defaultInterfaceMethodsInInlineClassGeneric.kt") + public void testDefaultInterfaceMethodsInInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("defaultWithInlineClassArgument.kt") public void testDefaultWithInlineClassArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgument.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("defaultWithInlineClassArgumentGeneric.kt") + public void testDefaultWithInlineClassArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("elvisWithInlineClassAndNullConstant.kt") public void testElvisWithInlineClassAndNullConstant() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstant.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("elvisWithInlineClassAndNullConstantGeneric.kt") + public void testElvisWithInlineClassAndNullConstantGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("emptyConstructorForInlineClass.kt") public void testEmptyConstructorForInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("emptyConstructorForInlineClassGeneric.kt") + public void testEmptyConstructorForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalityChecksInlineClassNonNull.kt") public void testEqualityChecksInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalityChecksInlineClassNonNullGeneric.kt") + public void testEqualityChecksInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalityChecksMixedNullability.kt") public void testEqualityChecksMixedNullability() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullability.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalityChecksMixedNullabilityGeneric.kt") + public void testEqualityChecksMixedNullabilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalityChecksNegatedInlineClassNonNull.kt") public void testEqualityChecksNegatedInlineClassNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalityChecksNegatedInlineClassNonNullGeneric.kt") + public void testEqualityChecksNegatedInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalityChecksNegatedNonNull.kt") public void testEqualityChecksNegatedNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalityChecksNegatedNonNullGeneric.kt") + public void testEqualityChecksNegatedNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalityChecksNegatedNullable.kt") public void testEqualityChecksNegatedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalityChecksNegatedNullableGeneric.kt") + public void testEqualityChecksNegatedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalityChecksNegatedPrimitive.kt") public void testEqualityChecksNegatedPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalityChecksNegatedPrimitiveGeneric.kt") + public void testEqualityChecksNegatedPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalityChecksNonNull.kt") public void testEqualityChecksNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalityChecksNonNullGeneric.kt") + public void testEqualityChecksNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalityChecksNullable.kt") public void testEqualityChecksNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalityChecksNullableGeneric.kt") + public void testEqualityChecksNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalityChecksPrimitive.kt") public void testEqualityChecksPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalityChecksPrimitiveGeneric.kt") + public void testEqualityChecksPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClass.kt") public void testEqualityForBoxesOfNullableValuesOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt") + public void testEqualityForBoxesOfNullableValuesOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalsCallsLeftArgument.kt") public void testEqualsCallsLeftArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgument.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalsCallsLeftArgumentGeneric.kt") + public void testEqualsCallsLeftArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalsEvaluationOrderInlineClass.kt") public void testEqualsEvaluationOrderInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalsEvaluationOrderInlineClassGeneric.kt") + public void testEqualsEvaluationOrderInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalsEvaluationOrderNonNull.kt") public void testEqualsEvaluationOrderNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalsEvaluationOrderNonNullGeneric.kt") + public void testEqualsEvaluationOrderNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalsEvaluationOrderNullable.kt") public void testEqualsEvaluationOrderNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalsEvaluationOrderNullableGeneric.kt") + public void testEqualsEvaluationOrderNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalsEvaluationOrderPrimitive.kt") public void testEqualsEvaluationOrderPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalsEvaluationOrderPrimitiveGeneric.kt") + public void testEqualsEvaluationOrderPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalsOperatorWithGenericCall.kt") public void testEqualsOperatorWithGenericCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalsOperatorWithGenericCallGeneric.kt") + public void testEqualsOperatorWithGenericCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("extLambdaInInlineClassFun.kt") public void testExtLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -12857,11 +13137,26 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("extLambdaInInlineClassFun2Generic.kt") + public void testExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @TestMetadata("extLambdaInInlineClassFunGeneric.kt") + public void testExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("fieldNameClash.kt") public void testFieldNameClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("fieldNameClashGeneric.kt") + public void testFieldNameClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("funInterfaceDoubleSuffux.kt") public void testFunInterfaceDoubleSuffux() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/funInterfaceDoubleSuffux.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -12877,6 +13172,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/functionExpression.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("functionExpressionGeneric.kt") + public void testFunctionExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("genericInlineClassSynthMembers.kt") public void testGenericInlineClassSynthMembers() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/genericInlineClassSynthMembers.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -12892,86 +13192,171 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/initBlock.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("initBlockGeneric.kt") + public void testInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassAsLastExpressionInInLambda.kt") public void testInlineClassAsLastExpressionInInLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassAsLastExpressionInInLambdaGeneric.kt") + public void testInlineClassAsLastExpressionInInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt") public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointData() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt") + public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassFieldHandling.kt") public void testInlineClassFieldHandling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandling.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassFieldHandlingGeneric.kt") + public void testInlineClassFieldHandlingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassFunctionInvoke.kt") public void testInlineClassFunctionInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvoke.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassFunctionInvokeGeneric.kt") + public void testInlineClassFunctionInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassInInitBlock.kt") public void testInlineClassInInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlock.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassInInitBlockGeneric.kt") + public void testInlineClassInInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassInStringTemplate.kt") public void testInlineClassInStringTemplate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplate.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassInStringTemplateGeneric.kt") + public void testInlineClassInStringTemplateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassPropertyReferenceGetAndSet.kt") public void testInlineClassPropertyReferenceGetAndSet() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSet.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassPropertyReferenceGetAndSetGeneric.kt") + public void testInlineClassPropertyReferenceGetAndSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassValueCapturedInInlineLambda.kt") public void testInlineClassValueCapturedInInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassValueCapturedInInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassValueCapturedInNonInlineLambda.kt") public void testInlineClassValueCapturedInNonInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassValueCapturedInNonInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInNonInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassValuesInsideStrings.kt") public void testInlineClassValuesInsideStrings() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStrings.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassValuesInsideStringsGeneric.kt") + public void testInlineClassValuesInsideStringsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassWithCustomEquals.kt") public void testInlineClassWithCustomEquals() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassWithCustomEqualsGeneric.kt") + public void testInlineClassWithCustomEqualsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassWithDefaultFunctionsFromAny.kt") public void testInlineClassWithDefaultFunctionsFromAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassWithDefaultFunctionsFromAnyGeneric.kt") + public void testInlineClassWithDefaultFunctionsFromAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassesAsInlineFunParameters.kt") public void testInlineClassesAsInlineFunParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassesAsInlineFunParametersGeneric.kt") + public void testInlineClassesAsInlineFunParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassesCheckCast.kt") public void testInlineClassesCheckCast() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCast.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassesCheckCastGeneric.kt") + public void testInlineClassesCheckCastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassesInInlineLambdaParameters.kt") public void testInlineClassesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassesRefTypesInInlineLambdaParameters.kt") public void testInlineClassesRefTypesInInlineLambdaParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassesRefTypesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesRefTypesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineExtLambdaInInlineClassFun.kt") public void testInlineExtLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -12982,21 +13367,46 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineExtLambdaInInlineClassFun2Generic.kt") + public void testInlineExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @TestMetadata("inlineExtLambdaInInlineClassFunGeneric.kt") + public void testInlineExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineFunctionInsideInlineClass.kt") public void testInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineFunctionInsideInlineClassGeneric.kt") + public void testInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("iterateOverArrayOfInlineClassValues.kt") public void testIterateOverArrayOfInlineClassValues() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValues.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("iterateOverArrayOfInlineClassValuesGeneric.kt") + public void testIterateOverArrayOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("iterateOverListOfInlineClassValues.kt") public void testIterateOverListOfInlineClassValues() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("iterateOverListOfInlineClassValuesGeneric.kt") + public void testIterateOverListOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("jvmInline.kt") public void testJvmInline() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/jvmInline.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -13012,6 +13422,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/kt25750.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt25750Generic.kt") + public void testKt25750Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt25771.kt") public void testKt25771() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt25771.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -13042,16 +13457,31 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/kt27096.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27096Generic.kt") + public void testKt27096Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27096_enum.kt") public void testKt27096_enum() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enum.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27096_enumGeneric.kt") + public void testKt27096_enumGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27096_functional.kt") public void testKt27096_functional() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functional.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27096_functionalGeneric.kt") + public void testKt27096_functionalGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27096_innerClass.kt") public void testKt27096_innerClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_innerClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -13062,21 +13492,41 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27096_nullablePrimitiveGeneric.kt") + public void testKt27096_nullablePrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27096_nullableReference.kt") public void testKt27096_nullableReference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReference.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27096_nullableReferenceGeneric.kt") + public void testKt27096_nullableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27096_primitive.kt") public void testKt27096_primitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27096_primitiveGeneric.kt") + public void testKt27096_primitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27096_reference.kt") public void testKt27096_reference() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27096_reference.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27096_referenceGeneric.kt") + public void testKt27096_referenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27113.kt") public void testKt27113() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27113.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -13087,26 +13537,51 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/kt27113a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27113aGeneric.kt") + public void testKt27113aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27132.kt") public void testKt27132() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27132.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27132Generic.kt") + public void testKt27132Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27140.kt") public void testKt27140() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27140.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27140Generic.kt") + public void testKt27140Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27705.kt") public void testKt27705() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27705.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27705Generic.kt") + public void testKt27705Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27706.kt") public void testKt27706() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt27706.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27706Generic.kt") + public void testKt27706Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt28405.kt") public void testKt28405() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt28405.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -13132,6 +13607,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/kt33119.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt33119Generic.kt") + public void testKt33119Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt34268.kt") public void testKt34268() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt34268.kt"); @@ -13147,21 +13627,41 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt37998Generic.kt") + public void testKt37998Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt38680.kt") public void testKt38680() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt38680Generic.kt") + public void testKt38680Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt38680a.kt") public void testKt38680a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt38680aGeneric.kt") + public void testKt38680aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt38680b.kt") public void testKt38680b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt38680b.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt38680bGeneric.kt") + public void testKt38680bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt44141.kt") public void testKt44141() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt44141.kt"); @@ -13182,6 +13682,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/kt45084.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt45084Generic.kt") + public void testKt45084Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -13192,11 +13697,21 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/kt46554.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt46554Generic.kt") + public void testKt46554Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt47762.kt") public void testKt47762() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt47762.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt47762Generic.kt") + public void testKt47762Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt51157.kt") public void testKt51157() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt51157.kt"); @@ -13207,11 +13722,21 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("mangledDefaultParameterFunctionGeneric.kt") + public void testMangledDefaultParameterFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("mangledSuperCalls.kt") public void testMangledSuperCalls() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCalls.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("mangledSuperCallsGeneric.kt") + public void testMangledSuperCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("multifileClass.kt") public void testMultifileClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/multifileClass.kt"); @@ -13222,26 +13747,51 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("nestedInlineClassGeneric.kt") + public void testNestedInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("noAssertionsOnInlineClassBasedOnNullableType.kt") public void testNoAssertionsOnInlineClassBasedOnNullableType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt") + public void testNoAssertionsOnInlineClassBasedOnNullableTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("noReturnTypeMangling.kt") public void testNoReturnTypeMangling() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("noReturnTypeManglingGeneric.kt") + public void testNoReturnTypeManglingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("nullableEqeqNonNull.kt") public void testNullableEqeqNonNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("nullableEqeqNonNullGeneric.kt") + public void testNullableEqeqNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("nullableWrapperEquality.kt") public void testNullableWrapperEquality() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEquality.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("nullableWrapperEqualityGeneric.kt") + public void testNullableWrapperEqualityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("overrideReturnNothing.kt") public void testOverrideReturnNothing() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/overrideReturnNothing.kt"); @@ -13252,41 +13802,81 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("overridingFunCallingPrivateFunGeneric.kt") + public void testOverridingFunCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("passInlineClassAsVararg.kt") public void testPassInlineClassAsVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVararg.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("passInlineClassAsVarargGeneric.kt") + public void testPassInlineClassAsVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("passInlineClassWithSpreadOperatorToVarargs.kt") public void testPassInlineClassWithSpreadOperatorToVarargs() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargs.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("passInlineClassWithSpreadOperatorToVarargsGeneric.kt") + public void testPassInlineClassWithSpreadOperatorToVarargsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("privateConstructorFunInterfaceMultiModule.kt") public void testPrivateConstructorFunInterfaceMultiModule() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModule.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("privateConstructorFunInterfaceMultiModuleGeneric.kt") + public void testPrivateConstructorFunInterfaceMultiModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("propertyLoweringOrder.kt") public void testPropertyLoweringOrder() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrder.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("propertyLoweringOrderGeneric.kt") + public void testPropertyLoweringOrderGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("referToPropertyInCompanionObjectOfInlineClass.kt") public void testReferToPropertyInCompanionObjectOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("referToPropertyInCompanionObjectOfInlineClassGeneric.kt") + public void testReferToPropertyInCompanionObjectOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("referToUnderlyingPropertyInsideInlineClass.kt") public void testReferToUnderlyingPropertyInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("referToUnderlyingPropertyInsideInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("referToUnderlyingPropertyOfInlineClass.kt") public void testReferToUnderlyingPropertyOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("referToUnderlyingPropertyOfInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("removeInInlineCollectionOfInlineClassAsInt.kt") public void testRemoveInInlineCollectionOfInlineClassAsInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/removeInInlineCollectionOfInlineClassAsInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -13297,6 +13887,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/result.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("resultGeneric.kt") + public void testResultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/resultGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("resultInlining.kt") public void testResultInlining() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/resultInlining.kt"); @@ -13312,61 +13907,121 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBound.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("safeAsOfTypeParameterWithInlineClassBoundGeneric.kt") + public void testSafeAsOfTypeParameterWithInlineClassBoundGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("samWrapperDifferentModule.kt") public void testSamWrapperDifferentModule() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModule.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("samWrapperDifferentModuleGeneric.kt") + public void testSamWrapperDifferentModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("secondaryConstructorWithVararg.kt") public void testSecondaryConstructorWithVararg() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVararg.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("secondaryConstructorWithVarargGeneric.kt") + public void testSecondaryConstructorWithVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("secondaryConstructorsInsideInlineClass.kt") public void testSecondaryConstructorsInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("secondaryConstructorsInsideInlineClassGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt") public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("simpleSecondaryConstructor.kt") public void testSimpleSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("simpleSecondaryConstructorGeneric.kt") + public void testSimpleSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("smartCastOnThisOfInlineClassType.kt") public void testSmartCastOnThisOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("smartCastOnThisOfInlineClassTypeGeneric.kt") + public void testSmartCastOnThisOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("stringPlus.kt") public void testStringPlus() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/stringPlus.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("stringPlusGeneric.kt") + public void testStringPlusGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("toStringCallingPrivateFun.kt") public void testToStringCallingPrivateFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("toStringCallingPrivateFunGeneric.kt") + public void testToStringCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("toStringOfUnboxedNullable.kt") public void testToStringOfUnboxedNullable() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("toStringOfUnboxedNullableGeneric.kt") + public void testToStringOfUnboxedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("typeChecksForInlineClasses.kt") public void testTypeChecksForInlineClasses() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("typeChecksForInlineClassesGeneric.kt") + public void testTypeChecksForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("UIntArraySortExample.kt") public void testUIntArraySortExample() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("UIntArraySortExampleGeneric.kt") + public void testUIntArraySortExampleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("UIntSafeAsInt.kt") public void testUIntSafeAsInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/UIntSafeAsInt.kt"); @@ -13377,21 +14032,41 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvoke.kt") public void testUnboxParameterOfSuspendLambdaBeforeInvoke() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvoke.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt") + public void testUnboxParameterOfSuspendLambdaBeforeInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("unboxReceiverOnCallingMethodFromInlineClass.kt") public void testUnboxReceiverOnCallingMethodFromInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("unboxReceiverOnCallingMethodFromInlineClassGeneric.kt") + public void testUnboxReceiverOnCallingMethodFromInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("unboxResultParameterWhenCapturingToCrossinlineLambda.kt") public void testUnboxResultParameterWhenCapturingToCrossinlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxResultParameterWhenCapturingToCrossinlineLambda.kt"); @@ -13402,31 +14077,61 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("unboxValueFromPlatformTypeGeneric.kt") + public void testUnboxValueFromPlatformTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt") public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("unboxValueOfAnyBeforeMethodInvocationGeneric.kt") + public void testUnboxValueOfAnyBeforeMethodInvocationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("useInlineClassesInsideElvisOperator.kt") public void testUseInlineClassesInsideElvisOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("useInlineClassesInsideElvisOperatorGeneric.kt") + public void testUseInlineClassesInsideElvisOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("useInlineFunctionInsideInlineClass.kt") public void testUseInlineFunctionInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("useInlineFunctionInsideInlineClassGeneric.kt") + public void testUseInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("useThisInsideInlineClass.kt") public void testUseThisInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("useThisInsideInlineClassGeneric.kt") + public void testUseThisInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("whenWithSubject.kt") public void testWhenWithSubject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubject.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("whenWithSubjectGeneric.kt") + public void testWhenWithSubjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -14562,10 +15267,25 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt"); } + @TestMetadata("defaultArgumentGeneric.kt") + public void testDefaultArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt"); + } + + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultGeneric.kt"); + } + @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simple.kt"); } + + @TestMetadata("simpleGeneric.kt") + public void testSimpleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simpleGeneric.kt"); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/funInterface") @@ -14589,6 +15309,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentIC.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("argumentICGeneric.kt") + public void testArgumentICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("argumentResult.kt") public void testArgumentResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentResult.kt"); @@ -14599,11 +15324,21 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappers.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("mangledSamWrappersGeneric.kt") + public void testMangledSamWrappersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("returnIC.kt") public void testReturnIC() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnIC.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("returnICGeneric.kt") + public void testReturnICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("returnResult.kt") public void testReturnResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnResult.kt"); @@ -14631,46 +15366,91 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("anonymousObjectInFunctionWithMangledNameGeneric.kt") + public void testAnonymousObjectInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("extensionFunctionsDoNotClash.kt") public void testExtensionFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("extensionFunctionsDoNotClashGeneric.kt") + public void testExtensionFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("functionsWithDifferentNullabilityDoNotClash.kt") public void testFunctionsWithDifferentNullabilityDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("functionsWithDifferentNullabilityDoNotClashGeneric.kt") + public void testFunctionsWithDifferentNullabilityDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("genericFunctionsDoNotClash.kt") public void testGenericFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("genericFunctionsDoNotClashGeneric.kt") + public void testGenericFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("localClassInFunctionWithMangledName.kt") public void testLocalClassInFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("localClassInFunctionWithMangledNameGeneric.kt") + public void testLocalClassInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("mangledFunctionsCanBeOverridden.kt") public void testMangledFunctionsCanBeOverridden() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverridden.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("mangledFunctionsCanBeOverriddenGeneric.kt") + public void testMangledFunctionsCanBeOverriddenGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("mangledFunctionsDoNotClash.kt") public void testMangledFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("mangledFunctionsDoNotClashGeneric.kt") + public void testMangledFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("mangledFunctionsPresentInStackTrace.kt") public void testMangledFunctionsPresentInStackTrace() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTrace.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("mangledFunctionsPresentInStackTraceGeneric.kt") + public void testMangledFunctionsPresentInStackTraceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("mixedSignatureFunctionsDoNotClash.kt") public void testMixedSignatureFunctionsDoNotClash() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("mixedSignatureFunctionsDoNotClashGeneric.kt") + public void testMixedSignatureFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("overridingMethodInGenericClass.kt") public void testOverridingMethodInGenericClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -14681,30 +15461,65 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("overridingMethodInGenericClass2Generic.kt") + public void testOverridingMethodInGenericClass2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @TestMetadata("overridingMethodInGenericClassGeneric.kt") + public void testOverridingMethodInGenericClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("propertySetterWithInlineClassTypeArgument.kt") public void testPropertySetterWithInlineClassTypeArgument() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgument.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("propertySetterWithInlineClassTypeArgumentGeneric.kt") + public void testPropertySetterWithInlineClassTypeArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("reflectionForFunctionWithMangledName.kt") public void testReflectionForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("reflectionForFunctionWithMangledNameGeneric.kt") + public void testReflectionForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("reflectionForPropertyOfInlineClassType.kt") public void testReflectionForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("reflectionForPropertyOfInlineClassTypeGeneric.kt") + public void testReflectionForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("syntheticAccessorForFunctionWithMangledName.kt") public void testSyntheticAccessorForFunctionWithMangledName() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("syntheticAccessorForFunctionWithMangledNameGeneric.kt") + public void testSyntheticAccessorForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("syntheticAccessorsForPropertyOfInlineClassType.kt") public void testSyntheticAccessorsForPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @TestMetadata("syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt") + public void testSyntheticAccessorsForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue") @@ -14751,41 +15566,81 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("constructorReferencedFromOtherFile1Generic.kt") + public void testConstructorReferencedFromOtherFile1Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("constructorReferencedFromOtherFile2.kt") public void testConstructorReferencedFromOtherFile2() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("constructorReferencedFromOtherFile2Generic.kt") + public void testConstructorReferencedFromOtherFile2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("constructorWithDefaultParameters.kt") public void testConstructorWithDefaultParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("constructorWithDefaultParametersGeneric.kt") + public void testConstructorWithDefaultParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("delegatingSuperConstructorCall.kt") public void testDelegatingSuperConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("delegatingSuperConstructorCallGeneric.kt") + public void testDelegatingSuperConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructor.kt") public void testDelegatingSuperConstructorCallInSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt") + public void testDelegatingSuperConstructorCallInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("delegatingThisConstructorCall.kt") public void testDelegatingThisConstructorCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("delegatingThisConstructorCallGeneric.kt") + public void testDelegatingThisConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("enumClassConstructor.kt") public void testEnumClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("enumClassConstructorGeneric.kt") + public void testEnumClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("innerClassConstructor.kt") public void testInnerClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("innerClassConstructorGeneric.kt") + public void testInnerClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt28855.kt") public void testKt28855() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/kt28855.kt"); @@ -14796,20 +15651,40 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("primaryConstructorGeneric.kt") + public void testPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("privateConstructor.kt") public void testPrivateConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("privateConstructorGeneric.kt") + public void testPrivateConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("sealedClassConstructor.kt") public void testSealedClassConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("sealedClassConstructorGeneric.kt") + public void testSealedClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("secondaryConstructor.kt") public void testSecondaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @TestMetadata("secondaryConstructorGeneric.kt") + public void testSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/inlineClassCollection") @@ -14833,15 +15708,30 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineCollectionOfInlineClassGeneric.kt") + public void testInlineCollectionOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineListOfInlineClass.kt") public void testInlineListOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineListOfInlineClassGeneric.kt") + public void testInlineListOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineMapOfInlineClass.kt") public void testInlineMapOfInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @TestMetadata("inlineMapOfInlineClassGeneric.kt") + public void testInlineMapOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/interfaceDelegation") @@ -14865,16 +15755,31 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("interfaceImplementationByDelegationGeneric.kt") + public void testInterfaceImplementationByDelegationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt38337.kt") public void testKt38337() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt38337Generic.kt") + public void testKt38337Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypes.kt") public void testMemberExtValDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberExtValDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("memberExtVarDelegationWithInlineClassParameterTypes.kt") public void testMemberExtVarDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -14885,20 +15790,40 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("memberFunDelegatedToInlineClassIntGeneric.kt") + public void testMemberFunDelegatedToInlineClassIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("memberFunDelegatedToInlineClassLong.kt") public void testMemberFunDelegatedToInlineClassLong() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLong.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("memberFunDelegatedToInlineClassLongGeneric.kt") + public void testMemberFunDelegatedToInlineClassLongGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt") public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("memberFunDelegationWithInlineClassParameterTypes.kt") public void testMemberFunDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @TestMetadata("memberFunDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls") @@ -14927,50 +15852,105 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("complexGenericMethodWithInlineClassOverride2Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("complexGenericMethodWithInlineClassOverride3.kt") public void testComplexGenericMethodWithInlineClassOverride3() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("complexGenericMethodWithInlineClassOverride3Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride3Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @TestMetadata("complexGenericMethodWithInlineClassOverrideGeneric.kt") + public void testComplexGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("defaultInterfaceExtensionFunCall.kt") public void testDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("defaultInterfaceExtensionFunCallGeneric.kt") + public void testDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("defaultInterfaceMethodCall.kt") public void testDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("defaultInterfaceMethodCallGeneric.kt") + public void testDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("genericDefaultInterfaceExtensionFunCall.kt") public void testGenericDefaultInterfaceExtensionFunCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("genericDefaultInterfaceExtensionFunCallGeneric.kt") + public void testGenericDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("genericDefaultInterfaceMethodCall.kt") public void testGenericDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("genericDefaultInterfaceMethodCallGeneric.kt") + public void testGenericDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("genericInterfaceMethodCall.kt") public void testGenericInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("genericInterfaceMethodCallGeneric.kt") + public void testGenericInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("genericMethodWithInlineClassOverride.kt") public void testGenericMethodWithInlineClassOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("genericMethodWithInlineClassOverrideGeneric.kt") + public void testGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("interfaceSuperCall.kt") public void testInterfaceSuperCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("interfaceSuperCallGeneric.kt") + public void testInterfaceSuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("overriddenDefaultInterfaceMethodCall.kt") public void testOverriddenDefaultInterfaceMethodCall() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @TestMetadata("overriddenDefaultInterfaceMethodCallGeneric.kt") + public void testOverriddenDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/javaInterop") @@ -15020,55 +16000,110 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("captureLocalVarDelegatedToInlineClassGeneric.kt") + public void testCaptureLocalVarDelegatedToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("delegateClassVarToInlineClass.kt") public void testDelegateClassVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("delegateClassVarToInlineClassGeneric.kt") + public void testDelegateClassVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("delegateClassVarToInlineClassWithProvideDelegate.kt") public void testDelegateClassVarToInlineClassWithProvideDelegate() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegate.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("delegateClassVarToInlineClassWithProvideDelegateGeneric.kt") + public void testDelegateClassVarToInlineClassWithProvideDelegateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("delegateCompanionVarToInlineClass.kt") public void testDelegateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("delegateCompanionVarToInlineClassGeneric.kt") + public void testDelegateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("delegateLocalVarToInlineClass.kt") public void testDelegateLocalVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("delegateLocalVarToInlineClassGeneric.kt") + public void testDelegateLocalVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("delegateObjectVarToInlineClass.kt") public void testDelegateObjectVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("delegateObjectVarToInlineClassGeneric.kt") + public void testDelegateObjectVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("delegatePrivateCompanionVarToInlineClass.kt") public void testDelegatePrivateCompanionVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("delegatePrivateCompanionVarToInlineClassGeneric.kt") + public void testDelegatePrivateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("delegateTopLevelVarToInlineClass.kt") public void testDelegateTopLevelVarToInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("delegateTopLevelVarToInlineClassGeneric.kt") + public void testDelegateTopLevelVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("delegatedPropertyOfInlineClassType.kt") public void testDelegatedPropertyOfInlineClassType() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("delegatedPropertyOfInlineClassTypeGeneric.kt") + public void testDelegatedPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27070.kt") public void testKt27070() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27070Generic.kt") + public void testKt27070Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt42933.kt") public void testKt42933() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @TestMetadata("kt42933Generic.kt") + public void testKt42933Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/result") @@ -15200,11 +16235,21 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/iface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -15215,6 +16260,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/nullableResult.kt"); @@ -15225,6 +16280,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("result.kt") public void testResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/result.kt"); @@ -15235,10 +16295,20 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda") @@ -15262,11 +16332,21 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/iface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -15277,6 +16357,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/nullableResult.kt"); @@ -15287,6 +16377,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("result.kt") public void testResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/result.kt"); @@ -15297,10 +16392,20 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral") @@ -15324,11 +16429,21 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -15339,6 +16454,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/nullableResult.kt"); @@ -15349,6 +16474,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("result.kt") public void testResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/result.kt"); @@ -15359,10 +16489,20 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } } } diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java index 5f05cd64e69..e3d9912062e 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java @@ -15964,167 +15964,308 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class InlineClasses { public InlineClasses() { register("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunction.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlock.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverride.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSet.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVars.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callComputablePropertyInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClasses.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpression.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctions.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperator.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchy.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturns.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClasses.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCalls.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignments.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/classInInlineClassInit.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/computablePropertyInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethod.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/constructorCallableReference.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressions.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPosition.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameter.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/customIterator.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgument.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstant.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullability.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalityChecksNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgument.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/funInterfaceDoubleSuffux.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/funInterfaceDoubleSuffux2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionExpression.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/genericInlineClassSynthMembers.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/genericVararg2ndConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/initBlock.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandling.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvoke.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlock.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplate.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSet.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStrings.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCast.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValues.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/jvmInline.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt25246.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt25750.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt25771.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt26103.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt26103_contravariantUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt26103_covariantUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt26103_original.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27096.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27096_enum.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27096_functional.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27096_innerClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReference.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27096_primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27096_reference.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27113.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27113a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27132.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27140.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27705.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt27706.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt28405.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt33119.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt37998.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt38680.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt38680a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt38680b.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt44978.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt45084.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt45991.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt46554.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/kt47762.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/mangledSuperCalls.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/nestedInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/nullableWrapperEquality.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVararg.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargs.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModule.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrder.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/removeInInlineCollectionOfInlineClassAsInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/result.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/resultGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/resultRunCatchingOrElse.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBound.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModule.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVararg.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/stringPlus.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvoke.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/whenWithSubject.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -16139,6 +16280,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt"); } + @Test + @TestMetadata("annotatedMemberExtensionPropertyGeneric.kt") + public void testAnnotatedMemberExtensionPropertyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt"); + } + @Test @TestMetadata("anySuperCall.kt") public void testAnySuperCall() throws Exception { @@ -16146,6 +16294,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt"); } + @Test + @TestMetadata("anySuperCallGeneric.kt") + public void testAnySuperCallGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt"); + } + @Test @TestMetadata("boundCallableReferencePassedToInlineFunction.kt") public void testBoundCallableReferencePassedToInlineFunction() throws Exception { @@ -16153,6 +16308,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunction.kt"); } + @Test + @TestMetadata("boundCallableReferencePassedToInlineFunctionGeneric.kt") + public void testBoundCallableReferencePassedToInlineFunctionGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt"); + } + @Test @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructor.kt") public void testBoxImplDoesNotExecuteInSecondaryConstructor() throws Exception { @@ -16160,6 +16322,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructor.kt"); } + @Test + @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt") + public void testBoxImplDoesNotExecuteInSecondaryConstructorGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt"); + } + @Test @TestMetadata("boxImplDoesNotExecuteInitBlock.kt") public void testBoxImplDoesNotExecuteInitBlock() throws Exception { @@ -16167,6 +16336,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlock.kt"); } + @Test + @TestMetadata("boxImplDoesNotExecuteInitBlockGeneric.kt") + public void testBoxImplDoesNotExecuteInitBlockGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt"); + } + @Test @TestMetadata("boxNullableForFakeOverride.kt") public void testBoxNullableForFakeOverride() throws Exception { @@ -16174,6 +16350,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverride.kt"); } + @Test + @TestMetadata("boxNullableForFakeOverrideGeneric.kt") + public void testBoxNullableForFakeOverrideGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt"); + } + @Test @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingType() throws Exception { @@ -16181,6 +16364,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt"); } + @Test + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt"); + } + @Test @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { @@ -16188,6 +16378,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt"); } + @Test + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt"); + } + @Test @TestMetadata("boxResultInlineClassOfConstructorCall.kt") public void testBoxResultInlineClassOfConstructorCall() throws Exception { @@ -16195,6 +16392,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCall.kt"); } + @Test + @TestMetadata("boxResultInlineClassOfConstructorCallGeneric.kt") + public void testBoxResultInlineClassOfConstructorCallGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt"); + } + @Test @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSet.kt") public void testBoxUnboxInlineClassesWithOperatorsGetSet() throws Exception { @@ -16202,6 +16406,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSet.kt"); } + @Test + @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt") + public void testBoxUnboxInlineClassesWithOperatorsGetSetGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt"); + } + @Test @TestMetadata("boxUnboxOfInlineClassForCapturedVars.kt") public void testBoxUnboxOfInlineClassForCapturedVars() throws Exception { @@ -16209,6 +16420,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVars.kt"); } + @Test + @TestMetadata("boxUnboxOfInlineClassForCapturedVarsGeneric.kt") + public void testBoxUnboxOfInlineClassForCapturedVarsGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt"); + } + @Test @TestMetadata("bridgeForFunctionReturningInlineClass.kt") public void testBridgeForFunctionReturningInlineClass() throws Exception { @@ -16216,6 +16434,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClass.kt"); } + @Test + @TestMetadata("bridgeForFunctionReturningInlineClassGeneric.kt") + public void testBridgeForFunctionReturningInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt"); + } + @Test @TestMetadata("bridgeGenerationWithInlineClassOverAny.kt") public void testBridgeGenerationWithInlineClassOverAny() throws Exception { @@ -16223,6 +16448,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAny.kt"); } + @Test + @TestMetadata("bridgeGenerationWithInlineClassOverAnyGeneric.kt") + public void testBridgeGenerationWithInlineClassOverAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt"); + } + @Test @TestMetadata("bridgesWhenInlineClassImplementsGenericInterface.kt") public void testBridgesWhenInlineClassImplementsGenericInterface() throws Exception { @@ -16230,6 +16462,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterface.kt"); } + @Test + @TestMetadata("bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt") + public void testBridgesWhenInlineClassImplementsGenericInterfaceGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt"); + } + @Test @TestMetadata("callComputablePropertyInsideInlineClass.kt") public void testCallComputablePropertyInsideInlineClass() throws Exception { @@ -16244,6 +16483,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClasses.kt"); } + @Test + @TestMetadata("callableReferencesWithInlineClassesGeneric.kt") + public void testCallableReferencesWithInlineClassesGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt"); + } + @Test @TestMetadata("castInsideWhenExpression.kt") public void testCastInsideWhenExpression() throws Exception { @@ -16251,6 +16497,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpression.kt"); } + @Test + @TestMetadata("castInsideWhenExpressionGeneric.kt") + public void testCastInsideWhenExpressionGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt"); + } + @Test @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctions.kt") public void testCheckBoxUnboxOfArgumentsOnInlinedFunctions() throws Exception { @@ -16258,6 +16511,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctions.kt"); } + @Test + @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt") + public void testCheckBoxUnboxOfArgumentsOnInlinedFunctionsGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt"); + } + @Test @TestMetadata("checkBoxingAfterAssertionOperator.kt") public void testCheckBoxingAfterAssertionOperator() throws Exception { @@ -16265,6 +16525,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperator.kt"); } + @Test + @TestMetadata("checkBoxingAfterAssertionOperatorGeneric.kt") + public void testCheckBoxingAfterAssertionOperatorGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt"); + } + @Test @TestMetadata("checkBoxingForComplexClassHierarchy.kt") public void testCheckBoxingForComplexClassHierarchy() throws Exception { @@ -16272,6 +16539,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchy.kt"); } + @Test + @TestMetadata("checkBoxingForComplexClassHierarchyGeneric.kt") + public void testCheckBoxingForComplexClassHierarchyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt"); + } + @Test @TestMetadata("checkBoxingForNonLocalAndLabeledReturns.kt") public void testCheckBoxingForNonLocalAndLabeledReturns() throws Exception { @@ -16279,6 +16553,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturns.kt"); } + @Test + @TestMetadata("checkBoxingForNonLocalAndLabeledReturnsGeneric.kt") + public void testCheckBoxingForNonLocalAndLabeledReturnsGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt"); + } + @Test @TestMetadata("checkBoxingFromReturnTypeForInlineClasses.kt") public void testCheckBoxingFromReturnTypeForInlineClasses() throws Exception { @@ -16286,6 +16567,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClasses.kt"); } + @Test + @TestMetadata("checkBoxingFromReturnTypeForInlineClassesGeneric.kt") + public void testCheckBoxingFromReturnTypeForInlineClassesGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt"); + } + @Test @TestMetadata("checkBoxingOnFunctionCalls.kt") public void testCheckBoxingOnFunctionCalls() throws Exception { @@ -16293,6 +16581,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCalls.kt"); } + @Test + @TestMetadata("checkBoxingOnFunctionCallsGeneric.kt") + public void testCheckBoxingOnFunctionCallsGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt"); + } + @Test @TestMetadata("checkBoxingOnLocalVariableAssignments.kt") public void testCheckBoxingOnLocalVariableAssignments() throws Exception { @@ -16300,6 +16595,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignments.kt"); } + @Test + @TestMetadata("checkBoxingOnLocalVariableAssignmentsGeneric.kt") + public void testCheckBoxingOnLocalVariableAssignmentsGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt"); + } + @Test @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt") public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctions() throws Exception { @@ -16307,6 +16609,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt"); } + @Test + @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt") + public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt"); + } + @Test @TestMetadata("checkCallingMembersInsideInlineClass.kt") public void testCheckCallingMembersInsideInlineClass() throws Exception { @@ -16314,6 +16623,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClass.kt"); } + @Test + @TestMetadata("checkCallingMembersInsideInlineClassGeneric.kt") + public void testCheckCallingMembersInsideInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt"); + } + @Test @TestMetadata("checkCastToInlineClass.kt") public void testCheckCastToInlineClass() throws Exception { @@ -16321,6 +16637,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClass.kt"); } + @Test + @TestMetadata("checkCastToInlineClassGeneric.kt") + public void testCheckCastToInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt"); + } + @Test @TestMetadata("checkForInstanceOfInlineClass.kt") public void testCheckForInstanceOfInlineClass() throws Exception { @@ -16328,6 +16651,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClass.kt"); } + @Test + @TestMetadata("checkForInstanceOfInlineClassGeneric.kt") + public void testCheckForInstanceOfInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt"); + } + @Test @TestMetadata("checkLambdaWithInlineClassesInFunctionalType.kt") public void testCheckLambdaWithInlineClassesInFunctionalType() throws Exception { @@ -16335,6 +16665,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalType.kt"); } + @Test + @TestMetadata("checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt") + public void testCheckLambdaWithInlineClassesInFunctionalTypeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt"); + } + @Test @TestMetadata("checkUnboxingResultFromTypeVariable.kt") public void testCheckUnboxingResultFromTypeVariable() throws Exception { @@ -16342,6 +16679,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariable.kt"); } + @Test + @TestMetadata("checkUnboxingResultFromTypeVariableGeneric.kt") + public void testCheckUnboxingResultFromTypeVariableGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt"); + } + @Test @TestMetadata("classInInlineClassInit.kt") public void testClassInInlineClassInit() throws Exception { @@ -16349,6 +16693,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInit.kt"); } + @Test + @TestMetadata("classInInlineClassInitGeneric.kt") + public void testClassInInlineClassInitGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt"); + } + @Test @TestMetadata("computablePropertyInsideInlineClass.kt") public void testComputablePropertyInsideInlineClass() throws Exception { @@ -16363,6 +16714,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethod.kt"); } + @Test + @TestMetadata("conformToComparableAndCallInterfaceMethodGeneric.kt") + public void testConformToComparableAndCallInterfaceMethodGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt"); + } + @Test @TestMetadata("constructorCallableReference.kt") public void testConstructorCallableReference() throws Exception { @@ -16370,6 +16728,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReference.kt"); } + @Test + @TestMetadata("constructorCallableReferenceGeneric.kt") + public void testConstructorCallableReferenceGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt"); + } + @Test @TestMetadata("correctBoxingForBranchExpressions.kt") public void testCorrectBoxingForBranchExpressions() throws Exception { @@ -16377,6 +16742,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressions.kt"); } + @Test + @TestMetadata("correctBoxingForBranchExpressionsGeneric.kt") + public void testCorrectBoxingForBranchExpressionsGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt"); + } + @Test @TestMetadata("createInlineClassInArgumentPosition.kt") public void testCreateInlineClassInArgumentPosition() throws Exception { @@ -16384,6 +16756,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPosition.kt"); } + @Test + @TestMetadata("createInlineClassInArgumentPositionGeneric.kt") + public void testCreateInlineClassInArgumentPositionGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt"); + } + @Test @TestMetadata("crossinlineWithInlineClassInParameter.kt") public void testCrossinlineWithInlineClassInParameter() throws Exception { @@ -16391,6 +16770,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameter.kt"); } + @Test + @TestMetadata("crossinlineWithInlineClassInParameterGeneric.kt") + public void testCrossinlineWithInlineClassInParameterGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt"); + } + @Test @TestMetadata("customIterator.kt") public void testCustomIterator() throws Exception { @@ -16405,6 +16791,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClass.kt"); } + @Test + @TestMetadata("defaultFunctionsFromAnyForInlineClassGeneric.kt") + public void testDefaultFunctionsFromAnyForInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt"); + } + @Test @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") public void testDefaultInterfaceMethodsInInlineClass() throws Exception { @@ -16412,6 +16805,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClass.kt"); } + @Test + @TestMetadata("defaultInterfaceMethodsInInlineClassGeneric.kt") + public void testDefaultInterfaceMethodsInInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt"); + } + @Test @TestMetadata("defaultWithInlineClassArgument.kt") public void testDefaultWithInlineClassArgument() throws Exception { @@ -16419,6 +16819,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgument.kt"); } + @Test + @TestMetadata("defaultWithInlineClassArgumentGeneric.kt") + public void testDefaultWithInlineClassArgumentGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt"); + } + @Test @TestMetadata("elvisWithInlineClassAndNullConstant.kt") public void testElvisWithInlineClassAndNullConstant() throws Exception { @@ -16426,6 +16833,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstant.kt"); } + @Test + @TestMetadata("elvisWithInlineClassAndNullConstantGeneric.kt") + public void testElvisWithInlineClassAndNullConstantGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt"); + } + @Test @TestMetadata("emptyConstructorForInlineClass.kt") public void testEmptyConstructorForInlineClass() throws Exception { @@ -16433,6 +16847,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClass.kt"); } + @Test + @TestMetadata("emptyConstructorForInlineClassGeneric.kt") + public void testEmptyConstructorForInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt"); + } + @Test @TestMetadata("equalityChecksInlineClassNonNull.kt") public void testEqualityChecksInlineClassNonNull() throws Exception { @@ -16440,6 +16861,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNull.kt"); } + @Test + @TestMetadata("equalityChecksInlineClassNonNullGeneric.kt") + public void testEqualityChecksInlineClassNonNullGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt"); + } + @Test @TestMetadata("equalityChecksMixedNullability.kt") public void testEqualityChecksMixedNullability() throws Exception { @@ -16447,6 +16875,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullability.kt"); } + @Test + @TestMetadata("equalityChecksMixedNullabilityGeneric.kt") + public void testEqualityChecksMixedNullabilityGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt"); + } + @Test @TestMetadata("equalityChecksNegatedInlineClassNonNull.kt") public void testEqualityChecksNegatedInlineClassNonNull() throws Exception { @@ -16454,6 +16889,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNull.kt"); } + @Test + @TestMetadata("equalityChecksNegatedInlineClassNonNullGeneric.kt") + public void testEqualityChecksNegatedInlineClassNonNullGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt"); + } + @Test @TestMetadata("equalityChecksNegatedNonNull.kt") public void testEqualityChecksNegatedNonNull() throws Exception { @@ -16461,6 +16903,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNull.kt"); } + @Test + @TestMetadata("equalityChecksNegatedNonNullGeneric.kt") + public void testEqualityChecksNegatedNonNullGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt"); + } + @Test @TestMetadata("equalityChecksNegatedNullable.kt") public void testEqualityChecksNegatedNullable() throws Exception { @@ -16468,6 +16917,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullable.kt"); } + @Test + @TestMetadata("equalityChecksNegatedNullableGeneric.kt") + public void testEqualityChecksNegatedNullableGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt"); + } + @Test @TestMetadata("equalityChecksNegatedPrimitive.kt") public void testEqualityChecksNegatedPrimitive() throws Exception { @@ -16475,6 +16931,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitive.kt"); } + @Test + @TestMetadata("equalityChecksNegatedPrimitiveGeneric.kt") + public void testEqualityChecksNegatedPrimitiveGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt"); + } + @Test @TestMetadata("equalityChecksNonNull.kt") public void testEqualityChecksNonNull() throws Exception { @@ -16482,6 +16945,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNull.kt"); } + @Test + @TestMetadata("equalityChecksNonNullGeneric.kt") + public void testEqualityChecksNonNullGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt"); + } + @Test @TestMetadata("equalityChecksNullable.kt") public void testEqualityChecksNullable() throws Exception { @@ -16489,6 +16959,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullable.kt"); } + @Test + @TestMetadata("equalityChecksNullableGeneric.kt") + public void testEqualityChecksNullableGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt"); + } + @Test @TestMetadata("equalityChecksPrimitive.kt") public void testEqualityChecksPrimitive() throws Exception { @@ -16496,6 +16973,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitive.kt"); } + @Test + @TestMetadata("equalityChecksPrimitiveGeneric.kt") + public void testEqualityChecksPrimitiveGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt"); + } + @Test @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClass.kt") public void testEqualityForBoxesOfNullableValuesOfInlineClass() throws Exception { @@ -16503,6 +16987,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClass.kt"); } + @Test + @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt") + public void testEqualityForBoxesOfNullableValuesOfInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt"); + } + @Test @TestMetadata("equalsCallsLeftArgument.kt") public void testEqualsCallsLeftArgument() throws Exception { @@ -16510,6 +17001,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgument.kt"); } + @Test + @TestMetadata("equalsCallsLeftArgumentGeneric.kt") + public void testEqualsCallsLeftArgumentGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt"); + } + @Test @TestMetadata("equalsEvaluationOrderInlineClass.kt") public void testEqualsEvaluationOrderInlineClass() throws Exception { @@ -16517,6 +17015,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClass.kt"); } + @Test + @TestMetadata("equalsEvaluationOrderInlineClassGeneric.kt") + public void testEqualsEvaluationOrderInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt"); + } + @Test @TestMetadata("equalsEvaluationOrderNonNull.kt") public void testEqualsEvaluationOrderNonNull() throws Exception { @@ -16524,6 +17029,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNull.kt"); } + @Test + @TestMetadata("equalsEvaluationOrderNonNullGeneric.kt") + public void testEqualsEvaluationOrderNonNullGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt"); + } + @Test @TestMetadata("equalsEvaluationOrderNullable.kt") public void testEqualsEvaluationOrderNullable() throws Exception { @@ -16531,6 +17043,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullable.kt"); } + @Test + @TestMetadata("equalsEvaluationOrderNullableGeneric.kt") + public void testEqualsEvaluationOrderNullableGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt"); + } + @Test @TestMetadata("equalsEvaluationOrderPrimitive.kt") public void testEqualsEvaluationOrderPrimitive() throws Exception { @@ -16538,6 +17057,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitive.kt"); } + @Test + @TestMetadata("equalsEvaluationOrderPrimitiveGeneric.kt") + public void testEqualsEvaluationOrderPrimitiveGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt"); + } + @Test @TestMetadata("equalsOperatorWithGenericCall.kt") public void testEqualsOperatorWithGenericCall() throws Exception { @@ -16545,6 +17071,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCall.kt"); } + @Test + @TestMetadata("equalsOperatorWithGenericCallGeneric.kt") + public void testEqualsOperatorWithGenericCallGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt"); + } + @Test @TestMetadata("extLambdaInInlineClassFun.kt") public void testExtLambdaInInlineClassFun() throws Exception { @@ -16559,6 +17092,20 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2.kt"); } + @Test + @TestMetadata("extLambdaInInlineClassFun2Generic.kt") + public void testExtLambdaInInlineClassFun2Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt"); + } + + @Test + @TestMetadata("extLambdaInInlineClassFunGeneric.kt") + public void testExtLambdaInInlineClassFunGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt"); + } + @Test @TestMetadata("fieldNameClash.kt") public void testFieldNameClash() throws Exception { @@ -16566,6 +17113,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt"); } + @Test + @TestMetadata("fieldNameClashGeneric.kt") + public void testFieldNameClashGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt"); + } + @Test @TestMetadata("funInterfaceDoubleSuffux.kt") public void testFunInterfaceDoubleSuffux() throws Exception { @@ -16587,6 +17141,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionExpression.kt"); } + @Test + @TestMetadata("functionExpressionGeneric.kt") + public void testFunctionExpressionGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt"); + } + @Test @TestMetadata("genericInlineClassSynthMembers.kt") public void testGenericInlineClassSynthMembers() throws Exception { @@ -16608,6 +17169,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/initBlock.kt"); } + @Test + @TestMetadata("initBlockGeneric.kt") + public void testInitBlockGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt"); + } + @Test @TestMetadata("inlineClassAsLastExpressionInInLambda.kt") public void testInlineClassAsLastExpressionInInLambda() throws Exception { @@ -16615,6 +17183,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambda.kt"); } + @Test + @TestMetadata("inlineClassAsLastExpressionInInLambdaGeneric.kt") + public void testInlineClassAsLastExpressionInInLambdaGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt"); + } + @Test @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt") public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointData() throws Exception { @@ -16622,6 +17197,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt"); } + @Test + @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt") + public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt"); + } + @Test @TestMetadata("inlineClassFieldHandling.kt") public void testInlineClassFieldHandling() throws Exception { @@ -16629,6 +17211,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandling.kt"); } + @Test + @TestMetadata("inlineClassFieldHandlingGeneric.kt") + public void testInlineClassFieldHandlingGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt"); + } + @Test @TestMetadata("inlineClassFunctionInvoke.kt") public void testInlineClassFunctionInvoke() throws Exception { @@ -16636,6 +17225,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvoke.kt"); } + @Test + @TestMetadata("inlineClassFunctionInvokeGeneric.kt") + public void testInlineClassFunctionInvokeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt"); + } + @Test @TestMetadata("inlineClassInInitBlock.kt") public void testInlineClassInInitBlock() throws Exception { @@ -16643,6 +17239,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlock.kt"); } + @Test + @TestMetadata("inlineClassInInitBlockGeneric.kt") + public void testInlineClassInInitBlockGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt"); + } + @Test @TestMetadata("inlineClassInStringTemplate.kt") public void testInlineClassInStringTemplate() throws Exception { @@ -16650,6 +17253,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplate.kt"); } + @Test + @TestMetadata("inlineClassInStringTemplateGeneric.kt") + public void testInlineClassInStringTemplateGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt"); + } + @Test @TestMetadata("inlineClassPropertyReferenceGetAndSet.kt") public void testInlineClassPropertyReferenceGetAndSet() throws Exception { @@ -16657,6 +17267,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSet.kt"); } + @Test + @TestMetadata("inlineClassPropertyReferenceGetAndSetGeneric.kt") + public void testInlineClassPropertyReferenceGetAndSetGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt"); + } + @Test @TestMetadata("inlineClassValueCapturedInInlineLambda.kt") public void testInlineClassValueCapturedInInlineLambda() throws Exception { @@ -16664,6 +17281,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambda.kt"); } + @Test + @TestMetadata("inlineClassValueCapturedInInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInInlineLambdaGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt"); + } + @Test @TestMetadata("inlineClassValueCapturedInNonInlineLambda.kt") public void testInlineClassValueCapturedInNonInlineLambda() throws Exception { @@ -16671,6 +17295,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambda.kt"); } + @Test + @TestMetadata("inlineClassValueCapturedInNonInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInNonInlineLambdaGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt"); + } + @Test @TestMetadata("inlineClassValuesInsideStrings.kt") public void testInlineClassValuesInsideStrings() throws Exception { @@ -16678,6 +17309,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStrings.kt"); } + @Test + @TestMetadata("inlineClassValuesInsideStringsGeneric.kt") + public void testInlineClassValuesInsideStringsGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt"); + } + @Test @TestMetadata("inlineClassWithCustomEquals.kt") public void testInlineClassWithCustomEquals() throws Exception { @@ -16685,6 +17323,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt"); } + @Test + @TestMetadata("inlineClassWithCustomEqualsGeneric.kt") + public void testInlineClassWithCustomEqualsGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt"); + } + @Test @TestMetadata("inlineClassWithDefaultFunctionsFromAny.kt") public void testInlineClassWithDefaultFunctionsFromAny() throws Exception { @@ -16692,6 +17337,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAny.kt"); } + @Test + @TestMetadata("inlineClassWithDefaultFunctionsFromAnyGeneric.kt") + public void testInlineClassWithDefaultFunctionsFromAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt"); + } + @Test @TestMetadata("inlineClassesAsInlineFunParameters.kt") public void testInlineClassesAsInlineFunParameters() throws Exception { @@ -16699,6 +17351,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParameters.kt"); } + @Test + @TestMetadata("inlineClassesAsInlineFunParametersGeneric.kt") + public void testInlineClassesAsInlineFunParametersGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt"); + } + @Test @TestMetadata("inlineClassesCheckCast.kt") public void testInlineClassesCheckCast() throws Exception { @@ -16706,6 +17365,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCast.kt"); } + @Test + @TestMetadata("inlineClassesCheckCastGeneric.kt") + public void testInlineClassesCheckCastGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt"); + } + @Test @TestMetadata("inlineClassesInInlineLambdaParameters.kt") public void testInlineClassesInInlineLambdaParameters() throws Exception { @@ -16713,6 +17379,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParameters.kt"); } + @Test + @TestMetadata("inlineClassesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesInInlineLambdaParametersGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt"); + } + @Test @TestMetadata("inlineClassesRefTypesInInlineLambdaParameters.kt") public void testInlineClassesRefTypesInInlineLambdaParameters() throws Exception { @@ -16720,6 +17393,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParameters.kt"); } + @Test + @TestMetadata("inlineClassesRefTypesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesRefTypesInInlineLambdaParametersGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt"); + } + @Test @TestMetadata("inlineExtLambdaInInlineClassFun.kt") public void testInlineExtLambdaInInlineClassFun() throws Exception { @@ -16734,6 +17414,20 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2.kt"); } + @Test + @TestMetadata("inlineExtLambdaInInlineClassFun2Generic.kt") + public void testInlineExtLambdaInInlineClassFun2Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt"); + } + + @Test + @TestMetadata("inlineExtLambdaInInlineClassFunGeneric.kt") + public void testInlineExtLambdaInInlineClassFunGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt"); + } + @Test @TestMetadata("inlineFunctionInsideInlineClass.kt") public void testInlineFunctionInsideInlineClass() throws Exception { @@ -16741,6 +17435,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClass.kt"); } + @Test + @TestMetadata("inlineFunctionInsideInlineClassGeneric.kt") + public void testInlineFunctionInsideInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt"); + } + @Test @TestMetadata("iterateOverArrayOfInlineClassValues.kt") public void testIterateOverArrayOfInlineClassValues() throws Exception { @@ -16748,6 +17449,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValues.kt"); } + @Test + @TestMetadata("iterateOverArrayOfInlineClassValuesGeneric.kt") + public void testIterateOverArrayOfInlineClassValuesGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt"); + } + @Test @TestMetadata("iterateOverListOfInlineClassValues.kt") public void testIterateOverListOfInlineClassValues() throws Exception { @@ -16755,6 +17463,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt"); } + @Test + @TestMetadata("iterateOverListOfInlineClassValuesGeneric.kt") + public void testIterateOverListOfInlineClassValuesGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt"); + } + @Test @TestMetadata("jvmInline.kt") public void testJvmInline() throws Exception { @@ -16776,6 +17491,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt25750.kt"); } + @Test + @TestMetadata("kt25750Generic.kt") + public void testKt25750Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt"); + } + @Test @TestMetadata("kt25771.kt") public void testKt25771() throws Exception { @@ -16818,6 +17540,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt27096.kt"); } + @Test + @TestMetadata("kt27096Generic.kt") + public void testKt27096Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt"); + } + @Test @TestMetadata("kt27096_enum.kt") public void testKt27096_enum() throws Exception { @@ -16825,6 +17554,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enum.kt"); } + @Test + @TestMetadata("kt27096_enumGeneric.kt") + public void testKt27096_enumGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt"); + } + @Test @TestMetadata("kt27096_functional.kt") public void testKt27096_functional() throws Exception { @@ -16832,6 +17568,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functional.kt"); } + @Test + @TestMetadata("kt27096_functionalGeneric.kt") + public void testKt27096_functionalGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt"); + } + @Test @TestMetadata("kt27096_innerClass.kt") public void testKt27096_innerClass() throws Exception { @@ -16846,6 +17589,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitive.kt"); } + @Test + @TestMetadata("kt27096_nullablePrimitiveGeneric.kt") + public void testKt27096_nullablePrimitiveGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt"); + } + @Test @TestMetadata("kt27096_nullableReference.kt") public void testKt27096_nullableReference() throws Exception { @@ -16853,6 +17603,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReference.kt"); } + @Test + @TestMetadata("kt27096_nullableReferenceGeneric.kt") + public void testKt27096_nullableReferenceGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt"); + } + @Test @TestMetadata("kt27096_primitive.kt") public void testKt27096_primitive() throws Exception { @@ -16860,6 +17617,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitive.kt"); } + @Test + @TestMetadata("kt27096_primitiveGeneric.kt") + public void testKt27096_primitiveGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt"); + } + @Test @TestMetadata("kt27096_reference.kt") public void testKt27096_reference() throws Exception { @@ -16867,6 +17631,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt27096_reference.kt"); } + @Test + @TestMetadata("kt27096_referenceGeneric.kt") + public void testKt27096_referenceGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt"); + } + @Test @TestMetadata("kt27113.kt") public void testKt27113() throws Exception { @@ -16881,6 +17652,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt27113a.kt"); } + @Test + @TestMetadata("kt27113aGeneric.kt") + public void testKt27113aGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt"); + } + @Test @TestMetadata("kt27132.kt") public void testKt27132() throws Exception { @@ -16888,6 +17666,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt27132.kt"); } + @Test + @TestMetadata("kt27132Generic.kt") + public void testKt27132Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt"); + } + @Test @TestMetadata("kt27140.kt") public void testKt27140() throws Exception { @@ -16895,6 +17680,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt27140.kt"); } + @Test + @TestMetadata("kt27140Generic.kt") + public void testKt27140Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt"); + } + @Test @TestMetadata("kt27705.kt") public void testKt27705() throws Exception { @@ -16902,6 +17694,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt27705.kt"); } + @Test + @TestMetadata("kt27705Generic.kt") + public void testKt27705Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt"); + } + @Test @TestMetadata("kt27706.kt") public void testKt27706() throws Exception { @@ -16909,6 +17708,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt27706.kt"); } + @Test + @TestMetadata("kt27706Generic.kt") + public void testKt27706Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt"); + } + @Test @TestMetadata("kt28405.kt") public void testKt28405() throws Exception { @@ -16941,6 +17747,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt33119.kt"); } + @Test + @TestMetadata("kt33119Generic.kt") + public void testKt33119Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt"); + } + @Test @TestMetadata("kt34268.kt") public void testKt34268() throws Exception { @@ -16960,6 +17773,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt"); } + @Test + @TestMetadata("kt37998Generic.kt") + public void testKt37998Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt"); + } + @Test @TestMetadata("kt38680.kt") public void testKt38680() throws Exception { @@ -16967,6 +17787,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt38680.kt"); } + @Test + @TestMetadata("kt38680Generic.kt") + public void testKt38680Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt"); + } + @Test @TestMetadata("kt38680a.kt") public void testKt38680a() throws Exception { @@ -16974,6 +17801,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt38680a.kt"); } + @Test + @TestMetadata("kt38680aGeneric.kt") + public void testKt38680aGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt"); + } + @Test @TestMetadata("kt38680b.kt") public void testKt38680b() throws Exception { @@ -16981,6 +17815,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt38680b.kt"); } + @Test + @TestMetadata("kt38680bGeneric.kt") + public void testKt38680bGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt"); + } + @Test @TestMetadata("kt44141.kt") public void testKt44141() throws Exception { @@ -17007,6 +17848,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt45084.kt"); } + @Test + @TestMetadata("kt45084Generic.kt") + public void testKt45084Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt"); + } + @Test @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { @@ -17021,6 +17869,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt46554.kt"); } + @Test + @TestMetadata("kt46554Generic.kt") + public void testKt46554Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt"); + } + @Test @TestMetadata("kt47762.kt") public void testKt47762() throws Exception { @@ -17028,6 +17883,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/kt47762.kt"); } + @Test + @TestMetadata("kt47762Generic.kt") + public void testKt47762Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt"); + } + @Test @TestMetadata("kt51157.kt") public void testKt51157() throws Exception { @@ -17041,6 +17903,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt"); } + @Test + @TestMetadata("mangledDefaultParameterFunctionGeneric.kt") + public void testMangledDefaultParameterFunctionGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt"); + } + @Test @TestMetadata("mangledSuperCalls.kt") public void testMangledSuperCalls() throws Exception { @@ -17048,6 +17917,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCalls.kt"); } + @Test + @TestMetadata("mangledSuperCallsGeneric.kt") + public void testMangledSuperCallsGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt"); + } + @Test @TestMetadata("multifileClass.kt") public void testMultifileClass() throws Exception { @@ -17061,6 +17937,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClass.kt"); } + @Test + @TestMetadata("nestedInlineClassGeneric.kt") + public void testNestedInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt"); + } + @Test @TestMetadata("noAssertionsOnInlineClassBasedOnNullableType.kt") public void testNoAssertionsOnInlineClassBasedOnNullableType() throws Exception { @@ -17068,6 +17951,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableType.kt"); } + @Test + @TestMetadata("noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt") + public void testNoAssertionsOnInlineClassBasedOnNullableTypeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt"); + } + @Test @TestMetadata("noReturnTypeMangling.kt") public void testNoReturnTypeMangling() throws Exception { @@ -17075,6 +17965,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt"); } + @Test + @TestMetadata("noReturnTypeManglingGeneric.kt") + public void testNoReturnTypeManglingGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt"); + } + @Test @TestMetadata("nullableEqeqNonNull.kt") public void testNullableEqeqNonNull() throws Exception { @@ -17082,6 +17979,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNull.kt"); } + @Test + @TestMetadata("nullableEqeqNonNullGeneric.kt") + public void testNullableEqeqNonNullGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt"); + } + @Test @TestMetadata("nullableWrapperEquality.kt") public void testNullableWrapperEquality() throws Exception { @@ -17089,6 +17993,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEquality.kt"); } + @Test + @TestMetadata("nullableWrapperEqualityGeneric.kt") + public void testNullableWrapperEqualityGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt"); + } + @Test @TestMetadata("overrideReturnNothing.kt") public void testOverrideReturnNothing() throws Exception { @@ -17102,6 +18013,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFun.kt"); } + @Test + @TestMetadata("overridingFunCallingPrivateFunGeneric.kt") + public void testOverridingFunCallingPrivateFunGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt"); + } + @Test @TestMetadata("passInlineClassAsVararg.kt") public void testPassInlineClassAsVararg() throws Exception { @@ -17109,6 +18027,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVararg.kt"); } + @Test + @TestMetadata("passInlineClassAsVarargGeneric.kt") + public void testPassInlineClassAsVarargGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt"); + } + @Test @TestMetadata("passInlineClassWithSpreadOperatorToVarargs.kt") public void testPassInlineClassWithSpreadOperatorToVarargs() throws Exception { @@ -17116,6 +18041,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargs.kt"); } + @Test + @TestMetadata("passInlineClassWithSpreadOperatorToVarargsGeneric.kt") + public void testPassInlineClassWithSpreadOperatorToVarargsGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt"); + } + @Test @TestMetadata("privateConstructorFunInterfaceMultiModule.kt") public void testPrivateConstructorFunInterfaceMultiModule() throws Exception { @@ -17123,6 +18055,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModule.kt"); } + @Test + @TestMetadata("privateConstructorFunInterfaceMultiModuleGeneric.kt") + public void testPrivateConstructorFunInterfaceMultiModuleGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt"); + } + @Test @TestMetadata("propertyLoweringOrder.kt") public void testPropertyLoweringOrder() throws Exception { @@ -17130,6 +18069,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrder.kt"); } + @Test + @TestMetadata("propertyLoweringOrderGeneric.kt") + public void testPropertyLoweringOrderGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt"); + } + @Test @TestMetadata("referToPropertyInCompanionObjectOfInlineClass.kt") public void testReferToPropertyInCompanionObjectOfInlineClass() throws Exception { @@ -17137,6 +18083,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt"); } + @Test + @TestMetadata("referToPropertyInCompanionObjectOfInlineClassGeneric.kt") + public void testReferToPropertyInCompanionObjectOfInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt"); + } + @Test @TestMetadata("referToUnderlyingPropertyInsideInlineClass.kt") public void testReferToUnderlyingPropertyInsideInlineClass() throws Exception { @@ -17144,6 +18097,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClass.kt"); } + @Test + @TestMetadata("referToUnderlyingPropertyInsideInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyInsideInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt"); + } + @Test @TestMetadata("referToUnderlyingPropertyOfInlineClass.kt") public void testReferToUnderlyingPropertyOfInlineClass() throws Exception { @@ -17151,6 +18111,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt"); } + @Test + @TestMetadata("referToUnderlyingPropertyOfInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyOfInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt"); + } + @Test @TestMetadata("removeInInlineCollectionOfInlineClassAsInt.kt") public void testRemoveInInlineCollectionOfInlineClassAsInt() throws Exception { @@ -17165,6 +18132,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/result.kt"); } + @Test + @TestMetadata("resultGeneric.kt") + public void testResultGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/resultGeneric.kt"); + } + @Test @TestMetadata("resultInlining.kt") public void testResultInlining() throws Exception { @@ -17185,6 +18159,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBound.kt"); } + @Test + @TestMetadata("safeAsOfTypeParameterWithInlineClassBoundGeneric.kt") + public void testSafeAsOfTypeParameterWithInlineClassBoundGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt"); + } + @Test @TestMetadata("samWrapperDifferentModule.kt") public void testSamWrapperDifferentModule() throws Exception { @@ -17192,6 +18173,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModule.kt"); } + @Test + @TestMetadata("samWrapperDifferentModuleGeneric.kt") + public void testSamWrapperDifferentModuleGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt"); + } + @Test @TestMetadata("secondaryConstructorWithVararg.kt") public void testSecondaryConstructorWithVararg() throws Exception { @@ -17199,6 +18187,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVararg.kt"); } + @Test + @TestMetadata("secondaryConstructorWithVarargGeneric.kt") + public void testSecondaryConstructorWithVarargGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt"); + } + @Test @TestMetadata("secondaryConstructorsInsideInlineClass.kt") public void testSecondaryConstructorsInsideInlineClass() throws Exception { @@ -17206,6 +18201,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClass.kt"); } + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt"); + } + @Test @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt") public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierType() throws Exception { @@ -17213,6 +18215,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt"); } + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt"); + } + @Test @TestMetadata("simpleSecondaryConstructor.kt") public void testSimpleSecondaryConstructor() throws Exception { @@ -17220,6 +18229,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt"); } + @Test + @TestMetadata("simpleSecondaryConstructorGeneric.kt") + public void testSimpleSecondaryConstructorGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt"); + } + @Test @TestMetadata("smartCastOnThisOfInlineClassType.kt") public void testSmartCastOnThisOfInlineClassType() throws Exception { @@ -17227,6 +18243,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassType.kt"); } + @Test + @TestMetadata("smartCastOnThisOfInlineClassTypeGeneric.kt") + public void testSmartCastOnThisOfInlineClassTypeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt"); + } + @Test @TestMetadata("stringPlus.kt") public void testStringPlus() throws Exception { @@ -17234,6 +18257,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/stringPlus.kt"); } + @Test + @TestMetadata("stringPlusGeneric.kt") + public void testStringPlusGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt"); + } + @Test @TestMetadata("toStringCallingPrivateFun.kt") public void testToStringCallingPrivateFun() throws Exception { @@ -17241,6 +18271,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt"); } + @Test + @TestMetadata("toStringCallingPrivateFunGeneric.kt") + public void testToStringCallingPrivateFunGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt"); + } + @Test @TestMetadata("toStringOfUnboxedNullable.kt") public void testToStringOfUnboxedNullable() throws Exception { @@ -17248,6 +18285,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt"); } + @Test + @TestMetadata("toStringOfUnboxedNullableGeneric.kt") + public void testToStringOfUnboxedNullableGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt"); + } + @Test @TestMetadata("typeChecksForInlineClasses.kt") public void testTypeChecksForInlineClasses() throws Exception { @@ -17255,6 +18299,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt"); } + @Test + @TestMetadata("typeChecksForInlineClassesGeneric.kt") + public void testTypeChecksForInlineClassesGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt"); + } + @Test @TestMetadata("UIntArraySortExample.kt") public void testUIntArraySortExample() throws Exception { @@ -17262,6 +18313,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt"); } + @Test + @TestMetadata("UIntArraySortExampleGeneric.kt") + public void testUIntArraySortExampleGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt"); + } + @Test @TestMetadata("UIntSafeAsInt.kt") public void testUIntSafeAsInt() throws Exception { @@ -17275,6 +18333,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingType.kt"); } + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt"); + } + @Test @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { @@ -17282,6 +18347,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt"); } + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt"); + } + @Test @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvoke.kt") public void testUnboxParameterOfSuspendLambdaBeforeInvoke() throws Exception { @@ -17289,6 +18361,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvoke.kt"); } + @Test + @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt") + public void testUnboxParameterOfSuspendLambdaBeforeInvokeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt"); + } + @Test @TestMetadata("unboxReceiverOnCallingMethodFromInlineClass.kt") public void testUnboxReceiverOnCallingMethodFromInlineClass() throws Exception { @@ -17296,6 +18375,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClass.kt"); } + @Test + @TestMetadata("unboxReceiverOnCallingMethodFromInlineClassGeneric.kt") + public void testUnboxReceiverOnCallingMethodFromInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt"); + } + @Test @TestMetadata("unboxResultParameterWhenCapturingToCrossinlineLambda.kt") public void testUnboxResultParameterWhenCapturingToCrossinlineLambda() throws Exception { @@ -17309,6 +18395,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt"); } + @Test + @TestMetadata("unboxValueFromPlatformTypeGeneric.kt") + public void testUnboxValueFromPlatformTypeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt"); + } + @Test @TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt") public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception { @@ -17316,6 +18409,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt"); } + @Test + @TestMetadata("unboxValueOfAnyBeforeMethodInvocationGeneric.kt") + public void testUnboxValueOfAnyBeforeMethodInvocationGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt"); + } + @Test @TestMetadata("useInlineClassesInsideElvisOperator.kt") public void testUseInlineClassesInsideElvisOperator() throws Exception { @@ -17323,6 +18423,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt"); } + @Test + @TestMetadata("useInlineClassesInsideElvisOperatorGeneric.kt") + public void testUseInlineClassesInsideElvisOperatorGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt"); + } + @Test @TestMetadata("useInlineFunctionInsideInlineClass.kt") public void testUseInlineFunctionInsideInlineClass() throws Exception { @@ -17330,6 +18437,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClass.kt"); } + @Test + @TestMetadata("useInlineFunctionInsideInlineClassGeneric.kt") + public void testUseInlineFunctionInsideInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt"); + } + @Test @TestMetadata("useThisInsideInlineClass.kt") public void testUseThisInsideInlineClass() throws Exception { @@ -17337,6 +18451,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt"); } + @Test + @TestMetadata("useThisInsideInlineClassGeneric.kt") + public void testUseThisInsideInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt"); + } + @Test @TestMetadata("whenWithSubject.kt") public void testWhenWithSubject() throws Exception { @@ -17344,6 +18465,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubject.kt"); } + @Test + @TestMetadata("whenWithSubjectGeneric.kt") + public void testWhenWithSubjectGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda") @TestDataPath("$PROJECT_ROOT") @@ -19051,11 +20179,29 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt"); } + @Test + @TestMetadata("defaultArgumentGeneric.kt") + public void testDefaultArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt"); + } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultGeneric.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simple.kt"); } + + @Test + @TestMetadata("simpleGeneric.kt") + public void testSimpleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simpleGeneric.kt"); + } } @Nested @@ -19066,8 +20212,11 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class FunInterface { public FunInterface() { register("compiler/testData/codegen/box/inlineClasses/funInterface/argumentIC.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappers.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/funInterface/returnIC.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -19082,6 +20231,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentIC.kt"); } + @Test + @TestMetadata("argumentICGeneric.kt") + public void testArgumentICGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt"); + } + @Test @TestMetadata("argumentResult.kt") public void testArgumentResult() throws Exception { @@ -19095,6 +20251,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappers.kt"); } + @Test + @TestMetadata("mangledSamWrappersGeneric.kt") + public void testMangledSamWrappersGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt"); + } + @Test @TestMetadata("returnIC.kt") public void testReturnIC() throws Exception { @@ -19102,6 +20265,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnIC.kt"); } + @Test + @TestMetadata("returnICGeneric.kt") + public void testReturnICGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt"); + } + @Test @TestMetadata("returnResult.kt") public void testReturnResult() throws Exception { @@ -19117,21 +20287,37 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class FunctionNameMangling { public FunctionNameMangling() { register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverridden.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTrace.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClash.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgument.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledName.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -19146,6 +20332,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledName.kt"); } + @Test + @TestMetadata("anonymousObjectInFunctionWithMangledNameGeneric.kt") + public void testAnonymousObjectInFunctionWithMangledNameGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt"); + } + @Test @TestMetadata("extensionFunctionsDoNotClash.kt") public void testExtensionFunctionsDoNotClash() throws Exception { @@ -19153,6 +20346,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClash.kt"); } + @Test + @TestMetadata("extensionFunctionsDoNotClashGeneric.kt") + public void testExtensionFunctionsDoNotClashGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt"); + } + @Test @TestMetadata("functionsWithDifferentNullabilityDoNotClash.kt") public void testFunctionsWithDifferentNullabilityDoNotClash() throws Exception { @@ -19160,6 +20360,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClash.kt"); } + @Test + @TestMetadata("functionsWithDifferentNullabilityDoNotClashGeneric.kt") + public void testFunctionsWithDifferentNullabilityDoNotClashGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt"); + } + @Test @TestMetadata("genericFunctionsDoNotClash.kt") public void testGenericFunctionsDoNotClash() throws Exception { @@ -19167,6 +20374,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClash.kt"); } + @Test + @TestMetadata("genericFunctionsDoNotClashGeneric.kt") + public void testGenericFunctionsDoNotClashGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt"); + } + @Test @TestMetadata("localClassInFunctionWithMangledName.kt") public void testLocalClassInFunctionWithMangledName() throws Exception { @@ -19174,6 +20388,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledName.kt"); } + @Test + @TestMetadata("localClassInFunctionWithMangledNameGeneric.kt") + public void testLocalClassInFunctionWithMangledNameGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt"); + } + @Test @TestMetadata("mangledFunctionsCanBeOverridden.kt") public void testMangledFunctionsCanBeOverridden() throws Exception { @@ -19181,6 +20402,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverridden.kt"); } + @Test + @TestMetadata("mangledFunctionsCanBeOverriddenGeneric.kt") + public void testMangledFunctionsCanBeOverriddenGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt"); + } + @Test @TestMetadata("mangledFunctionsDoNotClash.kt") public void testMangledFunctionsDoNotClash() throws Exception { @@ -19188,6 +20416,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClash.kt"); } + @Test + @TestMetadata("mangledFunctionsDoNotClashGeneric.kt") + public void testMangledFunctionsDoNotClashGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt"); + } + @Test @TestMetadata("mangledFunctionsPresentInStackTrace.kt") public void testMangledFunctionsPresentInStackTrace() throws Exception { @@ -19195,6 +20430,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTrace.kt"); } + @Test + @TestMetadata("mangledFunctionsPresentInStackTraceGeneric.kt") + public void testMangledFunctionsPresentInStackTraceGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt"); + } + @Test @TestMetadata("mixedSignatureFunctionsDoNotClash.kt") public void testMixedSignatureFunctionsDoNotClash() throws Exception { @@ -19202,6 +20444,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClash.kt"); } + @Test + @TestMetadata("mixedSignatureFunctionsDoNotClashGeneric.kt") + public void testMixedSignatureFunctionsDoNotClashGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt"); + } + @Test @TestMetadata("overridingMethodInGenericClass.kt") public void testOverridingMethodInGenericClass() throws Exception { @@ -19216,6 +20465,20 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2.kt"); } + @Test + @TestMetadata("overridingMethodInGenericClass2Generic.kt") + public void testOverridingMethodInGenericClass2Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt"); + } + + @Test + @TestMetadata("overridingMethodInGenericClassGeneric.kt") + public void testOverridingMethodInGenericClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt"); + } + @Test @TestMetadata("propertySetterWithInlineClassTypeArgument.kt") public void testPropertySetterWithInlineClassTypeArgument() throws Exception { @@ -19223,6 +20486,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgument.kt"); } + @Test + @TestMetadata("propertySetterWithInlineClassTypeArgumentGeneric.kt") + public void testPropertySetterWithInlineClassTypeArgumentGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt"); + } + @Test @TestMetadata("reflectionForFunctionWithMangledName.kt") public void testReflectionForFunctionWithMangledName() throws Exception { @@ -19230,6 +20500,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledName.kt"); } + @Test + @TestMetadata("reflectionForFunctionWithMangledNameGeneric.kt") + public void testReflectionForFunctionWithMangledNameGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt"); + } + @Test @TestMetadata("reflectionForPropertyOfInlineClassType.kt") public void testReflectionForPropertyOfInlineClassType() throws Exception { @@ -19237,6 +20514,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassType.kt"); } + @Test + @TestMetadata("reflectionForPropertyOfInlineClassTypeGeneric.kt") + public void testReflectionForPropertyOfInlineClassTypeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt"); + } + @Test @TestMetadata("syntheticAccessorForFunctionWithMangledName.kt") public void testSyntheticAccessorForFunctionWithMangledName() throws Exception { @@ -19244,12 +20528,26 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledName.kt"); } + @Test + @TestMetadata("syntheticAccessorForFunctionWithMangledNameGeneric.kt") + public void testSyntheticAccessorForFunctionWithMangledNameGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt"); + } + @Test @TestMetadata("syntheticAccessorsForPropertyOfInlineClassType.kt") public void testSyntheticAccessorsForPropertyOfInlineClassType() throws Exception { // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassType.kt"); } + + @Test + @TestMetadata("syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt") + public void testSyntheticAccessorsForPropertyOfInlineClassTypeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt"); + } } @Nested @@ -19284,17 +20582,29 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class HiddenConstructor { public HiddenConstructor() { register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -19309,6 +20619,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1.kt"); } + @Test + @TestMetadata("constructorReferencedFromOtherFile1Generic.kt") + public void testConstructorReferencedFromOtherFile1Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt"); + } + @Test @TestMetadata("constructorReferencedFromOtherFile2.kt") public void testConstructorReferencedFromOtherFile2() throws Exception { @@ -19316,6 +20633,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2.kt"); } + @Test + @TestMetadata("constructorReferencedFromOtherFile2Generic.kt") + public void testConstructorReferencedFromOtherFile2Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt"); + } + @Test @TestMetadata("constructorWithDefaultParameters.kt") public void testConstructorWithDefaultParameters() throws Exception { @@ -19323,6 +20647,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParameters.kt"); } + @Test + @TestMetadata("constructorWithDefaultParametersGeneric.kt") + public void testConstructorWithDefaultParametersGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt"); + } + @Test @TestMetadata("delegatingSuperConstructorCall.kt") public void testDelegatingSuperConstructorCall() throws Exception { @@ -19330,6 +20661,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCall.kt"); } + @Test + @TestMetadata("delegatingSuperConstructorCallGeneric.kt") + public void testDelegatingSuperConstructorCallGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt"); + } + @Test @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructor.kt") public void testDelegatingSuperConstructorCallInSecondaryConstructor() throws Exception { @@ -19337,6 +20675,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructor.kt"); } + @Test + @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt") + public void testDelegatingSuperConstructorCallInSecondaryConstructorGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt"); + } + @Test @TestMetadata("delegatingThisConstructorCall.kt") public void testDelegatingThisConstructorCall() throws Exception { @@ -19344,6 +20689,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCall.kt"); } + @Test + @TestMetadata("delegatingThisConstructorCallGeneric.kt") + public void testDelegatingThisConstructorCallGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt"); + } + @Test @TestMetadata("enumClassConstructor.kt") public void testEnumClassConstructor() throws Exception { @@ -19351,6 +20703,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructor.kt"); } + @Test + @TestMetadata("enumClassConstructorGeneric.kt") + public void testEnumClassConstructorGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt"); + } + @Test @TestMetadata("innerClassConstructor.kt") public void testInnerClassConstructor() throws Exception { @@ -19358,6 +20717,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructor.kt"); } + @Test + @TestMetadata("innerClassConstructorGeneric.kt") + public void testInnerClassConstructorGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt"); + } + @Test @TestMetadata("kt28855.kt") public void testKt28855() throws Exception { @@ -19371,6 +20737,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructor.kt"); } + @Test + @TestMetadata("primaryConstructorGeneric.kt") + public void testPrimaryConstructorGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt"); + } + @Test @TestMetadata("privateConstructor.kt") public void testPrivateConstructor() throws Exception { @@ -19378,6 +20751,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructor.kt"); } + @Test + @TestMetadata("privateConstructorGeneric.kt") + public void testPrivateConstructorGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt"); + } + @Test @TestMetadata("sealedClassConstructor.kt") public void testSealedClassConstructor() throws Exception { @@ -19385,12 +20765,26 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructor.kt"); } + @Test + @TestMetadata("sealedClassConstructorGeneric.kt") + public void testSealedClassConstructorGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt"); + } + @Test @TestMetadata("secondaryConstructor.kt") public void testSecondaryConstructor() throws Exception { // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructor.kt"); } + + @Test + @TestMetadata("secondaryConstructorGeneric.kt") + public void testSecondaryConstructorGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt"); + } } @Nested @@ -19401,8 +20795,11 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class InlineClassCollection { public InlineClassCollection() { register("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -19417,6 +20814,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClass.kt"); } + @Test + @TestMetadata("inlineCollectionOfInlineClassGeneric.kt") + public void testInlineCollectionOfInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt"); + } + @Test @TestMetadata("inlineListOfInlineClass.kt") public void testInlineListOfInlineClass() throws Exception { @@ -19424,12 +20828,26 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClass.kt"); } + @Test + @TestMetadata("inlineListOfInlineClassGeneric.kt") + public void testInlineListOfInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt"); + } + @Test @TestMetadata("inlineMapOfInlineClass.kt") public void testInlineMapOfInlineClass() throws Exception { // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt"); } + + @Test + @TestMetadata("inlineMapOfInlineClassGeneric.kt") + public void testInlineMapOfInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt"); + } } @Nested @@ -19440,13 +20858,20 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class InterfaceDelegation { public InterfaceDelegation() { register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLong.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -19461,6 +20886,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt"); } + @Test + @TestMetadata("interfaceImplementationByDelegationGeneric.kt") + public void testInterfaceImplementationByDelegationGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt"); + } + @Test @TestMetadata("kt38337.kt") public void testKt38337() throws Exception { @@ -19468,6 +20900,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt"); } + @Test + @TestMetadata("kt38337Generic.kt") + public void testKt38337Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt"); + } + @Test @TestMetadata("memberExtValDelegationWithInlineClassParameterTypes.kt") public void testMemberExtValDelegationWithInlineClassParameterTypes() throws Exception { @@ -19475,6 +20914,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt"); } + @Test + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberExtValDelegationWithInlineClassParameterTypesGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt"); + } + @Test @TestMetadata("memberExtVarDelegationWithInlineClassParameterTypes.kt") public void testMemberExtVarDelegationWithInlineClassParameterTypes() throws Exception { @@ -19489,6 +20935,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassInt.kt"); } + @Test + @TestMetadata("memberFunDelegatedToInlineClassIntGeneric.kt") + public void testMemberFunDelegatedToInlineClassIntGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt"); + } + @Test @TestMetadata("memberFunDelegatedToInlineClassLong.kt") public void testMemberFunDelegatedToInlineClassLong() throws Exception { @@ -19496,6 +20949,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLong.kt"); } + @Test + @TestMetadata("memberFunDelegatedToInlineClassLongGeneric.kt") + public void testMemberFunDelegatedToInlineClassLongGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt"); + } + @Test @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt") public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypes() throws Exception { @@ -19503,12 +20963,26 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt"); } + @Test + @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt"); + } + @Test @TestMetadata("memberFunDelegationWithInlineClassParameterTypes.kt") public void testMemberFunDelegationWithInlineClassParameterTypes() throws Exception { // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt"); } + + @Test + @TestMetadata("memberFunDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationWithInlineClassParameterTypesGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt"); + } } @Nested @@ -19520,15 +20994,26 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public InterfaceMethodCalls() { register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -19550,6 +21035,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2.kt"); } + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride2Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride2Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt"); + } + @Test @TestMetadata("complexGenericMethodWithInlineClassOverride3.kt") public void testComplexGenericMethodWithInlineClassOverride3() throws Exception { @@ -19557,6 +21049,20 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3.kt"); } + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride3Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride3Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt"); + } + + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverrideGeneric.kt") + public void testComplexGenericMethodWithInlineClassOverrideGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt"); + } + @Test @TestMetadata("defaultInterfaceExtensionFunCall.kt") public void testDefaultInterfaceExtensionFunCall() throws Exception { @@ -19564,6 +21070,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCall.kt"); } + @Test + @TestMetadata("defaultInterfaceExtensionFunCallGeneric.kt") + public void testDefaultInterfaceExtensionFunCallGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt"); + } + @Test @TestMetadata("defaultInterfaceMethodCall.kt") public void testDefaultInterfaceMethodCall() throws Exception { @@ -19571,6 +21084,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCall.kt"); } + @Test + @TestMetadata("defaultInterfaceMethodCallGeneric.kt") + public void testDefaultInterfaceMethodCallGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt"); + } + @Test @TestMetadata("genericDefaultInterfaceExtensionFunCall.kt") public void testGenericDefaultInterfaceExtensionFunCall() throws Exception { @@ -19578,6 +21098,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCall.kt"); } + @Test + @TestMetadata("genericDefaultInterfaceExtensionFunCallGeneric.kt") + public void testGenericDefaultInterfaceExtensionFunCallGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt"); + } + @Test @TestMetadata("genericDefaultInterfaceMethodCall.kt") public void testGenericDefaultInterfaceMethodCall() throws Exception { @@ -19585,6 +21112,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCall.kt"); } + @Test + @TestMetadata("genericDefaultInterfaceMethodCallGeneric.kt") + public void testGenericDefaultInterfaceMethodCallGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt"); + } + @Test @TestMetadata("genericInterfaceMethodCall.kt") public void testGenericInterfaceMethodCall() throws Exception { @@ -19592,6 +21126,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt"); } + @Test + @TestMetadata("genericInterfaceMethodCallGeneric.kt") + public void testGenericInterfaceMethodCallGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt"); + } + @Test @TestMetadata("genericMethodWithInlineClassOverride.kt") public void testGenericMethodWithInlineClassOverride() throws Exception { @@ -19599,6 +21140,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt"); } + @Test + @TestMetadata("genericMethodWithInlineClassOverrideGeneric.kt") + public void testGenericMethodWithInlineClassOverrideGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt"); + } + @Test @TestMetadata("interfaceSuperCall.kt") public void testInterfaceSuperCall() throws Exception { @@ -19606,12 +21154,26 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCall.kt"); } + @Test + @TestMetadata("interfaceSuperCallGeneric.kt") + public void testInterfaceSuperCallGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt"); + } + @Test @TestMetadata("overriddenDefaultInterfaceMethodCall.kt") public void testOverriddenDefaultInterfaceMethodCall() throws Exception { // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt"); } + + @Test + @TestMetadata("overriddenDefaultInterfaceMethodCallGeneric.kt") + public void testOverriddenDefaultInterfaceMethodCallGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt"); + } } @Nested @@ -19646,16 +21208,27 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class PropertyDelegation { public PropertyDelegation() { register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegate.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -19670,6 +21243,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClass.kt"); } + @Test + @TestMetadata("captureLocalVarDelegatedToInlineClassGeneric.kt") + public void testCaptureLocalVarDelegatedToInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt"); + } + @Test @TestMetadata("delegateClassVarToInlineClass.kt") public void testDelegateClassVarToInlineClass() throws Exception { @@ -19677,6 +21257,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClass.kt"); } + @Test + @TestMetadata("delegateClassVarToInlineClassGeneric.kt") + public void testDelegateClassVarToInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt"); + } + @Test @TestMetadata("delegateClassVarToInlineClassWithProvideDelegate.kt") public void testDelegateClassVarToInlineClassWithProvideDelegate() throws Exception { @@ -19684,6 +21271,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegate.kt"); } + @Test + @TestMetadata("delegateClassVarToInlineClassWithProvideDelegateGeneric.kt") + public void testDelegateClassVarToInlineClassWithProvideDelegateGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt"); + } + @Test @TestMetadata("delegateCompanionVarToInlineClass.kt") public void testDelegateCompanionVarToInlineClass() throws Exception { @@ -19691,6 +21285,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt"); } + @Test + @TestMetadata("delegateCompanionVarToInlineClassGeneric.kt") + public void testDelegateCompanionVarToInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt"); + } + @Test @TestMetadata("delegateLocalVarToInlineClass.kt") public void testDelegateLocalVarToInlineClass() throws Exception { @@ -19698,6 +21299,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt"); } + @Test + @TestMetadata("delegateLocalVarToInlineClassGeneric.kt") + public void testDelegateLocalVarToInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt"); + } + @Test @TestMetadata("delegateObjectVarToInlineClass.kt") public void testDelegateObjectVarToInlineClass() throws Exception { @@ -19705,6 +21313,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClass.kt"); } + @Test + @TestMetadata("delegateObjectVarToInlineClassGeneric.kt") + public void testDelegateObjectVarToInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt"); + } + @Test @TestMetadata("delegatePrivateCompanionVarToInlineClass.kt") public void testDelegatePrivateCompanionVarToInlineClass() throws Exception { @@ -19712,6 +21327,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClass.kt"); } + @Test + @TestMetadata("delegatePrivateCompanionVarToInlineClassGeneric.kt") + public void testDelegatePrivateCompanionVarToInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt"); + } + @Test @TestMetadata("delegateTopLevelVarToInlineClass.kt") public void testDelegateTopLevelVarToInlineClass() throws Exception { @@ -19719,6 +21341,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt"); } + @Test + @TestMetadata("delegateTopLevelVarToInlineClassGeneric.kt") + public void testDelegateTopLevelVarToInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt"); + } + @Test @TestMetadata("delegatedPropertyOfInlineClassType.kt") public void testDelegatedPropertyOfInlineClassType() throws Exception { @@ -19726,6 +21355,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt"); } + @Test + @TestMetadata("delegatedPropertyOfInlineClassTypeGeneric.kt") + public void testDelegatedPropertyOfInlineClassTypeGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt"); + } + @Test @TestMetadata("kt27070.kt") public void testKt27070() throws Exception { @@ -19733,12 +21369,26 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt"); } + @Test + @TestMetadata("kt27070Generic.kt") + public void testKt27070Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt"); + } + @Test @TestMetadata("kt42933.kt") public void testKt42933() throws Exception { // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933.kt"); } + + @Test + @TestMetadata("kt42933Generic.kt") + public void testKt42933Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt"); + } } @Nested @@ -19868,12 +21518,19 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class FunInterface { public FunInterface() { register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/iface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -19888,6 +21545,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/any.kt"); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt"); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { @@ -19895,6 +21559,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyN.kt"); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt"); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -19909,6 +21580,20 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt"); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt"); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt"); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -19922,6 +21607,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitive.kt"); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt"); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -19935,12 +21627,26 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAny.kt"); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt"); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/string.kt"); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt"); + } } @Nested @@ -19951,12 +21657,19 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class Lambda { public Lambda() { register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/iface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -19971,6 +21684,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/any.kt"); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt"); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { @@ -19978,6 +21698,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyN.kt"); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt"); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -19992,6 +21719,20 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt"); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt"); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt"); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -20005,6 +21746,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitive.kt"); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt"); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -20018,12 +21766,26 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAny.kt"); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt"); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/string.kt"); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt"); + } } @Nested @@ -20034,12 +21796,19 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class ObjectLiteral { public ObjectLiteral() { register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -20054,6 +21823,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/any.kt"); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt"); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { @@ -20061,6 +21837,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt"); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt"); + } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { @@ -20075,6 +21858,20 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt"); } + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt"); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt"); + } + @Test @TestMetadata("nullableResult.kt") public void testNullableResult() throws Exception { @@ -20088,6 +21885,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt"); } + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt"); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -20101,12 +21905,26 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAny.kt"); } + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt"); + } + @Test @TestMetadata("string.kt") public void testString() throws Exception { // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/string.kt"); } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt"); + } } } }