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 81edd2d2899..c319d275abc 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 @@ -20740,60 +20740,120 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxAnyGeneric.kt") + public void testBoxAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxFunLiteralAny.kt") public void testBoxFunLiteralAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxFunLiteralAnyGeneric.kt") + public void testBoxFunLiteralAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxInt.kt") public void testBoxInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxIntGeneric.kt") + public void testBoxIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableAny.kt") public void testBoxNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableAnyGeneric.kt") + public void testBoxNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableAnyNull.kt") public void testBoxNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableAnyNullGeneric.kt") + public void testBoxNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableInt.kt") public void testBoxNullableInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableIntGeneric.kt") + public void testBoxNullableIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableIntNull.kt") public void testBoxNullableIntNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableIntNullGeneric.kt") + public void testBoxNullableIntNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableString.kt") public void testBoxNullableString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableStringGeneric.kt") + public void testBoxNullableStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableStringNull.kt") public void testBoxNullableStringNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableStringNullGeneric.kt") + public void testBoxNullableStringNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxString.kt") public void testBoxString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxStringGeneric.kt") + public void testBoxStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27586_1.kt") public void testKt27586_1() throws Exception { @@ -20822,84 +20882,168 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxReturnValueInDefaultMethodGenericInt.kt") + public void testBoxReturnValueInDefaultMethodGenericInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideChainErasedToAny.kt") public void testCovariantOverrideChainErasedToAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideChainErasedToAnyGeneric.kt") + public void testCovariantOverrideChainErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideChainErasedToNullableAny.kt") public void testCovariantOverrideChainErasedToNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideChainErasedToNullableAnyGeneric.kt") + public void testCovariantOverrideChainErasedToNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideErasedToAny.kt") public void testCovariantOverrideErasedToAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideErasedToAnyGeneric.kt") + public void testCovariantOverrideErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideErasedToInterface.kt") public void testCovariantOverrideErasedToInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideErasedToInterfaceGeneric.kt") + public void testCovariantOverrideErasedToInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideErasedToPrimitive.kt") public void testCovariantOverrideErasedToPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideErasedToPrimitiveGeneric.kt") + public void testCovariantOverrideErasedToPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideListVsMutableList.kt") public void testCovariantOverrideListVsMutableList() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideListVsMutableListGeneric.kt") + public void testCovariantOverrideListVsMutableListGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideUnrelatedInterfaces.kt") public void testCovariantOverrideUnrelatedInterfaces() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfaces.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideUnrelatedInterfacesGeneric.kt") + public void testCovariantOverrideUnrelatedInterfacesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericOverride.kt") public void testGenericOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericOverrideGeneric.kt") + public void testGenericOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericOverrideSpecialized.kt") public void testGenericOverrideSpecialized() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecialized.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericOverrideSpecializedGeneric.kt") + public void testGenericOverrideSpecializedGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassInOverriddenReturnTypes.kt") public void testInlineClassInOverriddenReturnTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassInOverriddenReturnTypesGeneric.kt") + public void testInlineClassInOverriddenReturnTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt28483.kt") public void testKt28483() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt28483Generic.kt") + public void testKt28483Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt31585.kt") public void testKt31585() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt31585Generic.kt") + public void testKt31585Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt35234.kt") public void testKt35234() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt35234Generic.kt") + public void testKt35234Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt35234a.kt") public void testKt35234a() throws Exception { @@ -20912,77 +21056,155 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideGenericWithInlineClassGeneric.kt") + public void testOverrideGenericWithInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullAny.kt") public void testOverrideNullableInlineClassWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullNullableAny.kt") public void testOverrideNullableInlineClassWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNull.kt") public void testOverrideNullableInlineClassWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("relatedReturnTypes1a.kt") public void testRelatedReturnTypes1a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("relatedReturnTypes1aGeneric.kt") + public void testRelatedReturnTypes1aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("relatedReturnTypes1b.kt") public void testRelatedReturnTypes1b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("relatedReturnTypes1bGeneric.kt") + public void testRelatedReturnTypes1bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("relatedReturnTypes2a.kt") public void testRelatedReturnTypes2a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("relatedReturnTypes2aGeneric.kt") + public void testRelatedReturnTypes2aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("relatedReturnTypes2b.kt") public void testRelatedReturnTypes2b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("relatedReturnTypes2bGeneric.kt") + public void testRelatedReturnTypes2bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("uncastInlineClassToAnyAndBack.kt") public void testUncastInlineClassToAnyAndBack() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBack.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("uncastInlineClassToAnyAndBackGeneric.kt") + public void testUncastInlineClassToAnyAndBackGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unrelatedGenerics.kt") public void testUnrelatedGenerics() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenerics.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("unrelatedGenericsGeneric.kt") + public void testUnrelatedGenericsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -21000,120 +21222,240 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassExtensionFunGeneric.kt") + public void testBoundInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundInlineClassExtensionVal.kt") public void testBoundInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassExtensionValGeneric.kt") + public void testBoundInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundInlineClassMemberFun.kt") public void testBoundInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassMemberFunGeneric.kt") + public void testBoundInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundInlineClassMemberVal.kt") public void testBoundInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassMemberValGeneric.kt") + public void testBoundInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundInlineClassPrimaryVal.kt") public void testBoundInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassPrimaryValGeneric.kt") + public void testBoundInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorWithInlineClassParameters.kt") public void testConstructorWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorWithInlineClassParametersGeneric.kt") + public void testConstructorWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsHashCodeToString.kt") public void testEqualsHashCodeToString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsHashCodeToStringGeneric.kt") + public void testEqualsHashCodeToStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("funWithInlineClassParameters.kt") public void testFunWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("funWithInlineClassParametersGeneric.kt") + public void testFunWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassExtensionFun.kt") public void testInlineClassExtensionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassExtensionFunGeneric.kt") + public void testInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassExtensionVal.kt") public void testInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassExtensionValGeneric.kt") + public void testInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassInternalPrimaryVal.kt") public void testInlineClassInternalPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassInternalPrimaryValGeneric.kt") + public void testInlineClassInternalPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassMemberFun.kt") public void testInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassMemberFunGeneric.kt") + public void testInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassMemberVal.kt") public void testInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassMemberValGeneric.kt") + public void testInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassPrimaryConstructor.kt") public void testInlineClassPrimaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassPrimaryConstructorGeneric.kt") + public void testInlineClassPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassPrimaryVal.kt") public void testInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassPrimaryValGeneric.kt") + public void testInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassPrivatePrimaryVal.kt") public void testInlineClassPrivatePrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassPrivatePrimaryValGeneric.kt") + public void testInlineClassPrivatePrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassTypeBoundMemberVar.kt") public void testInlineClassTypeBoundMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassTypeBoundMemberVarGeneric.kt") + public void testInlineClassTypeBoundMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassTypeMemberVar.kt") public void testInlineClassTypeMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassTypeMemberVarGeneric.kt") + public void testInlineClassTypeMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassTypeTopLevelVar.kt") public void testInlineClassTypeTopLevelVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassTypeTopLevelVarGeneric.kt") + public void testInlineClassTypeTopLevelVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt37986.kt") public void testKt37986() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt37986Generic.kt") + public void testKt37986Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses/callableReferences/let") @TestDataPath("$PROJECT_ROOT") @@ -21129,30 +21471,60 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("int.kt") public void testInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/int.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("intGeneric.kt") + public void testIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("intN.kt") public void testIntN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("intNGeneric.kt") + public void testIntNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("null.kt") public void testNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/null.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("nullGeneric.kt") + public void testNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -21165,11 +21537,23 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("stringN.kt") public void testStringN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("stringNGeneric.kt") + public void testStringNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } } @@ -21189,18 +21573,42 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethod2Generic.kt") + public void testAccessPrivateInlineClassCompanionMethod2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateInlineClassCompanionMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassConstructorFromCompanion.kt") public void testAccessPrivateInlineClassConstructorFromCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassConstructorFromLambda.kt") public void testAccessPrivateInlineClassConstructorFromLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { @@ -21213,6 +21621,18 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2Generic.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassMethodFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { @@ -21225,6 +21645,18 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromLambda.kt") public void testAccessPrivateInlineClassMethodFromLambda() throws Exception { @@ -21237,12 +21669,30 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt") public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateStaticInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateStaticInlineClassCompanionMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test public void testAllFilesPresentInContextsAndAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); @@ -21260,59 +21710,125 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("captureInlineClassInstanceInLambda2Generic.kt") + public void testCaptureInlineClassInstanceInLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("captureInlineClassInstanceInLambdaGeneric.kt") + public void testCaptureInlineClassInstanceInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("captureInlineClassInstanceInObject.kt") public void testCaptureInlineClassInstanceInObject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObject.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("captureInlineClassInstanceInObjectGeneric.kt") + public void testCaptureInlineClassInstanceInObjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineLambdaInInlineClassFun.kt") public void testInlineLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineLambdaInInlineClassFunGeneric.kt") + public void testInlineLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt26858.kt") public void testKt26858() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt26858Generic.kt") + public void testKt26858Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27513.kt") public void testKt27513() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27513Generic.kt") + public void testKt27513Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt30780.kt") public void testKt30780() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt30780Generic.kt") + public void testKt30780Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("lambdaInInlineClassFun.kt") public void testLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("lambdaInInlineClassFunGeneric.kt") + public void testLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("objectInInlineClassFun.kt") public void testObjectInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("objectInInlineClassFunGeneric.kt") + public void testObjectInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("toPrivateCompanionFun.kt") public void testToPrivateCompanionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("toPrivateCompanionFunGeneric.kt") + public void testToPrivateCompanionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("toPrivateCompanionVal.kt") public void testToPrivateCompanionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("toPrivateCompanionValGeneric.kt") + public void testToPrivateCompanionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -21411,23 +21927,47 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test + @TestMetadata("allGeneric.kt") + public void testAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/allGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("all-compatibility.kt") public void testAll_compatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("all-compatibilityGeneric.kt") + public void testAll_compatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("compatibility.kt") public void testCompatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("compatibilityGeneric.kt") + public void testCompatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("default.kt") public void testDefault() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/default.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/defaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -21445,23 +21985,47 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test + @TestMetadata("allGeneric.kt") + public void testAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/allGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("all-compatibility.kt") public void testAll_compatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("all-compatibilityGeneric.kt") + public void testAll_compatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("compatibility.kt") public void testCompatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("compatibilityGeneric.kt") + public void testCompatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("default.kt") public void testDefault() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/default.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/defaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } } diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt new file mode 100644 index 00000000000..dd2ca941d96 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +fun useX(x: X): String = x.x + +fun call(fn: () -> T) = fn() + +fun box() = useX(call { X("OK") }) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt new file mode 100644 index 00000000000..c58fba00514 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +fun useX(x: X): String = x.x + +fun call(fn: () -> T) = fn() + +fun box() = useX(call(fun(): X { return X("OK") })) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt new file mode 100644 index 00000000000..7c97519c8d5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +fun useX(x: X): String = if (x.x == 42) "OK" else "fail: $x" + +fun call(fn: () -> T) = fn() + +fun box() = useX(call { X(42) }) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt new file mode 100644 index 00000000000..f849a43eaa2 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +fun useX(x: X): String = x.x!! + +fun call(fn: () -> T) = fn() + +fun box() = useX(call { X("OK") }) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt new file mode 100644 index 00000000000..c89ce45a12c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +fun useX(x: X): String = if (x.x == null) "OK" else "fail: $x" + +fun call(fn: () -> T) = fn() + +fun box() = useX(call { X(null) }) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt new file mode 100644 index 00000000000..03f0aaae580 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +fun useX(x: X): String = if (x.x == 42) "OK" else "fail: $x" + +fun call(fn: () -> T) = fn() + +fun box() = useX(call { X(42) }) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt new file mode 100644 index 00000000000..29a0f83b6a4 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +fun useX(x: X): String = if (x.x == null) "OK" else "fail: $x" + +fun call(fn: () -> T) = fn() + +fun box() = useX(call { X(null) }) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt new file mode 100644 index 00000000000..2a85ae70e68 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +fun useX(x: X): String = x.x ?: "fail: $x" + +fun call(fn: () -> T) = fn() + +fun box() = useX(call { X("OK") }) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt new file mode 100644 index 00000000000..3661950db7d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +fun useX(x: X): String = if (x.x == null) "OK" else "fail: $x" + +fun call(fn: () -> T) = fn() + +fun box() = useX(call { X(null) }) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt new file mode 100644 index 00000000000..e53cfa836ef --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +fun useX(x: X): String = x.x + +fun call(fn: () -> T) = fn() + +fun box() = useX(call { X("OK") }) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt new file mode 100644 index 00000000000..3a61993552e --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt @@ -0,0 +1,19 @@ +// IGNORE_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface X { + operator fun plus(n: Int) : T + fun next(): T = this + 1 +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val value: T) : X> { + override operator fun plus(n: Int): A = A(value + n) +} + +fun box(): String { + val res = A(1).next() + return if (res.value == 2) "OK" else "FAIL $res" +} diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt new file mode 100644 index 00000000000..8280471ac26 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt @@ -0,0 +1,36 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +interface IBar { + fun bar(): Any +} + +interface IFoo : IBar { + fun foo(): Any + override fun bar(): X +} + +class TestX : IFoo { + override fun foo(): X = X("O") + override fun bar(): X = X("K") +} + +fun box(): String { + val t: IFoo = TestX() + val tFoo = t.foo() + if (tFoo !is X<*>) { + throw AssertionError("X expected: $tFoo") + } + + val t2: IBar = TestX() + val tBar = t.bar() + if (tBar !is X<*>) { + throw AssertionError("X expected: $tBar") + } + + return (t.foo() as X).x!!.toString() + (t2.bar() as X).x!!.toString() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt new file mode 100644 index 00000000000..99c01676b47 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt @@ -0,0 +1,36 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +interface IBar { + fun bar(): Any +} + +interface IFoo : IBar { + fun foo(): Any + override fun bar(): X +} + +class TestX : IFoo { + override fun foo(): X = X("O") + override fun bar(): X = X("K") +} + +fun box(): String { + val t: IFoo = TestX() + val tFoo = t.foo() + if (tFoo !is X<*>) { + throw AssertionError("X expected: $tFoo") + } + + val t2: IBar = TestX() + val tBar = t.bar() + if (tBar !is X<*>) { + throw AssertionError("X expected: $tBar") + } + + return (t.foo() as X).x!!.toString() + (t2.bar() as X).x!!.toString() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt new file mode 100644 index 00000000000..81510b1f403 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +interface IFoo { + fun foo(): Any + fun bar(): X +} + +class TestX : IFoo { + override fun foo(): X = X("O") + override fun bar(): X = X("K") +} + +fun box(): String { + val t: IFoo = TestX() + val tFoo = t.foo() + if (tFoo !is X<*>) { + throw AssertionError("X expected: $tFoo") + } + + return (t.foo() as X).x.toString() + t.bar().x.toString() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt new file mode 100644 index 00000000000..28289a78e9a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt @@ -0,0 +1,33 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IFoo { + fun foo(): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ICFoo(val t: T): IFoo { + override fun foo(): String = t.foo() +} + +interface IBar { + fun bar(): IFoo +} + +object FooOK : IFoo { + override fun foo(): String = "OK" +} + +class Test : IBar { + override fun bar(): ICFoo = ICFoo(FooOK) +} + +fun box(): String { + val test: IBar = Test() + val bar = test.bar() + if (bar !is ICFoo<*>) { + throw AssertionError("bar: $bar") + } + return bar.foo() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt new file mode 100644 index 00000000000..b5dd48c0e02 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +interface IFoo { + fun foo(): Any + fun bar(): X +} + +class TestX : IFoo { + override fun foo(): X = X('O') + override fun bar(): X = X('K') +} + +fun box(): String { + val t: IFoo = TestX() + val tFoo = t.foo() + if (tFoo !is X<*>) { + throw AssertionError("X expected: $tFoo") + } + + return (t.foo() as X).x.toString() + t.bar().x.toString() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt new file mode 100644 index 00000000000..9343a9ec283 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt @@ -0,0 +1,53 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IFooList { + fun foo(): List +} + +interface IFooMutableList { + fun foo(): MutableList +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class AL>(val t: T) : MutableList { + override val size: Int get() = t.size + override fun get(index: Int): String = t.get(index) + override fun set(index: Int, element: String): String = t.set(index, element) + override fun contains(element: String): Boolean = t.contains(element) + override fun containsAll(elements: Collection): Boolean = t.containsAll(elements) + override fun indexOf(element: String): Int = t.indexOf(element) + override fun isEmpty(): Boolean = t.isEmpty() + override fun iterator(): MutableIterator = t.iterator() + override fun lastIndexOf(element: String): Int = t.lastIndexOf(element) + override fun add(element: String): Boolean = t.add(element) + override fun add(index: Int, element: String) = t.add(index, element) + override fun addAll(index: Int, elements: Collection): Boolean = t.addAll(index, elements) + override fun addAll(elements: Collection): Boolean = t.addAll(elements) + override fun listIterator(): MutableListIterator = t.listIterator() + override fun listIterator(index: Int): MutableListIterator = t.listIterator(index) + override fun clear() { t.clear() } + override fun remove(element: String): Boolean = t.remove(element) + override fun removeAll(elements: Collection): Boolean = t.removeAll(elements) + override fun removeAt(index: Int): String = t.removeAt(index) + override fun retainAll(elements: Collection): Boolean = t.retainAll(elements) + override fun subList(fromIndex: Int, toIndex: Int): MutableList = t.subList(fromIndex, toIndex) +} + +class Test : IFooList, IFooMutableList { + val arr = arrayListOf() + override fun foo() = AL(arr) +} + +fun box(): String { + val t1: IFooList = Test() + val list1 = t1.foo() + if (list1 !is AL<*>) throw AssertionError("list1: $list1") + + val t2: IFooMutableList = Test() + val list2 = t2.foo() + if (list2 !is AL<*>) throw AssertionError("list2: $list2") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt new file mode 100644 index 00000000000..bc8fd2b6a54 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt @@ -0,0 +1,43 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IQ1 +interface IQ2 + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T): IQ1, IQ2 + +interface IFoo1 { + fun foo(): IQ1 +} + +interface IFoo2 { + fun foo(): IQ2 +} + +class Test : IFoo1, IFoo2 { + override fun foo() = X("OK") +} + +fun box(): String { + val t1: IFoo1 = Test() + val x1 = t1.foo() + if (x1 !is X<*>) { + throw AssertionError("x1: X expected: $x1") + } + if (x1.x != "OK") { + throw AssertionError("x1: ${x1.x}") + } + + val t2: IFoo2 = Test() + val x2 = t2.foo() + if (x2 !is X<*>) { + throw AssertionError("x2: X expected: $x2") + } + if (x2.x != "OK") { + throw AssertionError("x2: ${x2.x}") + } + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt new file mode 100644 index 00000000000..b04362f968c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +interface IFoo { + fun foo(): T + fun bar(): X +} + +class TestX : IFoo> { + override fun foo(): X = X("O") + override fun bar(): X = X("K") +} + +fun box(): String { + val t: IFoo> = TestX() + val tFoo: Any = t.foo() + if (tFoo !is X<*>) { + throw AssertionError("X expected: $tFoo") + } + + return (t.foo() as X<*>).x.toString() + t.bar().x.toString() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt new file mode 100644 index 00000000000..cb1bd2062b1 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt @@ -0,0 +1,49 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface GFoo { + fun foo(): T +} + +interface IBar { + fun bar(): String +} + +interface SFooBar : GFoo + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) : IBar { + override fun bar(): String = x +} + +class Test : SFooBar { + override fun foo() = X("OK") +} + +fun box(): String { + val t1: SFooBar = Test() + val foo1 = t1.foo() + if (foo1 !is X<*>) { + throw AssertionError("foo1: $foo1") + } + val bar1 = foo1.bar() + if (bar1 != "OK") { + throw AssertionError("bar1: $bar1") + } + + val t2: GFoo = Test() + val foo2 = t2.foo() + if (foo2 !is IBar) { + throw AssertionError("foo2 !is IBar: $foo2") + } + val bar2 = foo2.bar() + if (bar2 != "OK") { + throw AssertionError("bar2: $bar2") + } + if (foo2 !is X<*>) { + throw AssertionError("foo2 !is X: $foo2") + } + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt new file mode 100644 index 00000000000..a29730d044b --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt @@ -0,0 +1,24 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +interface IFoo1 { + fun foo(x: T): X +} + +interface IFoo2 { + fun foo(x: String): X +} + +class Test : IFoo1, IFoo2 { + override fun foo(x: String): X = X(x) +} + +fun box(): String { + val t1: IFoo1 = Test() + val t2: IFoo2 = Test() + return t1.foo("O").x + t2.foo("K").x +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt new file mode 100644 index 00000000000..50283565970 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt @@ -0,0 +1,20 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class ResultOrClosed(val x: T) + +interface A { + fun foo(): T +} + +class B : A> { + override fun foo(): ResultOrClosed = ResultOrClosed("OK") +} + +fun box(): String { + val foo: Any = (B() as A>).foo() + if (foo !is ResultOrClosed<*>) throw AssertionError("foo: $foo") + return foo.x.toString() +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt new file mode 100644 index 00000000000..c2f9dec07fb --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class FieldValue(val value: T) + +enum class RequestFields { + ENUM_ONE +} + +class RequestInputParameters( + private val backingMap: Map> +) : Map> by backingMap + +fun box(): String { + val testMap1 = mapOf(RequestFields.ENUM_ONE to FieldValue("value1")) + val test1 = testMap1[RequestFields.ENUM_ONE]!! + if (test1.value != "value1") throw AssertionError("test1: $test1") + + val testMap2 = RequestInputParameters(mapOf(RequestFields.ENUM_ONE to FieldValue("value2"))) + val test2 = testMap2[RequestFields.ENUM_ONE]!! + if (test2.value != "value2") throw AssertionError("test2: $test2") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt new file mode 100644 index 00000000000..223d05169c7 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt @@ -0,0 +1,21 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class NumberInlineClass(val value: T) + +interface TypeAdapter { + fun decode(string: FROM): TO +} + +class StringToDoubleTypeAdapter : TypeAdapter> { + override fun decode(string: String) = NumberInlineClass(string.toDouble()) +} + +fun box(): String { + val typeAdapter = StringToDoubleTypeAdapter() + val test = typeAdapter.decode("2019") + if (test.value != 2019.0) throw AssertionError("test: $test") + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt new file mode 100644 index 00000000000..0b6af073965 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Marker(val i: Int) + +interface I { + fun foo(i: Marker) : T +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class IC(val a: T) + +class C : I> { + override fun foo(i: Marker): IC = IC("OK") +} + +fun box(): String { + val i: I> = C() + val foo: IC = i.foo(Marker(0)) + if (foo.a != "OK") return "FAIL 1" + val foo1: IC = C().foo(Marker(0)) + if (foo1.a != "OK") return "FAIL 2" + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt new file mode 100644 index 00000000000..d7943d8638f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +interface IFoo?> { + fun foo(): T +} + +class Test : IFoo> { + override fun foo(): X = X("OK") +} + +fun box(): String { + val t1: IFoo> = Test() + val x1 = t1.foo() + if (x1 != X("OK")) throw AssertionError("x1: $x1") + + val t2 = Test() + val x2 = t2.foo() + if (x2 != X("OK")) throw AssertionError("x2: $x2") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt new file mode 100644 index 00000000000..f099b0df5da --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +interface IFoo?> { + fun foo(): T +} + +class Test : IFoo> { + override fun foo(): X = X("OK") +} + +fun box(): String { + val t1: IFoo> = Test() + val x1 = t1.foo() + if (x1 != X("OK")) throw AssertionError("x1: $x1") + + val t2 = Test() + val x2 = t2.foo() + if (x2 != X("OK")) throw AssertionError("x2: $x2") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt new file mode 100644 index 00000000000..73237b63efc --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt @@ -0,0 +1,28 @@ +// IGNORE_BACKEND: JS_IR +// WITH_STDLIB +// IGNORE_BACKEND: JS_IR_ES6 +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +interface IFoo?> { + fun foo(): T +} + +class Test : IFoo?> { + override fun foo(): X? = X(null) +} + +fun box(): String { + val t1: IFoo?> = Test() + val x1 = t1.foo() + if (x1 != X(null)) throw AssertionError("x1: $x1") + + val t2 = Test() + val x2 = t2.foo() + if (x2 != X(null)) throw AssertionError("x2: $x2") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt new file mode 100644 index 00000000000..84d6c772e00 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +interface IFoo { + fun foo(): X? +} + +class Test : IFoo { + override fun foo(): X? = X("OK") +} + +fun box(): String { + val t1: IFoo = Test() + val x1 = t1.foo() + if (x1 != X("OK")) throw AssertionError("x1: $x1") + + val t2 = Test() + val x2 = t2.foo() + if (x2 != X("OK")) throw AssertionError("x2: $x2") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt new file mode 100644 index 00000000000..c819c94de85 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +interface IFoo { + fun foo(): X? +} + +class Test : IFoo { + override fun foo(): X? = X("OK") +} + +fun box(): String { + val t1: IFoo = Test() + val x1 = t1.foo() + if (x1 != X("OK")) throw AssertionError("x1: $x1") + + val t2 = Test() + val x2 = t2.foo() + if (x2 != X("OK")) throw AssertionError("x2: $x2") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt new file mode 100644 index 00000000000..83c9753e479 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +interface IFoo { + fun foo(): X? +} + +class Test : IFoo { + override fun foo(): X? = X(null) +} + +fun box(): String { + val t1: IFoo = Test() + val x1 = t1.foo() + if (x1 != X(null)) throw AssertionError("x1: $x1") + + val t2 = Test() + val x2 = t2.foo() + if (x2 != X(null)) throw AssertionError("x2: $x2") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt new file mode 100644 index 00000000000..a2151c6c96e --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt @@ -0,0 +1,55 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IQ { + fun ok(): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val t: T): IQ { + override fun ok(): String = t.ok() +} + +interface IFoo1 { + fun foo(): Any +} + +interface IFoo2 { + fun foo(): IQ +} + +object OK : IQ { + override fun ok(): String = "OK" +} + +class Test : IFoo1, IFoo2 { + override fun foo(): X = X(OK) +} + +fun box(): String { + val t1: IFoo1 = Test() + val foo1 = t1.foo() + if (foo1 !is IQ) { + throw AssertionError("foo1 !is IQ: $foo1") + } + val ok1 = foo1.ok() + if (ok1 != "OK") { + throw AssertionError("ok1: $ok1") + } + if (foo1 !is X<*>) { + throw AssertionError("foo1 !is X: $foo1") + } + + val t2: IFoo2 = Test() + val foo2 = t2.foo() + if (foo2 !is X<*>) { + throw AssertionError("foo2 !is X: $foo2") + } + val ok2 = foo2.ok() + if (ok2 != "OK") { + throw AssertionError("ok1: $ok2") + } + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt new file mode 100644 index 00000000000..56a521cd280 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt @@ -0,0 +1,55 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IQ { + fun ok(): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val t: T): IQ { + override fun ok(): String = t.ok() +} + +interface IFoo1 { + fun foo(): IQ +} + +interface IFoo2 { + fun foo(): Any +} + +object OK : IQ { + override fun ok(): String = "OK" +} + +class Test : IFoo1, IFoo2 { + override fun foo(): X = X(OK) +} + +fun box(): String { + val t1: IFoo1 = Test() + val foo1 = t1.foo() + if (foo1 !is X<*>) { + throw AssertionError("foo1 !is X: $foo1") + } + val ok1 = foo1.ok() + if (ok1 != "OK") { + throw AssertionError("ok1: $ok1") + } + + val t2: IFoo2 = Test() + val foo2 = t2.foo() + if (foo2 !is IQ) { + throw AssertionError("foo2 !is IQ: $foo2") + } + val ok2 = foo2.ok() + if (ok2 != "OK") { + throw AssertionError("ok2: $ok2") + } + if (foo2 !is X<*>) { + throw AssertionError("foo2 !is X: $foo2") + } + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt new file mode 100644 index 00000000000..7b4f0bae8f6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt @@ -0,0 +1,57 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IBase + +interface IQ : IBase { + fun ok(): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val t: T): IQ { + override fun ok(): String = t.ok() +} + +interface IFoo1 { + fun foo(): Any +} + +interface IFoo2 { + fun foo(): T +} + +object OK : IQ { + override fun ok(): String = "OK" +} + +class Test : IFoo1, IFoo2 { + override fun foo(): X = X(OK) +} + +fun box(): String { + val t1: IFoo1 = Test() + val foo1 = t1.foo() + if (foo1 !is IQ) { + throw AssertionError("foo1 !is IQ: $foo1") + } + val ok1 = foo1.ok() + if (ok1 != "OK") { + throw AssertionError("ok1: $ok1") + } + if (foo1 !is X<*>) { + throw AssertionError("foo1 !is X: $foo1") + } + + val t2: IFoo2 = Test() + val foo2 = t2.foo() + if (foo2 !is X<*>) { + throw AssertionError("foo2 !is X: $foo2") + } + val ok2 = foo2.ok() + if (ok2 != "OK") { + throw AssertionError("ok1: $ok2") + } + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt new file mode 100644 index 00000000000..12a84b783c3 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt @@ -0,0 +1,57 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IBase + +interface IQ : IBase { + fun ok(): String +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val t: T): IQ { + override fun ok(): String = t.ok() +} + +interface IFoo1 { + fun foo(): T +} + +interface IFoo2 { + fun foo(): Any +} + +object OK : IQ { + override fun ok(): String = "OK" +} + +class Test : IFoo1, IFoo2 { + override fun foo(): X = X(OK) +} + +fun box(): String { + val t1: IFoo1 = Test() + val foo1 = t1.foo() + if (foo1 !is X<*>) { + throw AssertionError("foo1 !is X: $foo1") + } + val ok1 = foo1.ok() + if (ok1 != "OK") { + throw AssertionError("ok1: $ok1") + } + + val t2: IFoo2 = Test() + val foo2 = t2.foo() + if (foo2 !is IQ) { + throw AssertionError("foo2 !is IQ: $foo2") + } + val ok2 = foo2.ok() + if (ok2 != "OK") { + throw AssertionError("ok2: $ok2") + } + if (foo2 !is X<*>) { + throw AssertionError("foo2 !is X: $foo2") + } + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt new file mode 100644 index 00000000000..d022b88ebed --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt @@ -0,0 +1,19 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +interface IFoo { + fun foo(): T +} + +class TestX : IFoo> { + override fun foo(): X = X("OK") +} + +fun box(): String { + val t: IFoo> = TestX() + return ((t.foo() as Any) as X<*>).x.toString() +} diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt new file mode 100644 index 00000000000..5ebb2bdf561 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt @@ -0,0 +1,40 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +interface IFoo1 { + fun foo(): T +} + +interface IFoo2 { + fun foo(): T +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class X(val x: T) + +class Test : IFoo1>, IFoo2> { + override fun foo(): X = X("OK") +} + +fun box(): String { + val t1: IFoo1 = Test() + val foo1 = t1.foo() + if (foo1 !is X<*>) { + throw AssertionError("foo1 !is X: $foo1") + } + if (foo1.x != "OK") { + throw AssertionError("foo1.x != 'OK': $foo1") + } + + val t2: IFoo2 = Test() + val foo2 = t2.foo() + if (foo2 !is X<*>) { + throw AssertionError("foo2 !is X: $foo2") + } + if (foo2.x != "OK") { + throw AssertionError("foo2.x != 'OK': $foo2") + } + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt new file mode 100644 index 00000000000..de299c08caa --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt @@ -0,0 +1,24 @@ +// 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 L(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) + +fun Z.test() = x +fun L.test() = x +fun S.test() = x + +fun box(): String { + if (Z(42)::test.invoke() != 42) throw AssertionError() + if (L(1234L)::test.invoke() != 1234L) throw AssertionError() + if (S("abcdef")::test.invoke() != "abcdef") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt new file mode 100644 index 00000000000..3021e92bbcf --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt @@ -0,0 +1,24 @@ +// 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 L(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) + +val Z.xx get() = x +val L.xx get() = x +val S.xx get() = x + +fun box(): String { + if (Z(42)::xx.get() != 42) throw AssertionError() + if (L(1234L)::xx.get() != 1234L) throw AssertionError() + if (S("abcdef")::xx.get() != "abcdef") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt new file mode 100644 index 00000000000..ce3ef300e2d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) { + fun test() = x +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(val x: T) { + fun test() = x +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) { + fun test() = x +} + +fun box(): String { + if (Z(42)::test.invoke() != 42) throw AssertionError() + if (L(1234L)::test.invoke() != 1234L) throw AssertionError() + if (S("abcdef")::test.invoke() != "abcdef") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt new file mode 100644 index 00000000000..53afd21bc72 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) { + val xx get() = x +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(val x: T) { + val xx get() = x +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) { + val xx get() = x +} + +fun box(): String { + if (Z(42)::xx.get() != 42) throw AssertionError() + if (L(1234L)::xx.get() != 1234L) throw AssertionError() + if (S("abcdef")::xx.get() != "abcdef") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt new file mode 100644 index 00000000000..92a704007a0 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt @@ -0,0 +1,20 @@ +// 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 L(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) + +fun box(): String { + if (Z(42)::x.get() != 42) throw AssertionError() + if (L(1234L)::x.get() != 1234L) throw AssertionError() + if (S("abcdef")::x.get() != "abcdef") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt new file mode 100644 index 00000000000..5cdd83fcbe7 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt @@ -0,0 +1,19 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.assertEquals + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) + +class Outer(val z1: Z) { + inner class Inner(val z2: Z) +} + +fun box(): String { + assertEquals(Z(1), ::Outer.invoke(Z(1)).z1) + assertEquals(Z(2), Outer::Inner.invoke(Outer(Z(1)), Z(2)).z2) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt new file mode 100644 index 00000000000..f36317e6d66 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt @@ -0,0 +1,29 @@ +// IGNORE_BACKEND: WASM +// WASM_MUTE_REASON: IGNORED_IN_JS +// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE +// WITH_REFLECT +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.* + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val s: T) + +fun box(): String { + val a = Z("a") + val b = Z("b") + + val equals = Z::equals + assertTrue(equals.call(a, a)) + assertFalse(equals.call(a, b)) + + val hashCode = Z::hashCode + assertEquals(a.s.hashCode(), hashCode.call(a)) + + val toString = Z::toString + assertEquals("Z(s=${a.s})", toString.call(a)) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt new file mode 100644 index 00000000000..dde79693d1d --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt @@ -0,0 +1,20 @@ +// 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 L(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) + +fun test(aZ: Z, aL: L, aS: S) = "${aZ.x} ${aL.x} ${aS.x}" + +fun box(): String { + if (::test.invoke(Z(1), L(1L), S("abc")) != "1 1 abc") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt new file mode 100644 index 00000000000..4c4420a25ad --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt @@ -0,0 +1,24 @@ +// 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 L(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) + +fun Z.test() = x +fun L.test() = x +fun S.test() = x + +fun box(): String { + if (Z::test.invoke(Z(42)) != 42) throw AssertionError() + if (L::test.invoke(L(1234L)) != 1234L) throw AssertionError() + if (S::test.invoke(S("abcdef")) != "abcdef") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt new file mode 100644 index 00000000000..2d07a612f4a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt @@ -0,0 +1,24 @@ +// 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 L(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) + +val Z.xx get() = x +val L.xx get() = x +val S.xx get() = x + +fun box(): String { + if ((Z::xx).get(Z(42)) != 42) throw AssertionError() + if ((L::xx).get(L(1234L)) != 1234L) throw AssertionError() + if ((S::xx).get(S("abcdef")) != "abcdef") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt new file mode 100644 index 00000000000..ec4740114bd --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.assertEquals + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(internal val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(internal val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(internal val x: T) + +fun box(): String { + assertEquals(42, Z::x.get(Z(42))) + assertEquals(1234L, L::x.get(L(1234L))) + assertEquals("abc", S::x.get(S("abc"))) + + assertEquals(42, Z::x.invoke(Z(42))) + assertEquals(1234L, L::x.invoke(L(1234L))) + assertEquals("abc", S::x.invoke(S("abc"))) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt new file mode 100644 index 00000000000..b74f97f3adf --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) { + fun test() = x +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(val x: T) { + fun test() = x +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) { + fun test() = x +} + +fun box(): String { + if (Z::test.invoke(Z(42)) != 42) throw AssertionError() + if (L::test.invoke(L(1234L)) != 1234L) throw AssertionError() + if (S::test.invoke(S("abcdef")) != "abcdef") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt new file mode 100644 index 00000000000..baeece3c4ae --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) { + val xx get() = x +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(val x: T) { + val xx get() = x +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) { + val xx get() = x +} + +fun box(): String { + if ((Z::xx).get(Z(42)) != 42) throw AssertionError() + if ((L::xx).get(L(1234L)) != 1234L) throw AssertionError() + if ((S::xx).get(S("abcdef")) != "abcdef") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt new file mode 100644 index 00000000000..9fca06225eb --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt @@ -0,0 +1,20 @@ +// 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 L(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) + +fun box(): String { + if (42.let(::Z).x != 42) throw AssertionError() + if (1234L.let(::L).x != 1234L) throw AssertionError() + if ("abcdef".let(::S).x != "abcdef") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt new file mode 100644 index 00000000000..c563d5ff8ff --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt @@ -0,0 +1,20 @@ +// 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 L(val x: T) + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(val x: T) + +fun box(): String { + if ((Z::x).get(Z(42)) != 42) throw AssertionError() + if ((L::x).get(L(1234L)) != 1234L) throw AssertionError() + if ((S::x).get(S("abcdef")) != "abcdef") throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt new file mode 100644 index 00000000000..48e13507065 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt @@ -0,0 +1,38 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +import kotlin.test.assertEquals + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(private val x: T) { + companion object { + val xref = Z::x + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class L(private val x: T) { + companion object { + val xref = L::x + } +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class S(private val x: T) { + companion object { + val xref = S::x + } +} + +fun box(): String { + assertEquals(42, Z.xref.get(Z(42))) + assertEquals(1234L, L.xref.get(L(1234L))) + assertEquals("abc", S.xref.get(S("abc"))) + + assertEquals(42, Z.xref.invoke(Z(42))) + assertEquals(1234L, L.xref.invoke(L(1234L))) + assertEquals("abc", S.xref.invoke(S("abc"))) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt new file mode 100644 index 00000000000..6fe8d8dc7b6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt @@ -0,0 +1,21 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) + +class C(var z: Z) + +fun box(): String { + val x = C(Z(42)) + + val ref = x::z + + if (ref.get().x != 42) throw AssertionError() + + ref.set(Z(1234)) + if (ref.get().x != 1234) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt new file mode 100644 index 00000000000..c8c3cabc485 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt @@ -0,0 +1,21 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) + +class C(var z: Z) + +fun box(): String { + val ref = C::z + + val x = C(Z(42)) + + if (ref.get(x).x != 42) throw AssertionError() + + ref.set(x, Z(1234)) + if (ref.get(x).x != 1234) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt new file mode 100644 index 00000000000..762097a2813 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt @@ -0,0 +1,19 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Z(val x: T) + +var topLevel = Z(42) + +fun box(): String { + val ref = ::topLevel + + if (ref.get().x != 42) throw AssertionError() + + ref.set(Z(1234)) + if (ref.get().x != 1234) throw AssertionError() + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt new file mode 100644 index 00000000000..ded89da2770 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt @@ -0,0 +1,27 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(val x: T) + +fun useR(r: R) { + if (r.x as String != "OK") throw AssertionError("$r") +} + +fun useR0(fn: () -> R) { + useR(fn()) +} + +fun useR1(r: R, fn: (R) -> R) { + useR(fn(r)) +} + +fun fnWithDefaultR(r: R = R("OK")) = r + +fun box(): String { + useR0(::fnWithDefaultR) + useR1(R("OK"), ::fnWithDefaultR) + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyGeneric.kt new file mode 100644 index 00000000000..e5bbd162f54 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyGeneric.kt @@ -0,0 +1,33 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Value(val value: T) + +object Foo { + fun foo(value: Value) { + res = value.value + } + + fun bar(value: Value?) { + res = value?.value + } +} + +var res: String? = "FAIL" + +fun box(): String { + Value("OK").let(Foo::foo) + if (res != "OK") return "FAIL 1: $res" + res = "FAIL 2" + + Value("OK").let(Foo::bar) + if (res != "OK") return "FAIL 3: $res" + res = "FAIL 4" + + null.let(Foo::bar) + if (res != null) return "FAIL 5: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric.kt new file mode 100644 index 00000000000..5e21e00eb46 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric.kt @@ -0,0 +1,33 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Value(val value: T) + +object Foo { + fun foo(value: Value) { + res = value.value + } + + fun bar(value: Value?) { + res = value?.value + } +} + +var res: String? = "FAIL" + +fun box(): String { + Value("OK").let(Foo::foo) + if (res != "OK") return "FAIL 1: $res" + res = "FAIL 2" + + Value("OK").let(Foo::bar) + if (res != "OK") return "FAIL 3: $res" + res = "FAIL 4" + + null.let(Foo::bar) + if (res != null) return "FAIL 5: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt new file mode 100644 index 00000000000..d26070efb74 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt @@ -0,0 +1,33 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Value(val value: T) + +object Foo { + fun foo(value: Value) { + res = value.value + } + + fun bar(value: Value?) { + res = value?.value + } +} + +var res: Int? = 0 + +fun box(): String { + Value(42).let(Foo::foo) + if (res != 42) return "FAIL 1 $res" + res = 0 + + Value(42).let(Foo::bar) + if (res != 42) return "FAIL 2 $res" + res = 0 + + null.let(Foo::bar) + if (res != null) return "FAIL 3: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt new file mode 100644 index 00000000000..fb296c0e82b --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt @@ -0,0 +1,33 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Value(val value: T) + +object Foo { + fun foo(value: Value) { + res = value.value + } + + fun bar(value: Value?) { + res = value?.value + } +} + +var res: Int? = 0 + +fun box(): String { + Value(42).let(Foo::foo) + if (res != 42) return "FAIL 1 $res" + res = 0 + + Value(42).let(Foo::bar) + if (res != 42) return "FAIL 2 $res" + res = 0 + + null.let(Foo::bar) + if (res != null) return "FAIL 3: $res" + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt new file mode 100644 index 00000000000..367144d4fbb --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt @@ -0,0 +1,10 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Value(val value: T) + +fun foo(value: Value?) = value?.value + +fun box(): String = (null as Value?).let(::foo) ?: "OK" diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringGeneric.kt new file mode 100644 index 00000000000..fc117df0609 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringGeneric.kt @@ -0,0 +1,32 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Value(val value: T) + +object Foo { + fun foo(value: Value) { + res = value.value + } + + fun bar(value: Value?) { + res = value?.value + } +} + +var res: String? = "FAIL" + +fun box(): String { + Value("OK").let(Foo::foo) + if (res != "OK") return "FAIL 1: $res" + res = "FAIL 2" + + Value("OK").let(Foo::bar) + if (res != "OK") return "FAIL 3: $res" + res = "FAIL 4" + + null.let(Foo::bar) + if (res != null) return "FAIL 3: $res" + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt new file mode 100644 index 00000000000..9f462cb5b64 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt @@ -0,0 +1,32 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Value(val value: T) + +object Foo { + fun foo(value: Value) { + res = value.value + } + + fun bar(value: Value?) { + res = value?.value + } +} + +var res: String? = "FAIL" + +fun box(): String { + Value("OK").let(Foo::foo) + if (res != "OK") return "FAIL 1: $res" + res = "FAIL 2" + + Value("OK").let(Foo::bar) + if (res != "OK") return "FAIL 3: $res" + res = "FAIL 4" + + null.let(Foo::bar) + if (res != null) return "FAIL 3: $res" + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt new file mode 100644 index 00000000000..9bdb592f81c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = ok() + + companion object { + private fun ok() = "OK" + } +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt new file mode 100644 index 00000000000..f55d30d9efd --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = ok() + + companion object { + private fun ok() = "OK" + } +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt new file mode 100644 index 00000000000..2080970b371 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Composed(val s: T) { + private constructor(s1: String, s2: String) : this((s1 + s2) as T) + + companion object { + fun p1(s: String) = Composed("O", s) + } +} + +fun box() = Composed.p1("K").s \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt new file mode 100644 index 00000000000..ab3a540a49a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt @@ -0,0 +1,16 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Composed(val s: T) { + + constructor(s: String, x: Int) : this(s.subSequence(0, x).toString() as T) + + private constructor(s1: String, s2: String) : this((s1 + s2) as T, 2) + + fun p1(s2: String) = + { Composed(s, s2) } +} + +fun box() = Composed("O").p1("K1234")().s \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt new file mode 100644 index 00000000000..11a7558a817 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + private fun ok() = "OK" + + companion object { + fun test(r: R) = r.ok() + } +} + +fun box() = R.test(R(0)) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt new file mode 100644 index 00000000000..5217a6bf2bf --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + private fun ok() = "OK" + + companion object { + fun test(r: R) = r.ok() + } +} + +fun box() = R.test(R(0)) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt new file mode 100644 index 00000000000..3390489693b --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = run { ok() } + + private fun ok() = "OK" +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt new file mode 100644 index 00000000000..55533ccc3b5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = run { ok() } + + private fun ok() = "OK" +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt new file mode 100644 index 00000000000..cf6dac8100e --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = { ok() }() + + private fun ok() = "OK" +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt new file mode 100644 index 00000000000..1911223a756 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun eval(fn: () -> T) = fn() + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = eval { ok() } + + private fun ok() = "OK" +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethodGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethodGeneric.kt new file mode 100644 index 00000000000..032081c2682 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethodGeneric.kt @@ -0,0 +1,16 @@ +// TARGET_BACKEND: JVM +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = ok() + + companion object { + @JvmStatic + private fun ok() = "OK" + } +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt new file mode 100644 index 00000000000..ffe5ae9073e --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = { ok() }() + + fun ok() = "OK" +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt new file mode 100644 index 00000000000..13d19bc37d3 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = { ok() }() + + fun ok() = "OK" +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt new file mode 100644 index 00000000000..69623eb5f20 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = object { + override fun toString() = ok() + }.toString() + + fun ok() = "OK" +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt new file mode 100644 index 00000000000..90ab8567d72 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +inline fun runInline(fn: () -> String) = fn() + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = runInline { "OK" } +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt new file mode 100644 index 00000000000..00499ea0d8b --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Direction(private val direction: T) { + fun dx() = dx[direction] + fun dy() = dy[direction] + + companion object { + private val dx = intArrayOf(0, 1, 0, -1) + private val dy = intArrayOf(-1, 0, 1, 0) + } +} + +fun box(): String { + val dirs = arrayOf(Direction(0), Direction(1), Direction(2), Direction(3)) + val expectedDx = intArrayOf(0, 1, 0, -1) + val expectedDy = intArrayOf(-1, 0, 1, 0) + for (i in 0 .. 3) { + if (dirs[i].dx() != expectedDx[i]) throw AssertionError() + if (dirs[i].dy() != expectedDy[i]) throw AssertionError() + } + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt new file mode 100644 index 00000000000..a5c1723f78c --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt @@ -0,0 +1,11 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class A(val b: T) { + override fun toString(): String = + buildString { append(b) } +} + +fun box() = A("OK").toString() diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt new file mode 100644 index 00000000000..dd1739f1433 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt @@ -0,0 +1,18 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class Test(val x: T) { + private companion object { + private const val CONSTANT = "OK" + } + + fun crash() = getInlineConstant() + + private inline fun getInlineConstant(): String { + return CONSTANT + } +} + +fun box() = Test(1).crash() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt new file mode 100644 index 00000000000..c6a2aee0739 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +fun eval(fn: () -> T) = fn() + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = eval { "OK" } +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt new file mode 100644 index 00000000000..aa7abbafbec --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt @@ -0,0 +1,13 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = + object { + override fun toString() = "OK" + }.toString() +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt new file mode 100644 index 00000000000..119344a9ded --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = pf() + + companion object { + private fun pf() = "OK" + } +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt new file mode 100644 index 00000000000..5537e7560dd --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt @@ -0,0 +1,14 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +OPTIONAL_JVM_INLINE_ANNOTATION +value class R(private val r: T) { + fun test() = pv + + companion object { + private val pv = "OK" + } +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibilityGeneric.kt b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibilityGeneric.kt new file mode 100644 index 00000000000..cecb4dc92b6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibilityGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// !JVM_DEFAULT_MODE: all-compatibility +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// JVM_TARGET: 1.8 + +interface Path { + fun dispatch(s: String = "K") = "dispatch$s" + fun Int.extension(s: String = "K") = "${this}extension$s" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class RealPath(val x: T) : Path + +fun box(): String { + val rp = RealPath(1) + val res = "${rp.dispatch()};${rp.dispatch("KK")};" + + with(rp) { + "${1.extension()};${2.extension("KK")}" + } + if (res != "dispatchK;dispatchKK;1extensionK;2extensionKK") return res + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/allGeneric.kt b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/allGeneric.kt new file mode 100644 index 00000000000..66578ed08e6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/allGeneric.kt @@ -0,0 +1,27 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// !JVM_DEFAULT_MODE: all +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// JVM_TARGET: 1.8 + +interface Path { + fun dispatch(s: String = "K") = "dispatch$s" + fun Int.extension(s: String = "K") = "${this}extension$s" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class RealPath(val x: T) : Path + +fun box(): String { + val rp = RealPath(1) + val res = "${rp.dispatch()};${rp.dispatch("KK")};" + + with(rp) { + "${1.extension()};${2.extension("KK")}" + } + if (res != "dispatchK;dispatchKK;1extensionK;2extensionKK") return res + return "OK" +} + diff --git a/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/compatibilityGeneric.kt b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/compatibilityGeneric.kt new file mode 100644 index 00000000000..3083a0a4b57 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/compatibilityGeneric.kt @@ -0,0 +1,26 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// !JVM_DEFAULT_MODE: compatibility +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// JVM_TARGET: 1.8 + +interface Path { + fun dispatch(s: String = "K") = "dispatch$s" + fun Int.extension(s: String = "K") = "${this}extension$s" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class RealPath(val x: T) : Path + +fun box(): String { + val rp = RealPath(1) + val res = "${rp.dispatch()};${rp.dispatch("KK")};" + + with(rp) { + "${1.extension()};${2.extension("KK")}" + } + if (res != "dispatchK;dispatchKK;1extensionK;2extensionKK") return res + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/defaultGeneric.kt b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/defaultGeneric.kt new file mode 100644 index 00000000000..3ac6b34f792 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/defaultGeneric.kt @@ -0,0 +1,25 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// JVM_TARGET: 1.8 + +interface Path { + fun dispatch(s: String = "K") = "dispatch$s" + fun Int.extension(s: String = "K") = "${this}extension$s" +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class RealPath(val x: T) : Path + +fun box(): String { + val rp = RealPath(1) + val res = "${rp.dispatch()};${rp.dispatch("KK")};" + + with(rp) { + "${1.extension()};${2.extension("KK")}" + } + if (res != "dispatchK;dispatchKK;1extensionK;2extensionKK") return res + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibilityGeneric.kt b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibilityGeneric.kt new file mode 100644 index 00000000000..1aba15ecc83 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibilityGeneric.kt @@ -0,0 +1,31 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// !JVM_DEFAULT_MODE: all-compatibility +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// JVM_TARGET: 1.8 + +interface Path { + fun dispatch(maxDepth: Int = 42) + fun Int.extension(maxDepth: Int = 42) +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class RealPath(val x: T) : Path { + override fun dispatch(maxDepth: Int) = Unit + + fun childrenDispatch(recursively: Boolean): Unit = + if (recursively) dispatch() else dispatch() + + override fun Int.extension(maxDepth: Int) = Unit + + fun Int.childrenExtension(recursively: Boolean): Unit = + if (recursively) extension() else extension() +} + +fun box(): String { + RealPath(1) + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/allGeneric.kt b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/allGeneric.kt new file mode 100644 index 00000000000..31964e52ca6 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/allGeneric.kt @@ -0,0 +1,31 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// !JVM_DEFAULT_MODE: all +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// JVM_TARGET: 1.8 + +interface Path { + fun dispatch(maxDepth: Int = 42) + fun Int.extension(maxDepth: Int = 42) +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class RealPath(val x: T) : Path { + override fun dispatch(maxDepth: Int) = Unit + + fun childrenDispatch(recursively: Boolean): Unit = + if (recursively) dispatch() else dispatch() + + override fun Int.extension(maxDepth: Int) = Unit + + fun Int.childrenExtension(recursively: Boolean): Unit = + if (recursively) extension() else extension() +} + +fun box(): String { + RealPath(1) + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/compatibilityGeneric.kt b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/compatibilityGeneric.kt new file mode 100644 index 00000000000..34f6733a997 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/compatibilityGeneric.kt @@ -0,0 +1,31 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// !JVM_DEFAULT_MODE: compatibility +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// JVM_TARGET: 1.8 + +interface Path { + fun dispatch(maxDepth: Int = 42) + fun Int.extension(maxDepth: Int = 42) +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class RealPath(val x: T) : Path { + override fun dispatch(maxDepth: Int) = Unit + + fun childrenDispatch(recursively: Boolean): Unit = + if (recursively) dispatch() else dispatch() + + override fun Int.extension(maxDepth: Int) = Unit + + fun Int.childrenExtension(recursively: Boolean): Unit = + if (recursively) extension() else extension() +} + +fun box(): String { + RealPath(1) + return "OK" +} diff --git a/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/defaultGeneric.kt b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/defaultGeneric.kt new file mode 100644 index 00000000000..e8c32c0b697 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/defaultGeneric.kt @@ -0,0 +1,30 @@ +// WITH_STDLIB +// WORKS_WHEN_VALUE_CLASS +// LANGUAGE: +ValueClasses, +GenericInlineClassParameter + +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// JVM_TARGET: 1.8 + +interface Path { + fun dispatch(maxDepth: Int = 42) + fun Int.extension(maxDepth: Int = 42) +} + +OPTIONAL_JVM_INLINE_ANNOTATION +value class RealPath(val x: T) : Path { + override fun dispatch(maxDepth: Int) = Unit + + fun childrenDispatch(recursively: Boolean): Unit = + if (recursively) dispatch() else dispatch() + + override fun Int.extension(maxDepth: Int) = Unit + + fun Int.childrenExtension(recursively: Boolean): Unit = + if (recursively) extension() else extension() +} + +fun box(): String { + RealPath(1) + 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 a06742d974e..fb372a4ac2e 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 @@ -20320,60 +20320,120 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxAnyGeneric.kt") + public void testBoxAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxFunLiteralAny.kt") public void testBoxFunLiteralAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxFunLiteralAnyGeneric.kt") + public void testBoxFunLiteralAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxInt.kt") public void testBoxInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxIntGeneric.kt") + public void testBoxIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableAny.kt") public void testBoxNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableAnyGeneric.kt") + public void testBoxNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableAnyNull.kt") public void testBoxNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableAnyNullGeneric.kt") + public void testBoxNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableInt.kt") public void testBoxNullableInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableIntGeneric.kt") + public void testBoxNullableIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableIntNull.kt") public void testBoxNullableIntNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableIntNullGeneric.kt") + public void testBoxNullableIntNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableString.kt") public void testBoxNullableString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableStringGeneric.kt") + public void testBoxNullableStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableStringNull.kt") public void testBoxNullableStringNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableStringNullGeneric.kt") + public void testBoxNullableStringNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxString.kt") public void testBoxString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxStringGeneric.kt") + public void testBoxStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27586_1.kt") public void testKt27586_1() throws Exception { @@ -20402,84 +20462,168 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxReturnValueInDefaultMethodGenericInt.kt") + public void testBoxReturnValueInDefaultMethodGenericInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideChainErasedToAny.kt") public void testCovariantOverrideChainErasedToAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideChainErasedToAnyGeneric.kt") + public void testCovariantOverrideChainErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideChainErasedToNullableAny.kt") public void testCovariantOverrideChainErasedToNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideChainErasedToNullableAnyGeneric.kt") + public void testCovariantOverrideChainErasedToNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideErasedToAny.kt") public void testCovariantOverrideErasedToAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideErasedToAnyGeneric.kt") + public void testCovariantOverrideErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideErasedToInterface.kt") public void testCovariantOverrideErasedToInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideErasedToInterfaceGeneric.kt") + public void testCovariantOverrideErasedToInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideErasedToPrimitive.kt") public void testCovariantOverrideErasedToPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideErasedToPrimitiveGeneric.kt") + public void testCovariantOverrideErasedToPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideListVsMutableList.kt") public void testCovariantOverrideListVsMutableList() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideListVsMutableListGeneric.kt") + public void testCovariantOverrideListVsMutableListGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideUnrelatedInterfaces.kt") public void testCovariantOverrideUnrelatedInterfaces() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfaces.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideUnrelatedInterfacesGeneric.kt") + public void testCovariantOverrideUnrelatedInterfacesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericOverride.kt") public void testGenericOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericOverrideGeneric.kt") + public void testGenericOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericOverrideSpecialized.kt") public void testGenericOverrideSpecialized() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecialized.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericOverrideSpecializedGeneric.kt") + public void testGenericOverrideSpecializedGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassInOverriddenReturnTypes.kt") public void testInlineClassInOverriddenReturnTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassInOverriddenReturnTypesGeneric.kt") + public void testInlineClassInOverriddenReturnTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt28483.kt") public void testKt28483() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt28483Generic.kt") + public void testKt28483Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt31585.kt") public void testKt31585() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt31585Generic.kt") + public void testKt31585Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt35234.kt") public void testKt35234() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt35234Generic.kt") + public void testKt35234Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt35234a.kt") public void testKt35234a() throws Exception { @@ -20492,77 +20636,155 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideGenericWithInlineClassGeneric.kt") + public void testOverrideGenericWithInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullAny.kt") public void testOverrideNullableInlineClassWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullNullableAny.kt") public void testOverrideNullableInlineClassWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNull.kt") public void testOverrideNullableInlineClassWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("relatedReturnTypes1a.kt") public void testRelatedReturnTypes1a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("relatedReturnTypes1aGeneric.kt") + public void testRelatedReturnTypes1aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("relatedReturnTypes1b.kt") public void testRelatedReturnTypes1b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("relatedReturnTypes1bGeneric.kt") + public void testRelatedReturnTypes1bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("relatedReturnTypes2a.kt") public void testRelatedReturnTypes2a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("relatedReturnTypes2aGeneric.kt") + public void testRelatedReturnTypes2aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("relatedReturnTypes2b.kt") public void testRelatedReturnTypes2b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("relatedReturnTypes2bGeneric.kt") + public void testRelatedReturnTypes2bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("uncastInlineClassToAnyAndBack.kt") public void testUncastInlineClassToAnyAndBack() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBack.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("uncastInlineClassToAnyAndBackGeneric.kt") + public void testUncastInlineClassToAnyAndBackGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unrelatedGenerics.kt") public void testUnrelatedGenerics() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenerics.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("unrelatedGenericsGeneric.kt") + public void testUnrelatedGenericsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -20580,120 +20802,240 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassExtensionFunGeneric.kt") + public void testBoundInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundInlineClassExtensionVal.kt") public void testBoundInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassExtensionValGeneric.kt") + public void testBoundInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundInlineClassMemberFun.kt") public void testBoundInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassMemberFunGeneric.kt") + public void testBoundInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundInlineClassMemberVal.kt") public void testBoundInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassMemberValGeneric.kt") + public void testBoundInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundInlineClassPrimaryVal.kt") public void testBoundInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassPrimaryValGeneric.kt") + public void testBoundInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorWithInlineClassParameters.kt") public void testConstructorWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorWithInlineClassParametersGeneric.kt") + public void testConstructorWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsHashCodeToString.kt") public void testEqualsHashCodeToString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsHashCodeToStringGeneric.kt") + public void testEqualsHashCodeToStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("funWithInlineClassParameters.kt") public void testFunWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("funWithInlineClassParametersGeneric.kt") + public void testFunWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassExtensionFun.kt") public void testInlineClassExtensionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassExtensionFunGeneric.kt") + public void testInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassExtensionVal.kt") public void testInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassExtensionValGeneric.kt") + public void testInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassInternalPrimaryVal.kt") public void testInlineClassInternalPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassInternalPrimaryValGeneric.kt") + public void testInlineClassInternalPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassMemberFun.kt") public void testInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassMemberFunGeneric.kt") + public void testInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassMemberVal.kt") public void testInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassMemberValGeneric.kt") + public void testInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassPrimaryConstructor.kt") public void testInlineClassPrimaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassPrimaryConstructorGeneric.kt") + public void testInlineClassPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassPrimaryVal.kt") public void testInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassPrimaryValGeneric.kt") + public void testInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassPrivatePrimaryVal.kt") public void testInlineClassPrivatePrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassPrivatePrimaryValGeneric.kt") + public void testInlineClassPrivatePrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassTypeBoundMemberVar.kt") public void testInlineClassTypeBoundMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassTypeBoundMemberVarGeneric.kt") + public void testInlineClassTypeBoundMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassTypeMemberVar.kt") public void testInlineClassTypeMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassTypeMemberVarGeneric.kt") + public void testInlineClassTypeMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassTypeTopLevelVar.kt") public void testInlineClassTypeTopLevelVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassTypeTopLevelVarGeneric.kt") + public void testInlineClassTypeTopLevelVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt37986.kt") public void testKt37986() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt37986Generic.kt") + public void testKt37986Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses/callableReferences/let") @TestDataPath("$PROJECT_ROOT") @@ -20709,30 +21051,60 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("int.kt") public void testInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/int.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("intGeneric.kt") + public void testIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("intN.kt") public void testIntN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("intNGeneric.kt") + public void testIntNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("null.kt") public void testNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/null.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("nullGeneric.kt") + public void testNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -20745,11 +21117,23 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("stringN.kt") public void testStringN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("stringNGeneric.kt") + public void testStringNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } } @@ -20769,18 +21153,42 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethod2Generic.kt") + public void testAccessPrivateInlineClassCompanionMethod2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateInlineClassCompanionMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassConstructorFromCompanion.kt") public void testAccessPrivateInlineClassConstructorFromCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassConstructorFromLambda.kt") public void testAccessPrivateInlineClassConstructorFromLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { @@ -20793,6 +21201,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2Generic.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassMethodFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { @@ -20805,6 +21225,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromLambda.kt") public void testAccessPrivateInlineClassMethodFromLambda() throws Exception { @@ -20817,12 +21249,30 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt") public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateStaticInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateStaticInlineClassCompanionMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test public void testAllFilesPresentInContextsAndAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); @@ -20840,59 +21290,125 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("captureInlineClassInstanceInLambda2Generic.kt") + public void testCaptureInlineClassInstanceInLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("captureInlineClassInstanceInLambdaGeneric.kt") + public void testCaptureInlineClassInstanceInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("captureInlineClassInstanceInObject.kt") public void testCaptureInlineClassInstanceInObject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObject.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("captureInlineClassInstanceInObjectGeneric.kt") + public void testCaptureInlineClassInstanceInObjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineLambdaInInlineClassFun.kt") public void testInlineLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineLambdaInInlineClassFunGeneric.kt") + public void testInlineLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt26858.kt") public void testKt26858() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt26858Generic.kt") + public void testKt26858Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27513.kt") public void testKt27513() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27513Generic.kt") + public void testKt27513Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt30780.kt") public void testKt30780() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt30780Generic.kt") + public void testKt30780Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("lambdaInInlineClassFun.kt") public void testLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("lambdaInInlineClassFunGeneric.kt") + public void testLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("objectInInlineClassFun.kt") public void testObjectInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("objectInInlineClassFunGeneric.kt") + public void testObjectInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("toPrivateCompanionFun.kt") public void testToPrivateCompanionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("toPrivateCompanionFunGeneric.kt") + public void testToPrivateCompanionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("toPrivateCompanionVal.kt") public void testToPrivateCompanionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("toPrivateCompanionValGeneric.kt") + public void testToPrivateCompanionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -20991,23 +21507,47 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test + @TestMetadata("allGeneric.kt") + public void testAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/allGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("all-compatibility.kt") public void testAll_compatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("all-compatibilityGeneric.kt") + public void testAll_compatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("compatibility.kt") public void testCompatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("compatibilityGeneric.kt") + public void testCompatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("default.kt") public void testDefault() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/default.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/defaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -21025,23 +21565,47 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test + @TestMetadata("allGeneric.kt") + public void testAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/allGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("all-compatibility.kt") public void testAll_compatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("all-compatibilityGeneric.kt") + public void testAll_compatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("compatibility.kt") public void testCompatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("compatibilityGeneric.kt") + public void testCompatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("default.kt") public void testDefault() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/default.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/defaultGeneric.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 fb281f849a5..5ffc00ec679 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 @@ -20740,60 +20740,120 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxAnyGeneric.kt") + public void testBoxAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxFunLiteralAny.kt") public void testBoxFunLiteralAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxFunLiteralAnyGeneric.kt") + public void testBoxFunLiteralAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxInt.kt") public void testBoxInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxIntGeneric.kt") + public void testBoxIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableAny.kt") public void testBoxNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableAnyGeneric.kt") + public void testBoxNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableAnyNull.kt") public void testBoxNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableAnyNullGeneric.kt") + public void testBoxNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableInt.kt") public void testBoxNullableInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableIntGeneric.kt") + public void testBoxNullableIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableIntNull.kt") public void testBoxNullableIntNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableIntNullGeneric.kt") + public void testBoxNullableIntNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableString.kt") public void testBoxNullableString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableStringGeneric.kt") + public void testBoxNullableStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxNullableStringNull.kt") public void testBoxNullableStringNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxNullableStringNullGeneric.kt") + public void testBoxNullableStringNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boxString.kt") public void testBoxString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxStringGeneric.kt") + public void testBoxStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27586_1.kt") public void testKt27586_1() throws Exception { @@ -20822,84 +20882,168 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boxReturnValueInDefaultMethodGenericInt.kt") + public void testBoxReturnValueInDefaultMethodGenericInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideChainErasedToAny.kt") public void testCovariantOverrideChainErasedToAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideChainErasedToAnyGeneric.kt") + public void testCovariantOverrideChainErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideChainErasedToNullableAny.kt") public void testCovariantOverrideChainErasedToNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideChainErasedToNullableAnyGeneric.kt") + public void testCovariantOverrideChainErasedToNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideErasedToAny.kt") public void testCovariantOverrideErasedToAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideErasedToAnyGeneric.kt") + public void testCovariantOverrideErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideErasedToInterface.kt") public void testCovariantOverrideErasedToInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideErasedToInterfaceGeneric.kt") + public void testCovariantOverrideErasedToInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideErasedToPrimitive.kt") public void testCovariantOverrideErasedToPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideErasedToPrimitiveGeneric.kt") + public void testCovariantOverrideErasedToPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideListVsMutableList.kt") public void testCovariantOverrideListVsMutableList() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideListVsMutableListGeneric.kt") + public void testCovariantOverrideListVsMutableListGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("covariantOverrideUnrelatedInterfaces.kt") public void testCovariantOverrideUnrelatedInterfaces() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfaces.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("covariantOverrideUnrelatedInterfacesGeneric.kt") + public void testCovariantOverrideUnrelatedInterfacesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericOverride.kt") public void testGenericOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericOverrideGeneric.kt") + public void testGenericOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("genericOverrideSpecialized.kt") public void testGenericOverrideSpecialized() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecialized.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("genericOverrideSpecializedGeneric.kt") + public void testGenericOverrideSpecializedGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassInOverriddenReturnTypes.kt") public void testInlineClassInOverriddenReturnTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassInOverriddenReturnTypesGeneric.kt") + public void testInlineClassInOverriddenReturnTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt28483.kt") public void testKt28483() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt28483Generic.kt") + public void testKt28483Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt31585.kt") public void testKt31585() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt31585Generic.kt") + public void testKt31585Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt35234.kt") public void testKt35234() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt35234Generic.kt") + public void testKt35234Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt35234a.kt") public void testKt35234a() throws Exception { @@ -20912,77 +21056,155 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideGenericWithInlineClassGeneric.kt") + public void testOverrideGenericWithInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullAny.kt") public void testOverrideNullableInlineClassWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullNullableAny.kt") public void testOverrideNullableInlineClassWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNull.kt") public void testOverrideNullableInlineClassWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("relatedReturnTypes1a.kt") public void testRelatedReturnTypes1a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("relatedReturnTypes1aGeneric.kt") + public void testRelatedReturnTypes1aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("relatedReturnTypes1b.kt") public void testRelatedReturnTypes1b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("relatedReturnTypes1bGeneric.kt") + public void testRelatedReturnTypes1bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("relatedReturnTypes2a.kt") public void testRelatedReturnTypes2a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("relatedReturnTypes2aGeneric.kt") + public void testRelatedReturnTypes2aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("relatedReturnTypes2b.kt") public void testRelatedReturnTypes2b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("relatedReturnTypes2bGeneric.kt") + public void testRelatedReturnTypes2bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("uncastInlineClassToAnyAndBack.kt") public void testUncastInlineClassToAnyAndBack() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBack.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("uncastInlineClassToAnyAndBackGeneric.kt") + public void testUncastInlineClassToAnyAndBackGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("unrelatedGenerics.kt") public void testUnrelatedGenerics() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenerics.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("unrelatedGenericsGeneric.kt") + public void testUnrelatedGenericsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -21000,120 +21222,240 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassExtensionFunGeneric.kt") + public void testBoundInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundInlineClassExtensionVal.kt") public void testBoundInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassExtensionValGeneric.kt") + public void testBoundInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundInlineClassMemberFun.kt") public void testBoundInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassMemberFunGeneric.kt") + public void testBoundInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundInlineClassMemberVal.kt") public void testBoundInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassMemberValGeneric.kt") + public void testBoundInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("boundInlineClassPrimaryVal.kt") public void testBoundInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("boundInlineClassPrimaryValGeneric.kt") + public void testBoundInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("constructorWithInlineClassParameters.kt") public void testConstructorWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("constructorWithInlineClassParametersGeneric.kt") + public void testConstructorWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("equalsHashCodeToString.kt") public void testEqualsHashCodeToString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("equalsHashCodeToStringGeneric.kt") + public void testEqualsHashCodeToStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("funWithInlineClassParameters.kt") public void testFunWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("funWithInlineClassParametersGeneric.kt") + public void testFunWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassExtensionFun.kt") public void testInlineClassExtensionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassExtensionFunGeneric.kt") + public void testInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassExtensionVal.kt") public void testInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassExtensionValGeneric.kt") + public void testInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassInternalPrimaryVal.kt") public void testInlineClassInternalPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassInternalPrimaryValGeneric.kt") + public void testInlineClassInternalPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassMemberFun.kt") public void testInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassMemberFunGeneric.kt") + public void testInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassMemberVal.kt") public void testInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassMemberValGeneric.kt") + public void testInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassPrimaryConstructor.kt") public void testInlineClassPrimaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassPrimaryConstructorGeneric.kt") + public void testInlineClassPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassPrimaryVal.kt") public void testInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassPrimaryValGeneric.kt") + public void testInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassPrivatePrimaryVal.kt") public void testInlineClassPrivatePrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassPrivatePrimaryValGeneric.kt") + public void testInlineClassPrivatePrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassTypeBoundMemberVar.kt") public void testInlineClassTypeBoundMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassTypeBoundMemberVarGeneric.kt") + public void testInlineClassTypeBoundMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassTypeMemberVar.kt") public void testInlineClassTypeMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassTypeMemberVarGeneric.kt") + public void testInlineClassTypeMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineClassTypeTopLevelVar.kt") public void testInlineClassTypeTopLevelVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineClassTypeTopLevelVarGeneric.kt") + public void testInlineClassTypeTopLevelVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt37986.kt") public void testKt37986() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt37986Generic.kt") + public void testKt37986Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses/callableReferences/let") @TestDataPath("$PROJECT_ROOT") @@ -21129,30 +21471,60 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("int.kt") public void testInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/int.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("intGeneric.kt") + public void testIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("intN.kt") public void testIntN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("intNGeneric.kt") + public void testIntNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("null.kt") public void testNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/null.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("nullGeneric.kt") + public void testNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -21165,11 +21537,23 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("stringN.kt") public void testStringN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("stringNGeneric.kt") + public void testStringNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } } @@ -21189,18 +21573,42 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethod2Generic.kt") + public void testAccessPrivateInlineClassCompanionMethod2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateInlineClassCompanionMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassConstructorFromCompanion.kt") public void testAccessPrivateInlineClassConstructorFromCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassConstructorFromLambda.kt") public void testAccessPrivateInlineClassConstructorFromLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { @@ -21213,6 +21621,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2Generic.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassMethodFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { @@ -21225,6 +21645,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromLambda.kt") public void testAccessPrivateInlineClassMethodFromLambda() throws Exception { @@ -21237,12 +21669,30 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt") public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("accessPrivateStaticInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateStaticInlineClassCompanionMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test public void testAllFilesPresentInContextsAndAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); @@ -21260,59 +21710,125 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("captureInlineClassInstanceInLambda2Generic.kt") + public void testCaptureInlineClassInstanceInLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("captureInlineClassInstanceInLambdaGeneric.kt") + public void testCaptureInlineClassInstanceInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("captureInlineClassInstanceInObject.kt") public void testCaptureInlineClassInstanceInObject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObject.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("captureInlineClassInstanceInObjectGeneric.kt") + public void testCaptureInlineClassInstanceInObjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("inlineLambdaInInlineClassFun.kt") public void testInlineLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("inlineLambdaInInlineClassFunGeneric.kt") + public void testInlineLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt26858.kt") public void testKt26858() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt26858Generic.kt") + public void testKt26858Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt27513.kt") public void testKt27513() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt27513Generic.kt") + public void testKt27513Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("kt30780.kt") public void testKt30780() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("kt30780Generic.kt") + public void testKt30780Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("lambdaInInlineClassFun.kt") public void testLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("lambdaInInlineClassFunGeneric.kt") + public void testLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("objectInInlineClassFun.kt") public void testObjectInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("objectInInlineClassFunGeneric.kt") + public void testObjectInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("toPrivateCompanionFun.kt") public void testToPrivateCompanionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("toPrivateCompanionFunGeneric.kt") + public void testToPrivateCompanionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("toPrivateCompanionVal.kt") public void testToPrivateCompanionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("toPrivateCompanionValGeneric.kt") + public void testToPrivateCompanionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -21411,23 +21927,47 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test + @TestMetadata("allGeneric.kt") + public void testAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/allGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("all-compatibility.kt") public void testAll_compatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("all-compatibilityGeneric.kt") + public void testAll_compatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("compatibility.kt") public void testCompatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("compatibilityGeneric.kt") + public void testCompatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("default.kt") public void testDefault() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/default.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/defaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @Nested @@ -21445,23 +21985,47 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test + @TestMetadata("allGeneric.kt") + public void testAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/allGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("all-compatibility.kt") public void testAll_compatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("all-compatibilityGeneric.kt") + public void testAll_compatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("compatibility.kt") public void testCompatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @Test + @TestMetadata("compatibilityGeneric.kt") + public void testCompatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @Test @TestMetadata("default.kt") public void testDefault() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/default.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/defaultGeneric.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 d73a4828dc0..7a234331a59 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -16916,51 +16916,101 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxAnyGeneric.kt") + public void testBoxAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxFunLiteralAny.kt") public void testBoxFunLiteralAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxFunLiteralAnyGeneric.kt") + public void testBoxFunLiteralAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxInt.kt") public void testBoxInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxIntGeneric.kt") + public void testBoxIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxNullableAny.kt") public void testBoxNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxNullableAnyGeneric.kt") + public void testBoxNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxNullableAnyNull.kt") public void testBoxNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxNullableAnyNullGeneric.kt") + public void testBoxNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxNullableInt.kt") public void testBoxNullableInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxNullableIntGeneric.kt") + public void testBoxNullableIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxNullableIntNull.kt") public void testBoxNullableIntNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxNullableIntNullGeneric.kt") + public void testBoxNullableIntNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxNullableString.kt") public void testBoxNullableString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxNullableStringGeneric.kt") + public void testBoxNullableStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxNullableStringNull.kt") public void testBoxNullableStringNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxNullableStringNullGeneric.kt") + public void testBoxNullableStringNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boxString.kt") public void testBoxString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxStringGeneric.kt") + public void testBoxStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27586_1.kt") public void testKt27586_1() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/kt27586_1.kt"); @@ -16981,6 +17031,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boxReturnValueInDefaultMethodGenericInt.kt") + public void ignoreBoxReturnValueInDefaultMethodGenericInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -16998,66 +17053,131 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("covariantOverrideChainErasedToAnyGeneric.kt") + public void testCovariantOverrideChainErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("covariantOverrideChainErasedToNullableAny.kt") public void testCovariantOverrideChainErasedToNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("covariantOverrideChainErasedToNullableAnyGeneric.kt") + public void testCovariantOverrideChainErasedToNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("covariantOverrideErasedToAny.kt") public void testCovariantOverrideErasedToAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("covariantOverrideErasedToAnyGeneric.kt") + public void testCovariantOverrideErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("covariantOverrideErasedToInterface.kt") public void testCovariantOverrideErasedToInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("covariantOverrideErasedToInterfaceGeneric.kt") + public void testCovariantOverrideErasedToInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("covariantOverrideErasedToPrimitive.kt") public void testCovariantOverrideErasedToPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("covariantOverrideErasedToPrimitiveGeneric.kt") + public void testCovariantOverrideErasedToPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("covariantOverrideListVsMutableList.kt") public void testCovariantOverrideListVsMutableList() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("covariantOverrideListVsMutableListGeneric.kt") + public void testCovariantOverrideListVsMutableListGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("covariantOverrideUnrelatedInterfaces.kt") public void testCovariantOverrideUnrelatedInterfaces() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfaces.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("covariantOverrideUnrelatedInterfacesGeneric.kt") + public void testCovariantOverrideUnrelatedInterfacesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("genericOverride.kt") public void testGenericOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("genericOverrideGeneric.kt") + public void testGenericOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("genericOverrideSpecialized.kt") public void testGenericOverrideSpecialized() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecialized.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("genericOverrideSpecializedGeneric.kt") + public void testGenericOverrideSpecializedGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassInOverriddenReturnTypes.kt") public void testInlineClassInOverriddenReturnTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassInOverriddenReturnTypesGeneric.kt") + public void testInlineClassInOverriddenReturnTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt28483.kt") public void testKt28483() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt28483Generic.kt") + public void testKt28483Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt31585.kt") public void testKt31585() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt31585Generic.kt") + public void testKt31585Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt35234.kt") public void testKt35234() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt35234Generic.kt") + public void testKt35234Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt35234a.kt") public void testKt35234a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -17068,65 +17188,130 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("overrideGenericWithInlineClassGeneric.kt") + public void testOverrideGenericWithInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("overrideNullableInlineClassWithNonNullAny.kt") public void testOverrideNullableInlineClassWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("overrideNullableInlineClassWithNonNullAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAny.kt") public void testOverrideNullableInlineClassWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNull.kt") public void testOverrideNullableInlineClassWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("relatedReturnTypes1a.kt") public void testRelatedReturnTypes1a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("relatedReturnTypes1aGeneric.kt") + public void testRelatedReturnTypes1aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("relatedReturnTypes1b.kt") public void testRelatedReturnTypes1b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("relatedReturnTypes1bGeneric.kt") + public void testRelatedReturnTypes1bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("relatedReturnTypes2a.kt") public void testRelatedReturnTypes2a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("relatedReturnTypes2aGeneric.kt") + public void testRelatedReturnTypes2aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("relatedReturnTypes2b.kt") public void testRelatedReturnTypes2b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("relatedReturnTypes2bGeneric.kt") + public void testRelatedReturnTypes2bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("uncastInlineClassToAnyAndBack.kt") public void testUncastInlineClassToAnyAndBack() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBack.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("uncastInlineClassToAnyAndBackGeneric.kt") + public void testUncastInlineClassToAnyAndBackGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("unrelatedGenerics.kt") public void testUnrelatedGenerics() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenerics.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @TestMetadata("unrelatedGenericsGeneric.kt") + public void testUnrelatedGenericsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/callableReferences") @@ -17150,101 +17335,201 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boundInlineClassExtensionFunGeneric.kt") + public void testBoundInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boundInlineClassExtensionVal.kt") public void testBoundInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boundInlineClassExtensionValGeneric.kt") + public void testBoundInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boundInlineClassMemberFun.kt") public void testBoundInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boundInlineClassMemberFunGeneric.kt") + public void testBoundInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boundInlineClassMemberVal.kt") public void testBoundInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boundInlineClassMemberValGeneric.kt") + public void testBoundInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("boundInlineClassPrimaryVal.kt") public void testBoundInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("boundInlineClassPrimaryValGeneric.kt") + public void testBoundInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("constructorWithInlineClassParameters.kt") public void testConstructorWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("constructorWithInlineClassParametersGeneric.kt") + public void testConstructorWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("equalsHashCodeToString.kt") public void testEqualsHashCodeToString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("equalsHashCodeToStringGeneric.kt") + public void testEqualsHashCodeToStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("funWithInlineClassParameters.kt") public void testFunWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("funWithInlineClassParametersGeneric.kt") + public void testFunWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassExtensionFun.kt") public void testInlineClassExtensionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassExtensionFunGeneric.kt") + public void testInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassExtensionVal.kt") public void testInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassExtensionValGeneric.kt") + public void testInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassInternalPrimaryVal.kt") public void testInlineClassInternalPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassInternalPrimaryValGeneric.kt") + public void testInlineClassInternalPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassMemberFun.kt") public void testInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassMemberFunGeneric.kt") + public void testInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassMemberVal.kt") public void testInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassMemberValGeneric.kt") + public void testInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassPrimaryConstructor.kt") public void testInlineClassPrimaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassPrimaryConstructorGeneric.kt") + public void testInlineClassPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassPrimaryVal.kt") public void testInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassPrimaryValGeneric.kt") + public void testInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassPrivatePrimaryVal.kt") public void testInlineClassPrivatePrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassPrivatePrimaryValGeneric.kt") + public void testInlineClassPrivatePrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassTypeBoundMemberVar.kt") public void testInlineClassTypeBoundMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassTypeBoundMemberVarGeneric.kt") + public void testInlineClassTypeBoundMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassTypeMemberVar.kt") public void testInlineClassTypeMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassTypeMemberVarGeneric.kt") + public void testInlineClassTypeMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineClassTypeTopLevelVar.kt") public void testInlineClassTypeTopLevelVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineClassTypeTopLevelVarGeneric.kt") + public void testInlineClassTypeTopLevelVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt37986.kt") public void testKt37986() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt37986Generic.kt") + public void testKt37986Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/callableReferences/let") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -17266,26 +17551,51 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("int.kt") public void testInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/int.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("intGeneric.kt") + public void testIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("intN.kt") public void testIntN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("intNGeneric.kt") + public void testIntNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("null.kt") public void testNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/null.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("nullGeneric.kt") + public void testNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("result.kt") public void testResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/result.kt"); @@ -17296,10 +17606,20 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("stringN.kt") public void testStringN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @TestMetadata("stringNGeneric.kt") + public void testStringNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } } @@ -17325,16 +17645,36 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("accessPrivateInlineClassCompanionMethod2Generic.kt") + public void testAccessPrivateInlineClassCompanionMethod2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @TestMetadata("accessPrivateInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateInlineClassCompanionMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("accessPrivateInlineClassConstructorFromCompanion.kt") public void testAccessPrivateInlineClassConstructorFromCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("accessPrivateInlineClassConstructorFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("accessPrivateInlineClassConstructorFromLambda.kt") public void testAccessPrivateInlineClassConstructorFromLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("accessPrivateInlineClassConstructorFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -17345,6 +17685,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2Generic.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassMethodFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -17355,6 +17705,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("accessPrivateInlineClassMethodFromLambda.kt") public void testAccessPrivateInlineClassMethodFromLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); @@ -17365,11 +17725,26 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("accessPrivateInlineClassMethodFromLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @TestMetadata("accessPrivateInlineClassMethodFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt") public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("accessPrivateStaticInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateStaticInlineClassCompanionMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + public void testAllFilesPresentInContextsAndAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } @@ -17384,50 +17759,105 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("captureInlineClassInstanceInLambda2Generic.kt") + public void testCaptureInlineClassInstanceInLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @TestMetadata("captureInlineClassInstanceInLambdaGeneric.kt") + public void testCaptureInlineClassInstanceInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("captureInlineClassInstanceInObject.kt") public void testCaptureInlineClassInstanceInObject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObject.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("captureInlineClassInstanceInObjectGeneric.kt") + public void testCaptureInlineClassInstanceInObjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("inlineLambdaInInlineClassFun.kt") public void testInlineLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("inlineLambdaInInlineClassFunGeneric.kt") + public void testInlineLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt26858.kt") public void testKt26858() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt26858Generic.kt") + public void testKt26858Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt27513.kt") public void testKt27513() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt27513Generic.kt") + public void testKt27513Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("kt30780.kt") public void testKt30780() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("kt30780Generic.kt") + public void testKt30780Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("lambdaInInlineClassFun.kt") public void testLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("lambdaInInlineClassFunGeneric.kt") + public void testLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("objectInInlineClassFun.kt") public void testObjectInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("objectInInlineClassFunGeneric.kt") + public void testObjectInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("toPrivateCompanionFun.kt") public void testToPrivateCompanionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("toPrivateCompanionFunGeneric.kt") + public void testToPrivateCompanionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("toPrivateCompanionVal.kt") public void testToPrivateCompanionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + + @TestMetadata("toPrivateCompanionValGeneric.kt") + public void testToPrivateCompanionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/defaultParameterValues") @@ -17515,21 +17945,41 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("allGeneric.kt") + public void ignoreAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/allGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("all-compatibility.kt") public void ignoreAll_compatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("all-compatibilityGeneric.kt") + public void ignoreAll_compatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("compatibility.kt") public void ignoreCompatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("compatibilityGeneric.kt") + public void ignoreCompatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("default.kt") public void ignoreDefault() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/default.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("defaultGeneric.kt") + public void ignoreDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/defaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -17552,21 +18002,41 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("allGeneric.kt") + public void ignoreAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/allGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("all-compatibility.kt") public void ignoreAll_compatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("all-compatibilityGeneric.kt") + public void ignoreAll_compatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("compatibility.kt") public void ignoreCompatibility() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("compatibilityGeneric.kt") + public void ignoreCompatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + @TestMetadata("default.kt") public void ignoreDefault() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/default.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); } + @TestMetadata("defaultGeneric.kt") + public void ignoreDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/defaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } diff --git a/core/compiler.common.jvm/src/org/jetbrains/kotlin/types/expandedTypeUtils.kt b/core/compiler.common.jvm/src/org/jetbrains/kotlin/types/expandedTypeUtils.kt index c2641ad326c..cca6da89a1e 100644 --- a/core/compiler.common.jvm/src/org/jetbrains/kotlin/types/expandedTypeUtils.kt +++ b/core/compiler.common.jvm/src/org/jetbrains/kotlin/types/expandedTypeUtils.kt @@ -33,7 +33,7 @@ private fun TypeSystemCommonBackendContext.computeExpandedTypeInner( classifier.isInlineClass() -> { // kotlinType is the boxed inline class type - val underlyingType = kotlinType.getSubstitutedUnderlyingType() ?: return null + val underlyingType = kotlinType.getUnsubstitutedUnderlyingType() ?: return null val expandedUnderlyingType = computeExpandedTypeInner(underlyingType, visitedClassifiers) ?: return null when { !kotlinType.isNullableType() -> expandedUnderlyingType 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 4a7e63d7c0a..421672a1f21 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 @@ -15990,60 +15990,120 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxAnyGeneric.kt") + public void testBoxAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxFunLiteralAny.kt") public void testBoxFunLiteralAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxFunLiteralAnyGeneric.kt") + public void testBoxFunLiteralAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxInt.kt") public void testBoxInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxIntGeneric.kt") + public void testBoxIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableAny.kt") public void testBoxNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableAnyGeneric.kt") + public void testBoxNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableAnyNull.kt") public void testBoxNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableAnyNullGeneric.kt") + public void testBoxNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableInt.kt") public void testBoxNullableInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableIntGeneric.kt") + public void testBoxNullableIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableIntNull.kt") public void testBoxNullableIntNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableIntNullGeneric.kt") + public void testBoxNullableIntNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableString.kt") public void testBoxNullableString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableString.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableStringGeneric.kt") + public void testBoxNullableStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableStringNull.kt") public void testBoxNullableStringNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableStringNullGeneric.kt") + public void testBoxNullableStringNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxString.kt") public void testBoxString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxString.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxStringGeneric.kt") + public void testBoxStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27586_1.kt") public void testKt27586_1() throws Exception { @@ -16072,84 +16132,168 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethod.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxReturnValueInDefaultMethodGenericInt.kt") + public void testBoxReturnValueInDefaultMethodGenericInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideChainErasedToAny.kt") public void testCovariantOverrideChainErasedToAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideChainErasedToAnyGeneric.kt") + public void testCovariantOverrideChainErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideChainErasedToNullableAny.kt") public void testCovariantOverrideChainErasedToNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideChainErasedToNullableAnyGeneric.kt") + public void testCovariantOverrideChainErasedToNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideErasedToAny.kt") public void testCovariantOverrideErasedToAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideErasedToAnyGeneric.kt") + public void testCovariantOverrideErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideErasedToInterface.kt") public void testCovariantOverrideErasedToInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideErasedToInterfaceGeneric.kt") + public void testCovariantOverrideErasedToInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideErasedToPrimitive.kt") public void testCovariantOverrideErasedToPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideErasedToPrimitiveGeneric.kt") + public void testCovariantOverrideErasedToPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideListVsMutableList.kt") public void testCovariantOverrideListVsMutableList() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideListVsMutableListGeneric.kt") + public void testCovariantOverrideListVsMutableListGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideUnrelatedInterfaces.kt") public void testCovariantOverrideUnrelatedInterfaces() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfaces.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideUnrelatedInterfacesGeneric.kt") + public void testCovariantOverrideUnrelatedInterfacesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericOverride.kt") public void testGenericOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverride.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericOverrideGeneric.kt") + public void testGenericOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericOverrideSpecialized.kt") public void testGenericOverrideSpecialized() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecialized.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericOverrideSpecializedGeneric.kt") + public void testGenericOverrideSpecializedGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassInOverriddenReturnTypes.kt") public void testInlineClassInOverriddenReturnTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassInOverriddenReturnTypesGeneric.kt") + public void testInlineClassInOverriddenReturnTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt28483.kt") public void testKt28483() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt28483Generic.kt") + public void testKt28483Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt31585.kt") public void testKt31585() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt31585Generic.kt") + public void testKt31585Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt35234.kt") public void testKt35234() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt35234Generic.kt") + public void testKt35234Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt35234a.kt") public void testKt35234a() throws Exception { @@ -16162,77 +16306,155 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideGenericWithInlineClassGeneric.kt") + public void testOverrideGenericWithInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullAny.kt") public void testOverrideNullableInlineClassWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullNullableAny.kt") public void testOverrideNullableInlineClassWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNull.kt") public void testOverrideNullableInlineClassWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("relatedReturnTypes1a.kt") public void testRelatedReturnTypes1a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("relatedReturnTypes1aGeneric.kt") + public void testRelatedReturnTypes1aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("relatedReturnTypes1b.kt") public void testRelatedReturnTypes1b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1b.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("relatedReturnTypes1bGeneric.kt") + public void testRelatedReturnTypes1bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("relatedReturnTypes2a.kt") public void testRelatedReturnTypes2a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("relatedReturnTypes2aGeneric.kt") + public void testRelatedReturnTypes2aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("relatedReturnTypes2b.kt") public void testRelatedReturnTypes2b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2b.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("relatedReturnTypes2bGeneric.kt") + public void testRelatedReturnTypes2bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("uncastInlineClassToAnyAndBack.kt") public void testUncastInlineClassToAnyAndBack() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBack.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("uncastInlineClassToAnyAndBackGeneric.kt") + public void testUncastInlineClassToAnyAndBackGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("unrelatedGenerics.kt") public void testUnrelatedGenerics() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenerics.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("unrelatedGenericsGeneric.kt") + public void testUnrelatedGenericsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -16250,120 +16472,240 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boundInlineClassExtensionFunGeneric.kt") + public void testBoundInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boundInlineClassExtensionVal.kt") public void testBoundInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boundInlineClassExtensionValGeneric.kt") + public void testBoundInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boundInlineClassMemberFun.kt") public void testBoundInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boundInlineClassMemberFunGeneric.kt") + public void testBoundInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boundInlineClassMemberVal.kt") public void testBoundInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boundInlineClassMemberValGeneric.kt") + public void testBoundInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boundInlineClassPrimaryVal.kt") public void testBoundInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boundInlineClassPrimaryValGeneric.kt") + public void testBoundInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("constructorWithInlineClassParameters.kt") public void testConstructorWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("constructorWithInlineClassParametersGeneric.kt") + public void testConstructorWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsHashCodeToString.kt") public void testEqualsHashCodeToString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToString.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsHashCodeToStringGeneric.kt") + public void testEqualsHashCodeToStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("funWithInlineClassParameters.kt") public void testFunWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("funWithInlineClassParametersGeneric.kt") + public void testFunWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassExtensionFun.kt") public void testInlineClassExtensionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassExtensionFunGeneric.kt") + public void testInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassExtensionVal.kt") public void testInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassExtensionValGeneric.kt") + public void testInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassInternalPrimaryVal.kt") public void testInlineClassInternalPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassInternalPrimaryValGeneric.kt") + public void testInlineClassInternalPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassMemberFun.kt") public void testInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassMemberFunGeneric.kt") + public void testInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassMemberVal.kt") public void testInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassMemberValGeneric.kt") + public void testInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassPrimaryConstructor.kt") public void testInlineClassPrimaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassPrimaryConstructorGeneric.kt") + public void testInlineClassPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassPrimaryVal.kt") public void testInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassPrimaryValGeneric.kt") + public void testInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassPrivatePrimaryVal.kt") public void testInlineClassPrivatePrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassPrivatePrimaryValGeneric.kt") + public void testInlineClassPrivatePrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassTypeBoundMemberVar.kt") public void testInlineClassTypeBoundMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVar.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassTypeBoundMemberVarGeneric.kt") + public void testInlineClassTypeBoundMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassTypeMemberVar.kt") public void testInlineClassTypeMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVar.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassTypeMemberVarGeneric.kt") + public void testInlineClassTypeMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassTypeTopLevelVar.kt") public void testInlineClassTypeTopLevelVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVar.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassTypeTopLevelVarGeneric.kt") + public void testInlineClassTypeTopLevelVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt37986.kt") public void testKt37986() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt37986Generic.kt") + public void testKt37986Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses/callableReferences/let") @TestDataPath("$PROJECT_ROOT") @@ -16379,30 +16721,60 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("int.kt") public void testInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/int.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("intGeneric.kt") + public void testIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("intN.kt") public void testIntN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("intNGeneric.kt") + public void testIntNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("null.kt") public void testNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/null.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("nullGeneric.kt") + public void testNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -16415,11 +16787,23 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("stringN.kt") public void testStringN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("stringNGeneric.kt") + public void testStringNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } } @@ -16439,18 +16823,42 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethod2Generic.kt") + public void testAccessPrivateInlineClassCompanionMethod2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateInlineClassCompanionMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("accessPrivateInlineClassConstructorFromCompanion.kt") public void testAccessPrivateInlineClassConstructorFromCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanion.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("accessPrivateInlineClassConstructorFromLambda.kt") public void testAccessPrivateInlineClassConstructorFromLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { @@ -16463,6 +16871,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2Generic.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassMethodFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { @@ -16475,6 +16895,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromLambda.kt") public void testAccessPrivateInlineClassMethodFromLambda() throws Exception { @@ -16487,6 +16919,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test public void testAllFilesPresentInContextsAndAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true); @@ -16504,59 +16948,125 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("captureInlineClassInstanceInLambda2Generic.kt") + public void testCaptureInlineClassInstanceInLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("captureInlineClassInstanceInLambdaGeneric.kt") + public void testCaptureInlineClassInstanceInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("captureInlineClassInstanceInObject.kt") public void testCaptureInlineClassInstanceInObject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObject.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("captureInlineClassInstanceInObjectGeneric.kt") + public void testCaptureInlineClassInstanceInObjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineLambdaInInlineClassFun.kt") public void testInlineLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineLambdaInInlineClassFunGeneric.kt") + public void testInlineLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt26858.kt") public void testKt26858() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt26858Generic.kt") + public void testKt26858Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27513.kt") public void testKt27513() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27513Generic.kt") + public void testKt27513Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt30780.kt") public void testKt30780() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt30780Generic.kt") + public void testKt30780Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("lambdaInInlineClassFun.kt") public void testLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("lambdaInInlineClassFunGeneric.kt") + public void testLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("objectInInlineClassFun.kt") public void testObjectInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("objectInInlineClassFunGeneric.kt") + public void testObjectInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("toPrivateCompanionFun.kt") public void testToPrivateCompanionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("toPrivateCompanionFunGeneric.kt") + public void testToPrivateCompanionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("toPrivateCompanionVal.kt") public void testToPrivateCompanionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("toPrivateCompanionValGeneric.kt") + public void testToPrivateCompanionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested 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 4955677752a..ac1ec8fc719 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 @@ -15954,60 +15954,120 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxAnyGeneric.kt") + public void testBoxAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxFunLiteralAny.kt") public void testBoxFunLiteralAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxFunLiteralAnyGeneric.kt") + public void testBoxFunLiteralAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxInt.kt") public void testBoxInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxIntGeneric.kt") + public void testBoxIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableAny.kt") public void testBoxNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableAnyGeneric.kt") + public void testBoxNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableAnyNull.kt") public void testBoxNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableAnyNullGeneric.kt") + public void testBoxNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableInt.kt") public void testBoxNullableInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableIntGeneric.kt") + public void testBoxNullableIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableIntNull.kt") public void testBoxNullableIntNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableIntNullGeneric.kt") + public void testBoxNullableIntNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableString.kt") public void testBoxNullableString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableString.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableStringGeneric.kt") + public void testBoxNullableStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxNullableStringNull.kt") public void testBoxNullableStringNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxNullableStringNullGeneric.kt") + public void testBoxNullableStringNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boxString.kt") public void testBoxString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxString.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxStringGeneric.kt") + public void testBoxStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27586_1.kt") public void testKt27586_1() throws Exception { @@ -16036,84 +16096,168 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethod.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boxReturnValueInDefaultMethodGenericInt.kt") + public void testBoxReturnValueInDefaultMethodGenericInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideChainErasedToAny.kt") public void testCovariantOverrideChainErasedToAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideChainErasedToAnyGeneric.kt") + public void testCovariantOverrideChainErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideChainErasedToNullableAny.kt") public void testCovariantOverrideChainErasedToNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideChainErasedToNullableAnyGeneric.kt") + public void testCovariantOverrideChainErasedToNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideErasedToAny.kt") public void testCovariantOverrideErasedToAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideErasedToAnyGeneric.kt") + public void testCovariantOverrideErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideErasedToInterface.kt") public void testCovariantOverrideErasedToInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideErasedToInterfaceGeneric.kt") + public void testCovariantOverrideErasedToInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideErasedToPrimitive.kt") public void testCovariantOverrideErasedToPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideErasedToPrimitiveGeneric.kt") + public void testCovariantOverrideErasedToPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideListVsMutableList.kt") public void testCovariantOverrideListVsMutableList() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideListVsMutableListGeneric.kt") + public void testCovariantOverrideListVsMutableListGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("covariantOverrideUnrelatedInterfaces.kt") public void testCovariantOverrideUnrelatedInterfaces() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfaces.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("covariantOverrideUnrelatedInterfacesGeneric.kt") + public void testCovariantOverrideUnrelatedInterfacesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericOverride.kt") public void testGenericOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverride.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericOverrideGeneric.kt") + public void testGenericOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("genericOverrideSpecialized.kt") public void testGenericOverrideSpecialized() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecialized.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("genericOverrideSpecializedGeneric.kt") + public void testGenericOverrideSpecializedGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassInOverriddenReturnTypes.kt") public void testInlineClassInOverriddenReturnTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassInOverriddenReturnTypesGeneric.kt") + public void testInlineClassInOverriddenReturnTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt28483.kt") public void testKt28483() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt28483Generic.kt") + public void testKt28483Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt31585.kt") public void testKt31585() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt31585Generic.kt") + public void testKt31585Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt35234.kt") public void testKt35234() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt35234Generic.kt") + public void testKt35234Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt35234a.kt") public void testKt35234a() throws Exception { @@ -16126,77 +16270,155 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideGenericWithInlineClassGeneric.kt") + public void testOverrideGenericWithInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullAny.kt") public void testOverrideNullableInlineClassWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullNullableAny.kt") public void testOverrideNullableInlineClassWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNull.kt") public void testOverrideNullableInlineClassWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("relatedReturnTypes1a.kt") public void testRelatedReturnTypes1a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("relatedReturnTypes1aGeneric.kt") + public void testRelatedReturnTypes1aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("relatedReturnTypes1b.kt") public void testRelatedReturnTypes1b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1b.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("relatedReturnTypes1bGeneric.kt") + public void testRelatedReturnTypes1bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("relatedReturnTypes2a.kt") public void testRelatedReturnTypes2a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("relatedReturnTypes2aGeneric.kt") + public void testRelatedReturnTypes2aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("relatedReturnTypes2b.kt") public void testRelatedReturnTypes2b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2b.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("relatedReturnTypes2bGeneric.kt") + public void testRelatedReturnTypes2bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("uncastInlineClassToAnyAndBack.kt") public void testUncastInlineClassToAnyAndBack() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBack.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("uncastInlineClassToAnyAndBackGeneric.kt") + public void testUncastInlineClassToAnyAndBackGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("unrelatedGenerics.kt") public void testUnrelatedGenerics() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenerics.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("unrelatedGenericsGeneric.kt") + public void testUnrelatedGenericsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested @@ -16214,120 +16436,240 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boundInlineClassExtensionFunGeneric.kt") + public void testBoundInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boundInlineClassExtensionVal.kt") public void testBoundInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boundInlineClassExtensionValGeneric.kt") + public void testBoundInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boundInlineClassMemberFun.kt") public void testBoundInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boundInlineClassMemberFunGeneric.kt") + public void testBoundInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boundInlineClassMemberVal.kt") public void testBoundInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boundInlineClassMemberValGeneric.kt") + public void testBoundInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("boundInlineClassPrimaryVal.kt") public void testBoundInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("boundInlineClassPrimaryValGeneric.kt") + public void testBoundInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("constructorWithInlineClassParameters.kt") public void testConstructorWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("constructorWithInlineClassParametersGeneric.kt") + public void testConstructorWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("equalsHashCodeToString.kt") public void testEqualsHashCodeToString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToString.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("equalsHashCodeToStringGeneric.kt") + public void testEqualsHashCodeToStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("funWithInlineClassParameters.kt") public void testFunWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("funWithInlineClassParametersGeneric.kt") + public void testFunWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassExtensionFun.kt") public void testInlineClassExtensionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassExtensionFunGeneric.kt") + public void testInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassExtensionVal.kt") public void testInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassExtensionValGeneric.kt") + public void testInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassInternalPrimaryVal.kt") public void testInlineClassInternalPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassInternalPrimaryValGeneric.kt") + public void testInlineClassInternalPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassMemberFun.kt") public void testInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassMemberFunGeneric.kt") + public void testInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassMemberVal.kt") public void testInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassMemberValGeneric.kt") + public void testInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassPrimaryConstructor.kt") public void testInlineClassPrimaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassPrimaryConstructorGeneric.kt") + public void testInlineClassPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassPrimaryVal.kt") public void testInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassPrimaryValGeneric.kt") + public void testInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassPrivatePrimaryVal.kt") public void testInlineClassPrivatePrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassPrivatePrimaryValGeneric.kt") + public void testInlineClassPrivatePrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassTypeBoundMemberVar.kt") public void testInlineClassTypeBoundMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVar.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassTypeBoundMemberVarGeneric.kt") + public void testInlineClassTypeBoundMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassTypeMemberVar.kt") public void testInlineClassTypeMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVar.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassTypeMemberVarGeneric.kt") + public void testInlineClassTypeMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineClassTypeTopLevelVar.kt") public void testInlineClassTypeTopLevelVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVar.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineClassTypeTopLevelVarGeneric.kt") + public void testInlineClassTypeTopLevelVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt37986.kt") public void testKt37986() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt37986Generic.kt") + public void testKt37986Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses/callableReferences/let") @TestDataPath("$PROJECT_ROOT") @@ -16343,30 +16685,60 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("int.kt") public void testInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/int.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("intGeneric.kt") + public void testIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("intN.kt") public void testIntN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("intNGeneric.kt") + public void testIntNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("null.kt") public void testNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/null.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("nullGeneric.kt") + public void testNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -16379,11 +16751,23 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("stringN.kt") public void testStringN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("stringNGeneric.kt") + public void testStringNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } } @@ -16403,18 +16787,42 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethod2Generic.kt") + public void testAccessPrivateInlineClassCompanionMethod2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateInlineClassCompanionMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("accessPrivateInlineClassConstructorFromCompanion.kt") public void testAccessPrivateInlineClassConstructorFromCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanion.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("accessPrivateInlineClassConstructorFromLambda.kt") public void testAccessPrivateInlineClassConstructorFromLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { @@ -16427,6 +16835,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2Generic.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassMethodFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { @@ -16439,6 +16859,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromLambda.kt") public void testAccessPrivateInlineClassMethodFromLambda() throws Exception { @@ -16451,6 +16883,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test public void testAllFilesPresentInContextsAndAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); @@ -16468,59 +16912,125 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("captureInlineClassInstanceInLambda2Generic.kt") + public void testCaptureInlineClassInstanceInLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @Test + @TestMetadata("captureInlineClassInstanceInLambdaGeneric.kt") + public void testCaptureInlineClassInstanceInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("captureInlineClassInstanceInObject.kt") public void testCaptureInlineClassInstanceInObject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObject.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("captureInlineClassInstanceInObjectGeneric.kt") + public void testCaptureInlineClassInstanceInObjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("inlineLambdaInInlineClassFun.kt") public void testInlineLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("inlineLambdaInInlineClassFunGeneric.kt") + public void testInlineLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt26858.kt") public void testKt26858() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt26858Generic.kt") + public void testKt26858Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt27513.kt") public void testKt27513() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt27513Generic.kt") + public void testKt27513Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("kt30780.kt") public void testKt30780() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("kt30780Generic.kt") + public void testKt30780Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("lambdaInInlineClassFun.kt") public void testLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("lambdaInInlineClassFunGeneric.kt") + public void testLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("objectInInlineClassFun.kt") public void testObjectInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("objectInInlineClassFunGeneric.kt") + public void testObjectInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("toPrivateCompanionFun.kt") public void testToPrivateCompanionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @Test + @TestMetadata("toPrivateCompanionFunGeneric.kt") + public void testToPrivateCompanionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @Test @TestMetadata("toPrivateCompanionVal.kt") public void testToPrivateCompanionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @Test + @TestMetadata("toPrivateCompanionValGeneric.kt") + public void testToPrivateCompanionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @Nested 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 0114abe1c8f..da296b501c7 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 @@ -13448,51 +13448,101 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxAnyGeneric.kt") + public void testBoxAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxFunLiteralAny.kt") public void testBoxFunLiteralAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxFunLiteralAnyGeneric.kt") + public void testBoxFunLiteralAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxInt.kt") public void testBoxInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxIntGeneric.kt") + public void testBoxIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxNullableAny.kt") public void testBoxNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxNullableAnyGeneric.kt") + public void testBoxNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxNullableAnyNull.kt") public void testBoxNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxNullableAnyNullGeneric.kt") + public void testBoxNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxNullableInt.kt") public void testBoxNullableInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxNullableIntGeneric.kt") + public void testBoxNullableIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxNullableIntNull.kt") public void testBoxNullableIntNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxNullableIntNullGeneric.kt") + public void testBoxNullableIntNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxNullableString.kt") public void testBoxNullableString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableString.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxNullableStringGeneric.kt") + public void testBoxNullableStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxNullableStringNull.kt") public void testBoxNullableStringNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxNullableStringNullGeneric.kt") + public void testBoxNullableStringNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boxString.kt") public void testBoxString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxString.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxStringGeneric.kt") + public void testBoxStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27586_1.kt") public void testKt27586_1() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/kt27586_1.kt"); @@ -13525,71 +13575,141 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethod.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boxReturnValueInDefaultMethodGenericInt.kt") + public void testBoxReturnValueInDefaultMethodGenericInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("covariantOverrideChainErasedToAny.kt") public void testCovariantOverrideChainErasedToAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("covariantOverrideChainErasedToAnyGeneric.kt") + public void testCovariantOverrideChainErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("covariantOverrideChainErasedToNullableAny.kt") public void testCovariantOverrideChainErasedToNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("covariantOverrideChainErasedToNullableAnyGeneric.kt") + public void testCovariantOverrideChainErasedToNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("covariantOverrideErasedToAny.kt") public void testCovariantOverrideErasedToAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("covariantOverrideErasedToAnyGeneric.kt") + public void testCovariantOverrideErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("covariantOverrideErasedToInterface.kt") public void testCovariantOverrideErasedToInterface() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("covariantOverrideErasedToInterfaceGeneric.kt") + public void testCovariantOverrideErasedToInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("covariantOverrideErasedToPrimitive.kt") public void testCovariantOverrideErasedToPrimitive() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("covariantOverrideErasedToPrimitiveGeneric.kt") + public void testCovariantOverrideErasedToPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("covariantOverrideListVsMutableList.kt") public void testCovariantOverrideListVsMutableList() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("covariantOverrideListVsMutableListGeneric.kt") + public void testCovariantOverrideListVsMutableListGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("covariantOverrideUnrelatedInterfaces.kt") public void testCovariantOverrideUnrelatedInterfaces() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfaces.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("covariantOverrideUnrelatedInterfacesGeneric.kt") + public void testCovariantOverrideUnrelatedInterfacesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("genericOverride.kt") public void testGenericOverride() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverride.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("genericOverrideGeneric.kt") + public void testGenericOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("genericOverrideSpecialized.kt") public void testGenericOverrideSpecialized() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecialized.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("genericOverrideSpecializedGeneric.kt") + public void testGenericOverrideSpecializedGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassInOverriddenReturnTypes.kt") public void testInlineClassInOverriddenReturnTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassInOverriddenReturnTypesGeneric.kt") + public void testInlineClassInOverriddenReturnTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt28483.kt") public void testKt28483() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt28483Generic.kt") + public void testKt28483Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt31585.kt") public void testKt31585() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt31585Generic.kt") + public void testKt31585Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt35234.kt") public void testKt35234() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt35234Generic.kt") + public void testKt35234Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt35234a.kt") public void testKt35234a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -13600,65 +13720,130 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("overrideGenericWithInlineClassGeneric.kt") + public void testOverrideGenericWithInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("overrideNullableInlineClassWithNonNullAny.kt") public void testOverrideNullableInlineClassWithNonNullAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("overrideNullableInlineClassWithNonNullAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAny.kt") public void testOverrideNullableInlineClassWithNonNullNullableAny() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNull.kt") public void testOverrideNullableInlineClassWithNonNullNullableAnyNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("relatedReturnTypes1a.kt") public void testRelatedReturnTypes1a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("relatedReturnTypes1aGeneric.kt") + public void testRelatedReturnTypes1aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("relatedReturnTypes1b.kt") public void testRelatedReturnTypes1b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1b.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("relatedReturnTypes1bGeneric.kt") + public void testRelatedReturnTypes1bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("relatedReturnTypes2a.kt") public void testRelatedReturnTypes2a() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("relatedReturnTypes2aGeneric.kt") + public void testRelatedReturnTypes2aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("relatedReturnTypes2b.kt") public void testRelatedReturnTypes2b() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2b.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("relatedReturnTypes2bGeneric.kt") + public void testRelatedReturnTypes2bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("uncastInlineClassToAnyAndBack.kt") public void testUncastInlineClassToAnyAndBack() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBack.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("uncastInlineClassToAnyAndBackGeneric.kt") + public void testUncastInlineClassToAnyAndBackGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("unrelatedGenerics.kt") public void testUnrelatedGenerics() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenerics.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @TestMetadata("unrelatedGenericsGeneric.kt") + public void testUnrelatedGenericsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/callableReferences") @@ -13682,101 +13867,201 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boundInlineClassExtensionFunGeneric.kt") + public void testBoundInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boundInlineClassExtensionVal.kt") public void testBoundInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boundInlineClassExtensionValGeneric.kt") + public void testBoundInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boundInlineClassMemberFun.kt") public void testBoundInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boundInlineClassMemberFunGeneric.kt") + public void testBoundInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boundInlineClassMemberVal.kt") public void testBoundInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boundInlineClassMemberValGeneric.kt") + public void testBoundInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("boundInlineClassPrimaryVal.kt") public void testBoundInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("boundInlineClassPrimaryValGeneric.kt") + public void testBoundInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("constructorWithInlineClassParameters.kt") public void testConstructorWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("constructorWithInlineClassParametersGeneric.kt") + public void testConstructorWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("equalsHashCodeToString.kt") public void testEqualsHashCodeToString() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToString.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("equalsHashCodeToStringGeneric.kt") + public void testEqualsHashCodeToStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("funWithInlineClassParameters.kt") public void testFunWithInlineClassParameters() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("funWithInlineClassParametersGeneric.kt") + public void testFunWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassExtensionFun.kt") public void testInlineClassExtensionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassExtensionFunGeneric.kt") + public void testInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassExtensionVal.kt") public void testInlineClassExtensionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassExtensionValGeneric.kt") + public void testInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassInternalPrimaryVal.kt") public void testInlineClassInternalPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassInternalPrimaryValGeneric.kt") + public void testInlineClassInternalPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassMemberFun.kt") public void testInlineClassMemberFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassMemberFunGeneric.kt") + public void testInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassMemberVal.kt") public void testInlineClassMemberVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassMemberValGeneric.kt") + public void testInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassPrimaryConstructor.kt") public void testInlineClassPrimaryConstructor() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassPrimaryConstructorGeneric.kt") + public void testInlineClassPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassPrimaryVal.kt") public void testInlineClassPrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassPrimaryValGeneric.kt") + public void testInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassPrivatePrimaryVal.kt") public void testInlineClassPrivatePrimaryVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassPrivatePrimaryValGeneric.kt") + public void testInlineClassPrivatePrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassTypeBoundMemberVar.kt") public void testInlineClassTypeBoundMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVar.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassTypeBoundMemberVarGeneric.kt") + public void testInlineClassTypeBoundMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassTypeMemberVar.kt") public void testInlineClassTypeMemberVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVar.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassTypeMemberVarGeneric.kt") + public void testInlineClassTypeMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineClassTypeTopLevelVar.kt") public void testInlineClassTypeTopLevelVar() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVar.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineClassTypeTopLevelVarGeneric.kt") + public void testInlineClassTypeTopLevelVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt37986.kt") public void testKt37986() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt37986Generic.kt") + public void testKt37986Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/callableReferences/let") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -13798,26 +14083,51 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("int.kt") public void testInt() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/int.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("intGeneric.kt") + public void testIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("intN.kt") public void testIntN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("intNGeneric.kt") + public void testIntNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("null.kt") public void testNull() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/null.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("nullGeneric.kt") + public void testNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("result.kt") public void testResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/result.kt"); @@ -13828,10 +14138,20 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("stringN.kt") public void testStringN() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @TestMetadata("stringNGeneric.kt") + public void testStringNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } } @@ -13857,16 +14177,36 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("accessPrivateInlineClassCompanionMethod2Generic.kt") + public void testAccessPrivateInlineClassCompanionMethod2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @TestMetadata("accessPrivateInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateInlineClassCompanionMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("accessPrivateInlineClassConstructorFromCompanion.kt") public void testAccessPrivateInlineClassConstructorFromCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanion.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("accessPrivateInlineClassConstructorFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("accessPrivateInlineClassConstructorFromLambda.kt") public void testAccessPrivateInlineClassConstructorFromLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("accessPrivateInlineClassConstructorFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -13877,6 +14217,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2Generic.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassMethodFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -13887,6 +14237,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("accessPrivateInlineClassMethodFromLambda.kt") public void testAccessPrivateInlineClassMethodFromLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); @@ -13897,6 +14257,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("accessPrivateInlineClassMethodFromLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @TestMetadata("accessPrivateInlineClassMethodFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + public void testAllFilesPresentInContextsAndAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } @@ -13911,50 +14281,105 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("captureInlineClassInstanceInLambda2Generic.kt") + public void testCaptureInlineClassInstanceInLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + + @TestMetadata("captureInlineClassInstanceInLambdaGeneric.kt") + public void testCaptureInlineClassInstanceInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("captureInlineClassInstanceInObject.kt") public void testCaptureInlineClassInstanceInObject() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObject.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("captureInlineClassInstanceInObjectGeneric.kt") + public void testCaptureInlineClassInstanceInObjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("inlineLambdaInInlineClassFun.kt") public void testInlineLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("inlineLambdaInInlineClassFunGeneric.kt") + public void testInlineLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt26858.kt") public void testKt26858() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt26858Generic.kt") + public void testKt26858Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt27513.kt") public void testKt27513() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt27513Generic.kt") + public void testKt27513Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("kt30780.kt") public void testKt30780() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("kt30780Generic.kt") + public void testKt30780Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("lambdaInInlineClassFun.kt") public void testLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("lambdaInInlineClassFunGeneric.kt") + public void testLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("objectInInlineClassFun.kt") public void testObjectInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("objectInInlineClassFunGeneric.kt") + public void testObjectInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("toPrivateCompanionFun.kt") public void testToPrivateCompanionFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + @TestMetadata("toPrivateCompanionFunGeneric.kt") + public void testToPrivateCompanionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } + @TestMetadata("toPrivateCompanionVal.kt") public void testToPrivateCompanionVal() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } + + @TestMetadata("toPrivateCompanionValGeneric.kt") + public void testToPrivateCompanionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + } } @TestMetadata("compiler/testData/codegen/box/inlineClasses/defaultParameterValues") 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 077f0d479d1..eb0022663fc 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 @@ -17352,15 +17352,25 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class BoxReturnValueInLambda { public BoxReturnValueInLambda() { register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableString.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxString.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -17375,6 +17385,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.kt"); } + @Test + @TestMetadata("boxAnyGeneric.kt") + public void testBoxAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt"); + } + @Test @TestMetadata("boxFunLiteralAny.kt") public void testBoxFunLiteralAny() throws Exception { @@ -17382,6 +17399,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.kt"); } + @Test + @TestMetadata("boxFunLiteralAnyGeneric.kt") + public void testBoxFunLiteralAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt"); + } + @Test @TestMetadata("boxInt.kt") public void testBoxInt() throws Exception { @@ -17389,6 +17413,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxInt.kt"); } + @Test + @TestMetadata("boxIntGeneric.kt") + public void testBoxIntGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt"); + } + @Test @TestMetadata("boxNullableAny.kt") public void testBoxNullableAny() throws Exception { @@ -17396,6 +17427,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.kt"); } + @Test + @TestMetadata("boxNullableAnyGeneric.kt") + public void testBoxNullableAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt"); + } + @Test @TestMetadata("boxNullableAnyNull.kt") public void testBoxNullableAnyNull() throws Exception { @@ -17403,6 +17441,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.kt"); } + @Test + @TestMetadata("boxNullableAnyNullGeneric.kt") + public void testBoxNullableAnyNullGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt"); + } + @Test @TestMetadata("boxNullableInt.kt") public void testBoxNullableInt() throws Exception { @@ -17410,6 +17455,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableInt.kt"); } + @Test + @TestMetadata("boxNullableIntGeneric.kt") + public void testBoxNullableIntGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt"); + } + @Test @TestMetadata("boxNullableIntNull.kt") public void testBoxNullableIntNull() throws Exception { @@ -17417,6 +17469,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNull.kt"); } + @Test + @TestMetadata("boxNullableIntNullGeneric.kt") + public void testBoxNullableIntNullGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt"); + } + @Test @TestMetadata("boxNullableString.kt") public void testBoxNullableString() throws Exception { @@ -17424,6 +17483,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableString.kt"); } + @Test + @TestMetadata("boxNullableStringGeneric.kt") + public void testBoxNullableStringGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt"); + } + @Test @TestMetadata("boxNullableStringNull.kt") public void testBoxNullableStringNull() throws Exception { @@ -17431,6 +17497,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNull.kt"); } + @Test + @TestMetadata("boxNullableStringNullGeneric.kt") + public void testBoxNullableStringNullGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt"); + } + @Test @TestMetadata("boxString.kt") public void testBoxString() throws Exception { @@ -17438,6 +17511,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxString.kt"); } + @Test + @TestMetadata("boxStringGeneric.kt") + public void testBoxStringGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt"); + } + @Test @TestMetadata("kt27586_1.kt") public void testKt27586_1() throws Exception { @@ -17459,33 +17539,60 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class BoxReturnValueOnOverride { public BoxReturnValueOnOverride() { register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethod.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterface.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitive.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfaces.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverride.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecialized.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypes.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClass.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAny.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNull.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1b.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2a.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2b.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBack.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenerics.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -17500,6 +17607,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethod.kt"); } + @Test + @TestMetadata("boxReturnValueInDefaultMethodGenericInt.kt") + public void testBoxReturnValueInDefaultMethodGenericInt() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt"); + } + @Test @TestMetadata("covariantOverrideChainErasedToAny.kt") public void testCovariantOverrideChainErasedToAny() throws Exception { @@ -17507,6 +17621,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAny.kt"); } + @Test + @TestMetadata("covariantOverrideChainErasedToAnyGeneric.kt") + public void testCovariantOverrideChainErasedToAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt"); + } + @Test @TestMetadata("covariantOverrideChainErasedToNullableAny.kt") public void testCovariantOverrideChainErasedToNullableAny() throws Exception { @@ -17514,6 +17635,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAny.kt"); } + @Test + @TestMetadata("covariantOverrideChainErasedToNullableAnyGeneric.kt") + public void testCovariantOverrideChainErasedToNullableAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt"); + } + @Test @TestMetadata("covariantOverrideErasedToAny.kt") public void testCovariantOverrideErasedToAny() throws Exception { @@ -17521,6 +17649,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAny.kt"); } + @Test + @TestMetadata("covariantOverrideErasedToAnyGeneric.kt") + public void testCovariantOverrideErasedToAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt"); + } + @Test @TestMetadata("covariantOverrideErasedToInterface.kt") public void testCovariantOverrideErasedToInterface() throws Exception { @@ -17528,6 +17663,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterface.kt"); } + @Test + @TestMetadata("covariantOverrideErasedToInterfaceGeneric.kt") + public void testCovariantOverrideErasedToInterfaceGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt"); + } + @Test @TestMetadata("covariantOverrideErasedToPrimitive.kt") public void testCovariantOverrideErasedToPrimitive() throws Exception { @@ -17535,6 +17677,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitive.kt"); } + @Test + @TestMetadata("covariantOverrideErasedToPrimitiveGeneric.kt") + public void testCovariantOverrideErasedToPrimitiveGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt"); + } + @Test @TestMetadata("covariantOverrideListVsMutableList.kt") public void testCovariantOverrideListVsMutableList() throws Exception { @@ -17542,6 +17691,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt"); } + @Test + @TestMetadata("covariantOverrideListVsMutableListGeneric.kt") + public void testCovariantOverrideListVsMutableListGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt"); + } + @Test @TestMetadata("covariantOverrideUnrelatedInterfaces.kt") public void testCovariantOverrideUnrelatedInterfaces() throws Exception { @@ -17549,6 +17705,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfaces.kt"); } + @Test + @TestMetadata("covariantOverrideUnrelatedInterfacesGeneric.kt") + public void testCovariantOverrideUnrelatedInterfacesGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt"); + } + @Test @TestMetadata("genericOverride.kt") public void testGenericOverride() throws Exception { @@ -17556,6 +17719,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverride.kt"); } + @Test + @TestMetadata("genericOverrideGeneric.kt") + public void testGenericOverrideGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt"); + } + @Test @TestMetadata("genericOverrideSpecialized.kt") public void testGenericOverrideSpecialized() throws Exception { @@ -17563,6 +17733,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecialized.kt"); } + @Test + @TestMetadata("genericOverrideSpecializedGeneric.kt") + public void testGenericOverrideSpecializedGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt"); + } + @Test @TestMetadata("inlineClassInOverriddenReturnTypes.kt") public void testInlineClassInOverriddenReturnTypes() throws Exception { @@ -17570,6 +17747,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypes.kt"); } + @Test + @TestMetadata("inlineClassInOverriddenReturnTypesGeneric.kt") + public void testInlineClassInOverriddenReturnTypesGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt"); + } + @Test @TestMetadata("kt28483.kt") public void testKt28483() throws Exception { @@ -17577,6 +17761,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.kt"); } + @Test + @TestMetadata("kt28483Generic.kt") + public void testKt28483Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt"); + } + @Test @TestMetadata("kt31585.kt") public void testKt31585() throws Exception { @@ -17584,6 +17775,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt"); } + @Test + @TestMetadata("kt31585Generic.kt") + public void testKt31585Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt"); + } + @Test @TestMetadata("kt35234.kt") public void testKt35234() throws Exception { @@ -17591,6 +17789,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt"); } + @Test + @TestMetadata("kt35234Generic.kt") + public void testKt35234Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt"); + } + @Test @TestMetadata("kt35234a.kt") public void testKt35234a() throws Exception { @@ -17605,6 +17810,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClass.kt"); } + @Test + @TestMetadata("overrideGenericWithInlineClassGeneric.kt") + public void testOverrideGenericWithInlineClassGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt"); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAny() throws Exception { @@ -17612,6 +17824,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt"); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt"); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny() throws Exception { @@ -17619,6 +17838,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt"); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyGeneric.kt"); + } + @Test @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt") public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull() throws Exception { @@ -17626,6 +17852,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt"); } + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNullGeneric.kt"); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullAny.kt") public void testOverrideNullableInlineClassWithNonNullAny() throws Exception { @@ -17633,6 +17866,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAny.kt"); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt"); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullNullableAny.kt") public void testOverrideNullableInlineClassWithNonNullNullableAny() throws Exception { @@ -17640,6 +17880,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAny.kt"); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt"); + } + @Test @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNull.kt") public void testOverrideNullableInlineClassWithNonNullNullableAnyNull() throws Exception { @@ -17647,6 +17894,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNull.kt"); } + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyNullGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt"); + } + @Test @TestMetadata("relatedReturnTypes1a.kt") public void testRelatedReturnTypes1a() throws Exception { @@ -17654,6 +17908,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1a.kt"); } + @Test + @TestMetadata("relatedReturnTypes1aGeneric.kt") + public void testRelatedReturnTypes1aGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt"); + } + @Test @TestMetadata("relatedReturnTypes1b.kt") public void testRelatedReturnTypes1b() throws Exception { @@ -17661,6 +17922,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1b.kt"); } + @Test + @TestMetadata("relatedReturnTypes1bGeneric.kt") + public void testRelatedReturnTypes1bGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt"); + } + @Test @TestMetadata("relatedReturnTypes2a.kt") public void testRelatedReturnTypes2a() throws Exception { @@ -17668,6 +17936,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2a.kt"); } + @Test + @TestMetadata("relatedReturnTypes2aGeneric.kt") + public void testRelatedReturnTypes2aGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt"); + } + @Test @TestMetadata("relatedReturnTypes2b.kt") public void testRelatedReturnTypes2b() throws Exception { @@ -17675,6 +17950,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2b.kt"); } + @Test + @TestMetadata("relatedReturnTypes2bGeneric.kt") + public void testRelatedReturnTypes2bGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt"); + } + @Test @TestMetadata("uncastInlineClassToAnyAndBack.kt") public void testUncastInlineClassToAnyAndBack() throws Exception { @@ -17682,12 +17964,26 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBack.kt"); } + @Test + @TestMetadata("uncastInlineClassToAnyAndBackGeneric.kt") + public void testUncastInlineClassToAnyAndBackGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt"); + } + @Test @TestMetadata("unrelatedGenerics.kt") public void testUnrelatedGenerics() throws Exception { // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenerics.kt"); } + + @Test + @TestMetadata("unrelatedGenericsGeneric.kt") + public void testUnrelatedGenericsGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt"); + } } @Nested @@ -17698,25 +17994,45 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class CallableReferences { public CallableReferences() { register("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToString.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructor.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVar.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVar.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVar.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -17731,6 +18047,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFun.kt"); } + @Test + @TestMetadata("boundInlineClassExtensionFunGeneric.kt") + public void testBoundInlineClassExtensionFunGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt"); + } + @Test @TestMetadata("boundInlineClassExtensionVal.kt") public void testBoundInlineClassExtensionVal() throws Exception { @@ -17738,6 +18061,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionVal.kt"); } + @Test + @TestMetadata("boundInlineClassExtensionValGeneric.kt") + public void testBoundInlineClassExtensionValGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt"); + } + @Test @TestMetadata("boundInlineClassMemberFun.kt") public void testBoundInlineClassMemberFun() throws Exception { @@ -17745,6 +18075,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFun.kt"); } + @Test + @TestMetadata("boundInlineClassMemberFunGeneric.kt") + public void testBoundInlineClassMemberFunGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt"); + } + @Test @TestMetadata("boundInlineClassMemberVal.kt") public void testBoundInlineClassMemberVal() throws Exception { @@ -17752,6 +18089,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberVal.kt"); } + @Test + @TestMetadata("boundInlineClassMemberValGeneric.kt") + public void testBoundInlineClassMemberValGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt"); + } + @Test @TestMetadata("boundInlineClassPrimaryVal.kt") public void testBoundInlineClassPrimaryVal() throws Exception { @@ -17759,6 +18103,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt"); } + @Test + @TestMetadata("boundInlineClassPrimaryValGeneric.kt") + public void testBoundInlineClassPrimaryValGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt"); + } + @Test @TestMetadata("constructorWithInlineClassParameters.kt") public void testConstructorWithInlineClassParameters() throws Exception { @@ -17766,6 +18117,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt"); } + @Test + @TestMetadata("constructorWithInlineClassParametersGeneric.kt") + public void testConstructorWithInlineClassParametersGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt"); + } + @Test @TestMetadata("equalsHashCodeToString.kt") public void testEqualsHashCodeToString() throws Exception { @@ -17773,6 +18131,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToString.kt"); } + @Test + @TestMetadata("equalsHashCodeToStringGeneric.kt") + public void testEqualsHashCodeToStringGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt"); + } + @Test @TestMetadata("funWithInlineClassParameters.kt") public void testFunWithInlineClassParameters() throws Exception { @@ -17780,6 +18145,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt"); } + @Test + @TestMetadata("funWithInlineClassParametersGeneric.kt") + public void testFunWithInlineClassParametersGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt"); + } + @Test @TestMetadata("inlineClassExtensionFun.kt") public void testInlineClassExtensionFun() throws Exception { @@ -17787,6 +18159,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFun.kt"); } + @Test + @TestMetadata("inlineClassExtensionFunGeneric.kt") + public void testInlineClassExtensionFunGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt"); + } + @Test @TestMetadata("inlineClassExtensionVal.kt") public void testInlineClassExtensionVal() throws Exception { @@ -17794,6 +18173,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionVal.kt"); } + @Test + @TestMetadata("inlineClassExtensionValGeneric.kt") + public void testInlineClassExtensionValGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt"); + } + @Test @TestMetadata("inlineClassInternalPrimaryVal.kt") public void testInlineClassInternalPrimaryVal() throws Exception { @@ -17801,6 +18187,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryVal.kt"); } + @Test + @TestMetadata("inlineClassInternalPrimaryValGeneric.kt") + public void testInlineClassInternalPrimaryValGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt"); + } + @Test @TestMetadata("inlineClassMemberFun.kt") public void testInlineClassMemberFun() throws Exception { @@ -17808,6 +18201,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFun.kt"); } + @Test + @TestMetadata("inlineClassMemberFunGeneric.kt") + public void testInlineClassMemberFunGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt"); + } + @Test @TestMetadata("inlineClassMemberVal.kt") public void testInlineClassMemberVal() throws Exception { @@ -17815,6 +18215,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberVal.kt"); } + @Test + @TestMetadata("inlineClassMemberValGeneric.kt") + public void testInlineClassMemberValGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt"); + } + @Test @TestMetadata("inlineClassPrimaryConstructor.kt") public void testInlineClassPrimaryConstructor() throws Exception { @@ -17822,6 +18229,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructor.kt"); } + @Test + @TestMetadata("inlineClassPrimaryConstructorGeneric.kt") + public void testInlineClassPrimaryConstructorGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt"); + } + @Test @TestMetadata("inlineClassPrimaryVal.kt") public void testInlineClassPrimaryVal() throws Exception { @@ -17829,6 +18243,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryVal.kt"); } + @Test + @TestMetadata("inlineClassPrimaryValGeneric.kt") + public void testInlineClassPrimaryValGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt"); + } + @Test @TestMetadata("inlineClassPrivatePrimaryVal.kt") public void testInlineClassPrivatePrimaryVal() throws Exception { @@ -17836,6 +18257,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryVal.kt"); } + @Test + @TestMetadata("inlineClassPrivatePrimaryValGeneric.kt") + public void testInlineClassPrivatePrimaryValGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt"); + } + @Test @TestMetadata("inlineClassTypeBoundMemberVar.kt") public void testInlineClassTypeBoundMemberVar() throws Exception { @@ -17843,6 +18271,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVar.kt"); } + @Test + @TestMetadata("inlineClassTypeBoundMemberVarGeneric.kt") + public void testInlineClassTypeBoundMemberVarGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt"); + } + @Test @TestMetadata("inlineClassTypeMemberVar.kt") public void testInlineClassTypeMemberVar() throws Exception { @@ -17850,6 +18285,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVar.kt"); } + @Test + @TestMetadata("inlineClassTypeMemberVarGeneric.kt") + public void testInlineClassTypeMemberVarGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt"); + } + @Test @TestMetadata("inlineClassTypeTopLevelVar.kt") public void testInlineClassTypeTopLevelVar() throws Exception { @@ -17857,6 +18299,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVar.kt"); } + @Test + @TestMetadata("inlineClassTypeTopLevelVarGeneric.kt") + public void testInlineClassTypeTopLevelVarGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt"); + } + @Test @TestMetadata("kt37986.kt") public void testKt37986() throws Exception { @@ -17864,6 +18313,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986.kt"); } + @Test + @TestMetadata("kt37986Generic.kt") + public void testKt37986Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses/callableReferences/let") @TestDataPath("$PROJECT_ROOT") @@ -17872,12 +18328,19 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public class Let { public Let() { register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/any.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/int.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/null.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/string.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringN.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -17892,6 +18355,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/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/callableReferences/let/anyGeneric.kt"); + } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { @@ -17899,6 +18369,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/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/callableReferences/let/anyNGeneric.kt"); + } + @Test @TestMetadata("int.kt") public void testInt() throws Exception { @@ -17906,6 +18383,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/int.kt"); } + @Test + @TestMetadata("intGeneric.kt") + public void testIntGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt"); + } + @Test @TestMetadata("intN.kt") public void testIntN() throws Exception { @@ -17913,6 +18397,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intN.kt"); } + @Test + @TestMetadata("intNGeneric.kt") + public void testIntNGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt"); + } + @Test @TestMetadata("null.kt") public void testNull() throws Exception { @@ -17920,6 +18411,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/null.kt"); } + @Test + @TestMetadata("nullGeneric.kt") + public void testNullGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt"); + } + @Test @TestMetadata("result.kt") public void testResult() throws Exception { @@ -17933,12 +18431,26 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/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/callableReferences/let/stringGeneric.kt"); + } + @Test @TestMetadata("stringN.kt") public void testStringN() throws Exception { // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringN.kt"); } + + @Test + @TestMetadata("stringNGeneric.kt") + public void testStringNGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt"); + } } } @@ -17951,25 +18463,46 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public ContextsAndAccessors() { register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanion.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObject.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); + register("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation()); } @Test @@ -17986,6 +18519,20 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt"); } + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethod2Generic.kt") + public void testAccessPrivateInlineClassCompanionMethod2Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt"); + } + + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateInlineClassCompanionMethodGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt"); + } + @Test @TestMetadata("accessPrivateInlineClassConstructorFromCompanion.kt") public void testAccessPrivateInlineClassConstructorFromCompanion() throws Exception { @@ -17993,6 +18540,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanion.kt"); } + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromCompanionGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt"); + } + @Test @TestMetadata("accessPrivateInlineClassConstructorFromLambda.kt") public void testAccessPrivateInlineClassConstructorFromLambda() throws Exception { @@ -18000,6 +18554,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambda.kt"); } + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromLambdaGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt"); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { @@ -18014,6 +18575,20 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt"); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2Generic.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt"); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassMethodFromCompanionGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt"); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { @@ -18028,6 +18603,20 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2.kt"); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambda2Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt"); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambdaGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt"); + } + @Test @TestMetadata("accessPrivateInlineClassMethodFromLambda.kt") public void testAccessPrivateInlineClassMethodFromLambda() throws Exception { @@ -18042,6 +18631,20 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt"); } + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromLambda2Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt"); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromLambdaGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt"); + } + @Test public void testAllFilesPresentInContextsAndAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); @@ -18061,6 +18664,20 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2.kt"); } + @Test + @TestMetadata("captureInlineClassInstanceInLambda2Generic.kt") + public void testCaptureInlineClassInstanceInLambda2Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt"); + } + + @Test + @TestMetadata("captureInlineClassInstanceInLambdaGeneric.kt") + public void testCaptureInlineClassInstanceInLambdaGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt"); + } + @Test @TestMetadata("captureInlineClassInstanceInObject.kt") public void testCaptureInlineClassInstanceInObject() throws Exception { @@ -18068,6 +18685,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObject.kt"); } + @Test + @TestMetadata("captureInlineClassInstanceInObjectGeneric.kt") + public void testCaptureInlineClassInstanceInObjectGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt"); + } + @Test @TestMetadata("inlineLambdaInInlineClassFun.kt") public void testInlineLambdaInInlineClassFun() throws Exception { @@ -18075,6 +18699,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt"); } + @Test + @TestMetadata("inlineLambdaInInlineClassFunGeneric.kt") + public void testInlineLambdaInInlineClassFunGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt"); + } + @Test @TestMetadata("kt26858.kt") public void testKt26858() throws Exception { @@ -18082,6 +18713,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt"); } + @Test + @TestMetadata("kt26858Generic.kt") + public void testKt26858Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt"); + } + @Test @TestMetadata("kt27513.kt") public void testKt27513() throws Exception { @@ -18089,6 +18727,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt"); } + @Test + @TestMetadata("kt27513Generic.kt") + public void testKt27513Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt"); + } + @Test @TestMetadata("kt30780.kt") public void testKt30780() throws Exception { @@ -18096,6 +18741,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780.kt"); } + @Test + @TestMetadata("kt30780Generic.kt") + public void testKt30780Generic() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt"); + } + @Test @TestMetadata("lambdaInInlineClassFun.kt") public void testLambdaInInlineClassFun() throws Exception { @@ -18103,6 +18755,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt"); } + @Test + @TestMetadata("lambdaInInlineClassFunGeneric.kt") + public void testLambdaInInlineClassFunGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt"); + } + @Test @TestMetadata("objectInInlineClassFun.kt") public void testObjectInInlineClassFun() throws Exception { @@ -18110,6 +18769,13 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFun.kt"); } + @Test + @TestMetadata("objectInInlineClassFunGeneric.kt") + public void testObjectInInlineClassFunGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt"); + } + @Test @TestMetadata("toPrivateCompanionFun.kt") public void testToPrivateCompanionFun() throws Exception { @@ -18117,12 +18783,26 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt"); } + @Test + @TestMetadata("toPrivateCompanionFunGeneric.kt") + public void testToPrivateCompanionFunGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt"); + } + @Test @TestMetadata("toPrivateCompanionVal.kt") public void testToPrivateCompanionVal() throws Exception { // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt"); } + + @Test + @TestMetadata("toPrivateCompanionValGeneric.kt") + public void testToPrivateCompanionValGeneric() throws Exception { + // There is a registered source transformer for the testcase: TransformersFunctions.getRemoveOptionalJvmInlineAnnotation() + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt"); + } } @Nested @@ -18487,7 +19167,8 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue") @TestDataPath("$PROJECT_ROOT") - @NativeBlackBoxTestCaseGroupProvider(ExtTestCaseGroupProvider.class) + @Tag("external") + @UseExtTestCaseGroupProvider() public class GenericUnderlyingValue { @Test public void testAllFilesPresentInGenericUnderlyingValue() throws Exception {