[Tests] Remove unnecessary usages of OPTIONAL_JVM_INLINE_ANNOTATION
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com> #KT-1179
This commit is contained in:
committed by
Space Team
parent
50310d42e3
commit
fa4a4e56f3
+2
-2
@@ -33705,7 +33705,7 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
@Test
|
||||
@TestMetadata("recursiveMultiFieldValueClasses.kt")
|
||||
public void testRecursiveMultiFieldValueClasses() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/recursiveMultiFieldValueClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithUniversal());
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/recursiveMultiFieldValueClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -33771,7 +33771,7 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
@Test
|
||||
@TestMetadata("valueClassWithForbiddenUnderlyingTypeMultiField.kt")
|
||||
public void testValueClassWithForbiddenUnderlyingTypeMultiField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithUniversal());
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+2
-2
@@ -33801,7 +33801,7 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
@Test
|
||||
@TestMetadata("recursiveMultiFieldValueClasses.kt")
|
||||
public void testRecursiveMultiFieldValueClasses() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/recursiveMultiFieldValueClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithUniversal());
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/recursiveMultiFieldValueClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -33867,7 +33867,7 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
@Test
|
||||
@TestMetadata("valueClassWithForbiddenUnderlyingTypeMultiField.kt")
|
||||
public void testValueClassWithForbiddenUnderlyingTypeMultiField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithUniversal());
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+2
-2
@@ -33705,7 +33705,7 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
@Test
|
||||
@TestMetadata("recursiveMultiFieldValueClasses.kt")
|
||||
public void testRecursiveMultiFieldValueClasses() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/recursiveMultiFieldValueClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithUniversal());
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/recursiveMultiFieldValueClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -33771,7 +33771,7 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
@Test
|
||||
@TestMetadata("valueClassWithForbiddenUnderlyingTypeMultiField.kt")
|
||||
public void testValueClassWithForbiddenUnderlyingTypeMultiField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithUniversal());
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+42
-42
@@ -20984,7 +20984,7 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@Test
|
||||
@TestMetadata("classLiteralOnInlineClass.kt")
|
||||
public void testClassLiteralOnInlineClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21032,7 +21032,7 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@Test
|
||||
@TestMetadata("constructorImplVisibilityGeneric.kt")
|
||||
public void testConstructorImplVisibilityGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21464,7 +21464,7 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@Test
|
||||
@TestMetadata("inlineClassBothEqualsOverride.kt")
|
||||
public void testInlineClassBothEqualsOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassBothEqualsOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassBothEqualsOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21482,19 +21482,19 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@Test
|
||||
@TestMetadata("inlineClassEqualsConsistency.kt")
|
||||
public void testInlineClassEqualsConsistency() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsConsistency.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsConsistency.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassEqualsOverriddenForCollections.kt")
|
||||
public void testInlineClassEqualsOverriddenForCollections() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsOverriddenForCollections.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsOverriddenForCollections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassEqualsOverride.kt")
|
||||
public void testInlineClassEqualsOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21584,13 +21584,13 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@Test
|
||||
@TestMetadata("inlineClassTypedEqualsGenerics.kt")
|
||||
public void testInlineClassTypedEqualsGenerics() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassTypedEqualsGenerics.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassTypedEqualsGenerics.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassUntypedEqualsOverriden.kt")
|
||||
public void testInlineClassUntypedEqualsOverriden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassUntypedEqualsOverriden.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassUntypedEqualsOverriden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21740,25 +21740,25 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@Test
|
||||
@TestMetadata("inlineInCompanion.kt")
|
||||
public void testInlineInCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineInCompanionGeneric.kt")
|
||||
public void testInlineInCompanionGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanionGeneric.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineOverInlineWithCustomEquals.kt")
|
||||
public void testInlineOverInlineWithCustomEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineOverInlineWithCustomEquals.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineOverInlineWithCustomEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineToString.kt")
|
||||
public void testInlineToString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineToString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineToString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21800,7 +21800,7 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@Test
|
||||
@TestMetadata("javaPrimitiveTypeIC.kt")
|
||||
public void testJavaPrimitiveTypeIC() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21830,13 +21830,13 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@Test
|
||||
@TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt")
|
||||
public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt")
|
||||
public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21866,7 +21866,7 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@Test
|
||||
@TestMetadata("jvmStaticVarInInlineClassCompanion.kt")
|
||||
public void testJvmStaticVarInInlineClassCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -22376,13 +22376,13 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@Test
|
||||
@TestMetadata("kt54536.kt")
|
||||
public void testKt54536() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt54536.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt54536.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt54603.kt")
|
||||
public void testKt54603() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt54603.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt54603.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -22958,7 +22958,7 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@Test
|
||||
@TestMetadata("useOfInlineClassWithGenericMethodFromJava.kt")
|
||||
public void testUseOfInlineClassWithGenericMethodFromJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -32600,7 +32600,7 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@Test
|
||||
@TestMetadata("constructorWithMangledParams.kt")
|
||||
public void testConstructorWithMangledParams() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/notNullAssertions/constructorWithMangledParams.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/notNullAssertions/constructorWithMangledParams.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -50426,133 +50426,133 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@Test
|
||||
@TestMetadata("classFlattening.kt")
|
||||
public void testClassFlattening() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/classFlattening.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/classFlattening.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("complex.kt")
|
||||
public void testComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/complex.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/complex.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("conditionalExpressions.kt")
|
||||
public void testConditionalExpressions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/conditionalExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/conditionalExpressions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultParameters.kt")
|
||||
public void testDefaultParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/defaultParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/defaultParameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegating.kt")
|
||||
public void testDelegating() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/delegating.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/delegating.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("equality.kt")
|
||||
public void testEquality() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/equality.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/equality.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("forStatement.kt")
|
||||
public void testForStatement() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/forStatement.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/forStatement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionReferences.kt")
|
||||
public void testFunctionReferences() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/functionReferences.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/functionReferences.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcBothEqualsOverride.kt")
|
||||
public void testMfvcBothEqualsOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcBothEqualsOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcBothEqualsOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcEqualsConsistency.kt")
|
||||
public void testMfvcEqualsConsistency() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsConsistency.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsConsistency.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcEqualsOverriddenForCollections.kt")
|
||||
public void testMfvcEqualsOverriddenForCollections() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsOverriddenForCollections.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsOverriddenForCollections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcEqualsOverride.kt")
|
||||
public void testMfvcEqualsOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcFieldInitializationOrder.kt")
|
||||
public void testMfvcFieldInitializationOrder() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcFieldInitializationOrder.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcFieldInitializationOrder.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcHashCodeOverride.kt")
|
||||
public void testMfvcHashCodeOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcHashCodeOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcHashCodeOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcTypedEqualsGenerics.kt")
|
||||
public void testMfvcTypedEqualsGenerics() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcTypedEqualsGenerics.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcTypedEqualsGenerics.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcUntypedEqualsOverriden.kt")
|
||||
public void testMfvcUntypedEqualsOverriden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcUntypedEqualsOverriden.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcUntypedEqualsOverriden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrides.kt")
|
||||
public void testOverrides() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/overrides.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/overrides.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrides_inlineClass.kt")
|
||||
public void testOverrides_inlineClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/overrides_inlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/overrides_inlineClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrides_typeParameters.kt")
|
||||
public void testOverrides_typeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/overrides_typeParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/overrides_typeParameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("throwingMFVCReassignments.kt")
|
||||
public void testThrowingMFVCReassignments() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/throwingMFVCReassignments.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/throwingMFVCReassignments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryExpressions.kt")
|
||||
public void testTryExpressions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/tryExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/tryExpressions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("visibility.kt")
|
||||
public void testVisibility() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/visibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/visibility.kt");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+7
-8
@@ -8,7 +8,6 @@ package org.jetbrains.kotlin.test.runners.codegen;
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.utils.TransformersFunctions;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.jupiter.api.Nested;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -5804,43 +5803,43 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
|
||||
@Test
|
||||
@TestMetadata("conditionalExpressions.kt")
|
||||
public void testConditionalExpressions() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/conditionalExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/conditionalExpressions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("equalsBoxTest.kt")
|
||||
public void testEqualsBoxTest() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/equalsBoxTest.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/equalsBoxTest.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcDeclaration.kt")
|
||||
public void testMfvcDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/mfvcDeclaration.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/mfvcDeclaration.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcReassignments.kt")
|
||||
public void testMfvcReassignments() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/mfvcReassignments.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/mfvcReassignments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("passingMFVC2Functions.kt")
|
||||
public void testPassingMFVC2Functions() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/passingMFVC2Functions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/passingMFVC2Functions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("regularClassWithMFVC.kt")
|
||||
public void testRegularClassWithMFVC() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/regularClassWithMFVC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/regularClassWithMFVC.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryExpressions.kt")
|
||||
public void testTryExpressions() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/tryExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/tryExpressions.kt");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,23 +1,22 @@
|
||||
// WITH_STDLIB
|
||||
// WITH_REFLECT
|
||||
// TARGET_BACKEND: JVM
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
package root
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IcInt(val x: Int)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IcLong(val l: Long)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IcAny(val a: Any?)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IcOverIc(val o: IcLong)
|
||||
|
||||
fun check(c: KClass<*>, s: String) {
|
||||
|
||||
+4
-5
@@ -1,21 +1,20 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
// FULL_JDK
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
|
||||
|
||||
import java.lang.reflect.Modifier
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC1<T: Int> public constructor(val i: T)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC11<T: Int> internal constructor(val i: T)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC2<T: Int> private constructor(val i: T)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC4<T: Int> protected constructor(val i: T)
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+2
-3
@@ -1,5 +1,4 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
@@ -9,7 +8,7 @@ interface I {
|
||||
fun getVal(): Int
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC1(val x: Int) : I {
|
||||
override fun getVal(): Int {
|
||||
return x
|
||||
@@ -31,7 +30,7 @@ value class IC1(val x: Int) : I {
|
||||
}
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC2(val y: Int) : I {
|
||||
override fun getVal(): Int {
|
||||
return y * 10
|
||||
|
||||
+2
-3
@@ -1,5 +1,4 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
@@ -7,14 +6,14 @@
|
||||
import java.lang.AssertionError
|
||||
import kotlin.math.abs
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC1(val x: Double) {
|
||||
fun equals(other: IC1): Boolean {
|
||||
return abs(x - other.x) < 0.5
|
||||
}
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC2(val x: Int) {
|
||||
override fun equals(other: Any?): Boolean {
|
||||
if (other !is IC2) {
|
||||
|
||||
+1
-2
@@ -1,12 +1,11 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
import kotlin.math.abs
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC(val x: Double) {
|
||||
operator fun equals(other: IC): Boolean {
|
||||
return abs(x - other.x) < 0.1
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
import kotlin.math.abs
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC1(val value: Double) {
|
||||
fun equals(other: IC1): Boolean {
|
||||
return abs(value - other.value) < 0.1
|
||||
@@ -17,29 +16,29 @@ interface I {
|
||||
fun equals(param: IC2): Boolean
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC2(val value: Int) : I {
|
||||
override operator fun equals(param: IC2): Boolean {
|
||||
return abs(value - param.value) < 2
|
||||
}
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC3(val value: Int) {
|
||||
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC4(val value: Int) {
|
||||
override fun equals(other: Any?) = TODO()
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC5(val value: Int) {
|
||||
operator fun equals(other: IC5): Nothing = TODO()
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC6(val value: Int) {
|
||||
override fun equals(other: Any?): Nothing = TODO()
|
||||
}
|
||||
|
||||
+4
-5
@@ -1,10 +1,9 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC1<T : Number>(val x: T) {
|
||||
fun equals(other: Int) = false
|
||||
fun equals(other: IC1<*>) = true
|
||||
@@ -12,19 +11,19 @@ value class IC1<T : Number>(val x: T) {
|
||||
|
||||
class Generic<T, R>(val x: T, val y: R)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC2<T, R>(val value: Generic<T, R>) {
|
||||
fun equals(other: IC1<Double>) = false
|
||||
fun equals(other: IC2<*, *>) = true
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC3<T>(val value: T) {
|
||||
fun equals(other: Int) = false
|
||||
fun equals(other: IC3<*>) = true
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC4<T>(val value: T) {
|
||||
fun equals(other: String) = false
|
||||
fun equals(other: IC4<*>) = true
|
||||
|
||||
+1
-2
@@ -1,12 +1,11 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
import kotlin.math.abs
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC(val x: Int) {
|
||||
override fun equals(other: Any?): Boolean {
|
||||
if (other !is IC) {
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
// FILE: R.kt
|
||||
import kotlin.jvm.JvmInline
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class R(val value: String) {
|
||||
companion object {
|
||||
inline fun ok() = R("OK")
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
|
||||
// FILE: R.kt
|
||||
import kotlin.jvm.JvmInline
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class R<T: String>(val value: T) {
|
||||
companion object {
|
||||
inline fun ok() = R("OK")
|
||||
|
||||
+10
-11
@@ -1,47 +1,46 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A(val x: Int) {
|
||||
operator fun equals(other: A) = true
|
||||
}
|
||||
|
||||
class C
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B1(val x: A)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B2(val x: A?)
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class D1(val x: C) {
|
||||
operator fun equals(other: D1) = true
|
||||
}
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class D2(val x: C?) {
|
||||
operator fun equals(other: D2) = true
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class E1(val x: D1)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class E2(val x: D2)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class F<T>(val x: T)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class G<T : D1>(val x: T)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class H<T>(val x: F<T>)
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
import kotlin.jvm.JvmInline
|
||||
@@ -9,7 +8,7 @@ open class Expando {
|
||||
val expansion: Expansion = Expansion()
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class Expansion(val map: MutableMap<String, Any?> = mutableMapOf()) {
|
||||
override inline fun toString(): String = "OK"
|
||||
}
|
||||
|
||||
@@ -1,20 +1,19 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class I(val x: Int)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class JLI(val x: java.lang.Integer)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class U(val x: Unit?)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class N(val x: Nothing?)
|
||||
|
||||
val icUnit = U(Unit)
|
||||
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class Str(val s: String)
|
||||
|
||||
@JvmOverloads
|
||||
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class Str<T: String>(val s: T)
|
||||
|
||||
@JvmOverloads
|
||||
|
||||
+1
-2
@@ -1,11 +1,10 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class R(private val r: Int) {
|
||||
|
||||
companion object {
|
||||
|
||||
+2
-3
@@ -1,14 +1,13 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A(val x: Int) {
|
||||
operator fun equals(other: A) = x % 5 == other.x % 5
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B(val x: A)
|
||||
|
||||
fun box() = if (B(A(0)) == B(A(5))) "OK" else "Fail"
|
||||
|
||||
+8
-9
@@ -1,46 +1,45 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
class A(x: Int)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B(val a: A) {
|
||||
override fun equals(other: Any?) = true
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class C<T>(val t: T) {
|
||||
override fun equals(other: Any?) = true
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class D<T : Int>(val t: T) {
|
||||
override fun equals(other: Any?) = true
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class E(val d: Double) {
|
||||
override fun equals(other: Any?) = true
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class F(val e: E) {
|
||||
override fun equals(other: Any?) = true
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class G(val e: Int?) {
|
||||
override fun equals(other: Any?) = true
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class H(val e: Any?) {
|
||||
override fun equals(other: Any?) = true
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class I(val e: E?) {
|
||||
override fun equals(other: Any?) = true
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,11 +1,10 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
// FILE: a.kt
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC(val v: Int) {
|
||||
fun <T> getT(): T? = null
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
// WITH_REFLECT
|
||||
// FULL_JDK
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
@@ -9,7 +8,7 @@ import java.lang.reflect.InvocationTargetException
|
||||
import kotlin.reflect.jvm.isAccessible
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class IC(val str: String)
|
||||
|
||||
class A(val a: IC, val x : String) {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses +ContextReceivers
|
||||
// CHECK_BYTECODE_LISTING
|
||||
// FIR_IDENTICAL
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND: ANDROID, ANDROID_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +ValueClassesSecondaryConstructorWithBody
|
||||
|
||||
@JvmInline
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
@JvmInline
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// CHECK_BYTECODE_LISTING
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
@JvmInline
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// !LANGUAGE: +ValueClasses
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
|
||||
+8
-9
@@ -1,28 +1,27 @@
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class F1(val x: Int)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class F2(val x: UInt)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class F3(val x: F1, val y: F2)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class F4(val x: Int)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class F5(val x: UInt)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class F6(val x: String)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A(
|
||||
val f1: F1,
|
||||
val f2: F2,
|
||||
@@ -35,7 +34,7 @@ value class A(
|
||||
val f9: String,
|
||||
)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B(val a1: A, val a2: A) {
|
||||
override fun toString(): String {
|
||||
return "OverridenBToString(a1 = $a1, a2 = $a2)"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
@JvmInline
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// WITH_STDLIB
|
||||
// WITH_COROUTINES
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
// FILE: caller.kt
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
var counter = 0
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class MFVC(val x: Int, val y: Int) {
|
||||
|
||||
fun equals(other: MFVC): Boolean {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
@@ -7,14 +6,14 @@
|
||||
import java.lang.AssertionError
|
||||
import kotlin.math.abs
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class MFVC1(val x: Int, val y: Int) {
|
||||
fun equals(other: MFVC1): Boolean {
|
||||
return abs(x - other.x) < 2 && abs(y - other.y) < 2
|
||||
}
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class MFVC2(val x: Int, val y: Int) {
|
||||
override fun equals(other: Any?): Boolean {
|
||||
if (other !is MFVC2) {
|
||||
|
||||
+1
-2
@@ -1,12 +1,11 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
import kotlin.math.abs
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class MFVC(val x: Double, val y: Int) {
|
||||
fun equals(other: MFVC): Boolean {
|
||||
return abs(x - other.x) < 0.1
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
@@ -10,7 +9,7 @@ interface I {
|
||||
fun equals(param: MFVC): Boolean
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class MFVC(val value: Int, val y: Int) : I {
|
||||
override fun equals(param: MFVC): Boolean {
|
||||
return abs(value - param.value) < 2
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
// CHECK_BYTECODE_LISTING
|
||||
// FIR_IDENTICAL
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A(val value1: MyClass, val value2: MyClass) {
|
||||
override fun hashCode() = 42
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class MFVC1<T : Number>(val x: T, val other: Int) {
|
||||
fun equals(x: Int, other: Int) = false
|
||||
fun equals(other: MFVC1<*>) = true
|
||||
@@ -12,19 +11,19 @@ value class MFVC1<T : Number>(val x: T, val other: Int) {
|
||||
|
||||
class Generic<T, R>(val x: T, val y: R)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class MFVC2<T, R>(val value: Generic<T, R>, val other: Int) {
|
||||
fun equals(value: MFVC1<Double>, other: Int) = false
|
||||
fun equals(other: MFVC2<*, *>) = true
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class MFVC3<T>(val value: T, val other: Int) {
|
||||
fun equals(value: Int, other: Int) = false
|
||||
fun equals(other: MFVC3<*>) = true
|
||||
}
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class MFVC4<T>(val value: T, val other: Int) {
|
||||
fun equals(value: Any, other: Int) = false
|
||||
fun equals(other: MFVC4<*>) = true
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
import kotlin.math.abs
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class MFVC(val x: Int, val y: Int) {
|
||||
override fun equals(other: Any?): Boolean {
|
||||
if (other !is MFVC) {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
// LANGUAGE: +GenericInlineClassParameter
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
// CHECK_BYTECODE_LISTING
|
||||
// FIR_IDENTICAL
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
@JvmInline
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
@JvmInline
|
||||
@@ -294,4 +293,4 @@ fun box(): String {
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// !LANGUAGE: +ValueClasses
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// FIR_IDENTICAL
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
@JvmInline
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
@JvmInline
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
@JvmInline
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
@JvmInline
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
@JvmInline
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
@JvmInline
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
@JvmInline
|
||||
|
||||
+23
-24
@@ -1,82 +1,81 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A1(val x: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>A1<!>)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B1(val x: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>B1<!>, val y: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>B1<!>)
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A2(val x: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>B2<!>)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B2(val x: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>A2<!>, val y: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>A2<!>)
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A3(val x: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>B3<!>)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B3(val x: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>A3<!>)
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A4(val x: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>B4<!>, val y: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>B4<!>)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B4(val x: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>A4<!>, val y: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>A4<!>)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class C4(val x: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>D4?<!>, val y: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>D4?<!>)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class D4(val x: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>D4?<!>, val y: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>C4?<!>)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class E4(val x: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>E4?<!>, val y: Int)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class F4(val x: Int, val y: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>F4?<!>)
|
||||
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A5<T : A5<T>>(val x: T)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B5<T : B5<T>>(val x: T, val y: T)
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A6<T : B6<<!UPPER_BOUND_VIOLATED!>T<!>>>(val x: T, val y: T)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B6<T : A6<<!UPPER_BOUND_VIOLATED!>T<!>>>(val x: T)
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A7<T : B7<<!UPPER_BOUND_VIOLATED!>T<!>>>(val x: T, val y: T)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B7<T : A7<<!UPPER_BOUND_VIOLATED!>T<!>>>(val x: T, val y: T)
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A8<T : B8<<!UPPER_BOUND_VIOLATED!>T<!>>>(val x: T?, val y: T?)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B8<T : A8<<!UPPER_BOUND_VIOLATED!>T<!>>>(val x: T?, val y: T?)
|
||||
|
||||
interface I1
|
||||
interface I2
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class A<T, G : C?>(
|
||||
val t1: List<T>,
|
||||
val t2: UInt,
|
||||
@@ -91,8 +90,8 @@ value class A<T, G : C?>(
|
||||
val t11: T?,
|
||||
) where T : I1, T : B?, T : I2
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class B(val x: UInt, val a: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>A<B, Nothing><!>) : I1, I2
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class C(val x: UInt, val a: <!VALUE_CLASS_CANNOT_BE_RECURSIVE!>A<B, Nothing><!>)
|
||||
|
||||
+23
-23
@@ -1,6 +1,6 @@
|
||||
package
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class A</*0*/ T : I1, /*1*/ G : C?> where T : B?, T : I2 {
|
||||
@kotlin.jvm.JvmInline public final value class A</*0*/ T : I1, /*1*/ G : C?> where T : B?, T : I2 {
|
||||
public constructor A</*0*/ T : I1, /*1*/ G : C?>(/*0*/ t1: kotlin.collections.List<T>, /*1*/ t2: kotlin.UInt, /*2*/ t3: kotlin.collections.List<G?>, /*3*/ t4: kotlin.UInt, /*4*/ t5: C, /*5*/ t6: kotlin.Int, /*6*/ t7: B, /*7*/ t8: kotlin.String, /*8*/ t9: T, /*9*/ t10: kotlin.Char, /*10*/ t11: T?) where T : B?, T : I2
|
||||
public final val t1: kotlin.collections.List<T>
|
||||
public final val t10: kotlin.Char
|
||||
@@ -18,7 +18,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class A1 {
|
||||
@kotlin.jvm.JvmInline public final value class A1 {
|
||||
public constructor A1(/*0*/ x: A1)
|
||||
public final val x: A1
|
||||
public open override /*1*/ /*synthesized*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -26,7 +26,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class A2 {
|
||||
@kotlin.jvm.JvmInline public final value class A2 {
|
||||
public constructor A2(/*0*/ x: B2)
|
||||
public final val x: B2
|
||||
public open override /*1*/ /*synthesized*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -34,7 +34,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class A3 {
|
||||
@kotlin.jvm.JvmInline public final value class A3 {
|
||||
public constructor A3(/*0*/ x: B3)
|
||||
public final val x: B3
|
||||
public open override /*1*/ /*synthesized*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -42,7 +42,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class A4 {
|
||||
@kotlin.jvm.JvmInline public final value class A4 {
|
||||
public constructor A4(/*0*/ x: B4, /*1*/ y: B4)
|
||||
public final val x: B4
|
||||
public final val y: B4
|
||||
@@ -51,7 +51,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class A5</*0*/ T : A5<T>> {
|
||||
@kotlin.jvm.JvmInline public final value class A5</*0*/ T : A5<T>> {
|
||||
public constructor A5</*0*/ T : A5<T>>(/*0*/ x: T)
|
||||
public final val x: T
|
||||
public open override /*1*/ /*synthesized*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -59,7 +59,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class A6</*0*/ T : B6<T>> {
|
||||
@kotlin.jvm.JvmInline public final value class A6</*0*/ T : B6<T>> {
|
||||
public constructor A6</*0*/ T : B6<T>>(/*0*/ x: T, /*1*/ y: T)
|
||||
public final val x: T
|
||||
public final val y: T
|
||||
@@ -68,7 +68,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class A7</*0*/ T : B7<T>> {
|
||||
@kotlin.jvm.JvmInline public final value class A7</*0*/ T : B7<T>> {
|
||||
public constructor A7</*0*/ T : B7<T>>(/*0*/ x: T, /*1*/ y: T)
|
||||
public final val x: T
|
||||
public final val y: T
|
||||
@@ -77,7 +77,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class A8</*0*/ T : B8<T>> {
|
||||
@kotlin.jvm.JvmInline public final value class A8</*0*/ T : B8<T>> {
|
||||
public constructor A8</*0*/ T : B8<T>>(/*0*/ x: T?, /*1*/ y: T?)
|
||||
public final val x: T?
|
||||
public final val y: T?
|
||||
@@ -86,7 +86,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class B : I1, I2 {
|
||||
@kotlin.jvm.JvmInline public final value class B : I1, I2 {
|
||||
public constructor B(/*0*/ x: kotlin.UInt, /*1*/ a: A<B, kotlin.Nothing>)
|
||||
public final val a: A<B, kotlin.Nothing>
|
||||
public final val x: kotlin.UInt
|
||||
@@ -95,7 +95,7 @@ package
|
||||
public open override /*2*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class B1 {
|
||||
@kotlin.jvm.JvmInline public final value class B1 {
|
||||
public constructor B1(/*0*/ x: B1, /*1*/ y: B1)
|
||||
public final val x: B1
|
||||
public final val y: B1
|
||||
@@ -104,7 +104,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class B2 {
|
||||
@kotlin.jvm.JvmInline public final value class B2 {
|
||||
public constructor B2(/*0*/ x: A2, /*1*/ y: A2)
|
||||
public final val x: A2
|
||||
public final val y: A2
|
||||
@@ -113,7 +113,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class B3 {
|
||||
@kotlin.jvm.JvmInline public final value class B3 {
|
||||
public constructor B3(/*0*/ x: A3)
|
||||
public final val x: A3
|
||||
public open override /*1*/ /*synthesized*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -121,7 +121,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class B4 {
|
||||
@kotlin.jvm.JvmInline public final value class B4 {
|
||||
public constructor B4(/*0*/ x: A4, /*1*/ y: A4)
|
||||
public final val x: A4
|
||||
public final val y: A4
|
||||
@@ -130,7 +130,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class B5</*0*/ T : B5<T>> {
|
||||
@kotlin.jvm.JvmInline public final value class B5</*0*/ T : B5<T>> {
|
||||
public constructor B5</*0*/ T : B5<T>>(/*0*/ x: T, /*1*/ y: T)
|
||||
public final val x: T
|
||||
public final val y: T
|
||||
@@ -139,7 +139,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class B6</*0*/ T : A6<T>> {
|
||||
@kotlin.jvm.JvmInline public final value class B6</*0*/ T : A6<T>> {
|
||||
public constructor B6</*0*/ T : A6<T>>(/*0*/ x: T)
|
||||
public final val x: T
|
||||
public open override /*1*/ /*synthesized*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -147,7 +147,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class B7</*0*/ T : A7<T>> {
|
||||
@kotlin.jvm.JvmInline public final value class B7</*0*/ T : A7<T>> {
|
||||
public constructor B7</*0*/ T : A7<T>>(/*0*/ x: T, /*1*/ y: T)
|
||||
public final val x: T
|
||||
public final val y: T
|
||||
@@ -156,7 +156,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class B8</*0*/ T : A8<T>> {
|
||||
@kotlin.jvm.JvmInline public final value class B8</*0*/ T : A8<T>> {
|
||||
public constructor B8</*0*/ T : A8<T>>(/*0*/ x: T?, /*1*/ y: T?)
|
||||
public final val x: T?
|
||||
public final val y: T?
|
||||
@@ -165,7 +165,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class C {
|
||||
@kotlin.jvm.JvmInline public final value class C {
|
||||
public constructor C(/*0*/ x: kotlin.UInt, /*1*/ a: A<B, kotlin.Nothing>)
|
||||
public final val a: A<B, kotlin.Nothing>
|
||||
public final val x: kotlin.UInt
|
||||
@@ -174,7 +174,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class C4 {
|
||||
@kotlin.jvm.JvmInline public final value class C4 {
|
||||
public constructor C4(/*0*/ x: D4?, /*1*/ y: D4?)
|
||||
public final val x: D4?
|
||||
public final val y: D4?
|
||||
@@ -183,7 +183,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class D4 {
|
||||
@kotlin.jvm.JvmInline public final value class D4 {
|
||||
public constructor D4(/*0*/ x: D4?, /*1*/ y: C4?)
|
||||
public final val x: D4?
|
||||
public final val y: C4?
|
||||
@@ -192,7 +192,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class E4 {
|
||||
@kotlin.jvm.JvmInline public final value class E4 {
|
||||
public constructor E4(/*0*/ x: E4?, /*1*/ y: kotlin.Int)
|
||||
public final val x: E4?
|
||||
public final val y: kotlin.Int
|
||||
@@ -201,7 +201,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class F4 {
|
||||
@kotlin.jvm.JvmInline public final value class F4 {
|
||||
public constructor F4(/*0*/ x: kotlin.Int, /*1*/ y: F4?)
|
||||
public final val x: kotlin.Int
|
||||
public final val y: F4?
|
||||
|
||||
Vendored
+13
-14
@@ -1,49 +1,48 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class Empty<T><!VALUE_CLASS_EMPTY_CONSTRUCTOR!>()<!>
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class Foo<T>(val x: T, val y: T)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class FooNullable<T>(val x: T?, val y: T?)
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class FooGenericArray<T>(val x: Array<T>, val y: Array<T>)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class FooGenericArray2<T>(val x: Array<Array<T>>, val y: Array<Array<T>>)
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class FooStarProjectedArray(val x: Array<*>, val y: Array<*>)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class FooStarProjectedArray2(val x: Array<Array<*>>, val y: Array<Array<*>>)
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class Bar(val u: <!VALUE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE!>Unit<!>, val y: <!VALUE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE!>Unit<!>)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class BarNullable(val u: Unit?, val y: Unit?)
|
||||
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class Baz(val u: <!VALUE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE!>Nothing<!>, val y: <!VALUE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE!>Nothing<!>)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class Baz1(val u: <!VALUE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE!>Nothing<!>, val y: Int)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class Baz2(val u: Int, val y: <!VALUE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE!>Nothing<!>)
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
@JvmInline
|
||||
value class BazNullable(val u: Nothing?, val y: Nothing?)
|
||||
|
||||
compiler/testData/diagnostics/tests/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.txt
Vendored
+13
-13
@@ -1,6 +1,6 @@
|
||||
package
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class Bar {
|
||||
@kotlin.jvm.JvmInline public final value class Bar {
|
||||
public constructor Bar(/*0*/ u: kotlin.Unit, /*1*/ y: kotlin.Unit)
|
||||
public final val u: kotlin.Unit
|
||||
public final val y: kotlin.Unit
|
||||
@@ -9,7 +9,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class BarNullable {
|
||||
@kotlin.jvm.JvmInline public final value class BarNullable {
|
||||
public constructor BarNullable(/*0*/ u: kotlin.Unit?, /*1*/ y: kotlin.Unit?)
|
||||
public final val u: kotlin.Unit?
|
||||
public final val y: kotlin.Unit?
|
||||
@@ -18,7 +18,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class Baz {
|
||||
@kotlin.jvm.JvmInline public final value class Baz {
|
||||
public constructor Baz(/*0*/ u: kotlin.Nothing, /*1*/ y: kotlin.Nothing)
|
||||
public final val u: kotlin.Nothing
|
||||
public final val y: kotlin.Nothing
|
||||
@@ -27,7 +27,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class Baz1 {
|
||||
@kotlin.jvm.JvmInline public final value class Baz1 {
|
||||
public constructor Baz1(/*0*/ u: kotlin.Nothing, /*1*/ y: kotlin.Int)
|
||||
public final val u: kotlin.Nothing
|
||||
public final val y: kotlin.Int
|
||||
@@ -36,7 +36,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class Baz2 {
|
||||
@kotlin.jvm.JvmInline public final value class Baz2 {
|
||||
public constructor Baz2(/*0*/ u: kotlin.Int, /*1*/ y: kotlin.Nothing)
|
||||
public final val u: kotlin.Int
|
||||
public final val y: kotlin.Nothing
|
||||
@@ -45,7 +45,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class BazNullable {
|
||||
@kotlin.jvm.JvmInline public final value class BazNullable {
|
||||
public constructor BazNullable(/*0*/ u: kotlin.Nothing?, /*1*/ y: kotlin.Nothing?)
|
||||
public final val u: kotlin.Nothing?
|
||||
public final val y: kotlin.Nothing?
|
||||
@@ -54,14 +54,14 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class Empty</*0*/ T> {
|
||||
@kotlin.jvm.JvmInline public final value class Empty</*0*/ T> {
|
||||
public constructor Empty</*0*/ T>()
|
||||
public open override /*1*/ /*synthesized*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*synthesized*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class Foo</*0*/ T> {
|
||||
@kotlin.jvm.JvmInline public final value class Foo</*0*/ T> {
|
||||
public constructor Foo</*0*/ T>(/*0*/ x: T, /*1*/ y: T)
|
||||
public final val x: T
|
||||
public final val y: T
|
||||
@@ -70,7 +70,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class FooGenericArray</*0*/ T> {
|
||||
@kotlin.jvm.JvmInline public final value class FooGenericArray</*0*/ T> {
|
||||
public constructor FooGenericArray</*0*/ T>(/*0*/ x: kotlin.Array<T>, /*1*/ y: kotlin.Array<T>)
|
||||
public final val x: kotlin.Array<T>
|
||||
public final val y: kotlin.Array<T>
|
||||
@@ -79,7 +79,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class FooGenericArray2</*0*/ T> {
|
||||
@kotlin.jvm.JvmInline public final value class FooGenericArray2</*0*/ T> {
|
||||
public constructor FooGenericArray2</*0*/ T>(/*0*/ x: kotlin.Array<kotlin.Array<T>>, /*1*/ y: kotlin.Array<kotlin.Array<T>>)
|
||||
public final val x: kotlin.Array<kotlin.Array<T>>
|
||||
public final val y: kotlin.Array<kotlin.Array<T>>
|
||||
@@ -88,7 +88,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class FooNullable</*0*/ T> {
|
||||
@kotlin.jvm.JvmInline public final value class FooNullable</*0*/ T> {
|
||||
public constructor FooNullable</*0*/ T>(/*0*/ x: T?, /*1*/ y: T?)
|
||||
public final val x: T?
|
||||
public final val y: T?
|
||||
@@ -97,7 +97,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class FooStarProjectedArray {
|
||||
@kotlin.jvm.JvmInline public final value class FooStarProjectedArray {
|
||||
public constructor FooStarProjectedArray(/*0*/ x: kotlin.Array<*>, /*1*/ y: kotlin.Array<*>)
|
||||
public final val x: kotlin.Array<*>
|
||||
public final val y: kotlin.Array<*>
|
||||
@@ -106,7 +106,7 @@ package
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE"}) @kotlin.jvm.JvmInline public final value class FooStarProjectedArray2 {
|
||||
@kotlin.jvm.JvmInline public final value class FooStarProjectedArray2 {
|
||||
public constructor FooStarProjectedArray2(/*0*/ x: kotlin.Array<kotlin.Array<*>>, /*1*/ y: kotlin.Array<kotlin.Array<*>>)
|
||||
public final val x: kotlin.Array<kotlin.Array<*>>
|
||||
public final val y: kotlin.Array<kotlin.Array<*>>
|
||||
|
||||
Generated
+2
-2
@@ -33801,7 +33801,7 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
@Test
|
||||
@TestMetadata("recursiveMultiFieldValueClasses.kt")
|
||||
public void testRecursiveMultiFieldValueClasses() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/recursiveMultiFieldValueClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithUniversal());
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/recursiveMultiFieldValueClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -33867,7 +33867,7 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
@Test
|
||||
@TestMetadata("valueClassWithForbiddenUnderlyingTypeMultiField.kt")
|
||||
public void testValueClassWithForbiddenUnderlyingTypeMultiField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithUniversal());
|
||||
runTest("compiler/testData/diagnostics/tests/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+7
-7
@@ -20252,7 +20252,7 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
@Test
|
||||
@TestMetadata("classLiteralOnInlineClass.kt")
|
||||
public void testClassLiteralOnInlineClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -20300,7 +20300,7 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
@Test
|
||||
@TestMetadata("constructorImplVisibilityGeneric.kt")
|
||||
public void testConstructorImplVisibilityGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21002,7 +21002,7 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
@Test
|
||||
@TestMetadata("javaPrimitiveTypeIC.kt")
|
||||
public void testJavaPrimitiveTypeIC() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21032,13 +21032,13 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
@Test
|
||||
@TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt")
|
||||
public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt")
|
||||
public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21068,7 +21068,7 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
@Test
|
||||
@TestMetadata("jvmStaticVarInInlineClassCompanion.kt")
|
||||
public void testJvmStaticVarInInlineClassCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -22136,7 +22136,7 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
@Test
|
||||
@TestMetadata("useOfInlineClassWithGenericMethodFromJava.kt")
|
||||
public void testUseOfInlineClassWithGenericMethodFromJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
-1
@@ -8,7 +8,6 @@ package org.jetbrains.kotlin.test.runners.codegen;
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.utils.TransformersFunctions;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.jupiter.api.Nested;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
-1
@@ -8,7 +8,6 @@ package org.jetbrains.kotlin.test.runners.codegen;
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.utils.TransformersFunctions;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.jupiter.api.Nested;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
+42
-42
@@ -20984,7 +20984,7 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@Test
|
||||
@TestMetadata("classLiteralOnInlineClass.kt")
|
||||
public void testClassLiteralOnInlineClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21032,7 +21032,7 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@Test
|
||||
@TestMetadata("constructorImplVisibilityGeneric.kt")
|
||||
public void testConstructorImplVisibilityGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21464,7 +21464,7 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@Test
|
||||
@TestMetadata("inlineClassBothEqualsOverride.kt")
|
||||
public void testInlineClassBothEqualsOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassBothEqualsOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassBothEqualsOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21482,19 +21482,19 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@Test
|
||||
@TestMetadata("inlineClassEqualsConsistency.kt")
|
||||
public void testInlineClassEqualsConsistency() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsConsistency.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsConsistency.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassEqualsOverriddenForCollections.kt")
|
||||
public void testInlineClassEqualsOverriddenForCollections() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsOverriddenForCollections.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsOverriddenForCollections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassEqualsOverride.kt")
|
||||
public void testInlineClassEqualsOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21584,13 +21584,13 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@Test
|
||||
@TestMetadata("inlineClassTypedEqualsGenerics.kt")
|
||||
public void testInlineClassTypedEqualsGenerics() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassTypedEqualsGenerics.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassTypedEqualsGenerics.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassUntypedEqualsOverriden.kt")
|
||||
public void testInlineClassUntypedEqualsOverriden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassUntypedEqualsOverriden.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassUntypedEqualsOverriden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21740,25 +21740,25 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@Test
|
||||
@TestMetadata("inlineInCompanion.kt")
|
||||
public void testInlineInCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineInCompanionGeneric.kt")
|
||||
public void testInlineInCompanionGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanionGeneric.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineOverInlineWithCustomEquals.kt")
|
||||
public void testInlineOverInlineWithCustomEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineOverInlineWithCustomEquals.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineOverInlineWithCustomEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineToString.kt")
|
||||
public void testInlineToString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineToString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineToString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21800,7 +21800,7 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@Test
|
||||
@TestMetadata("javaPrimitiveTypeIC.kt")
|
||||
public void testJavaPrimitiveTypeIC() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21830,13 +21830,13 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@Test
|
||||
@TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt")
|
||||
public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt")
|
||||
public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21866,7 +21866,7 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@Test
|
||||
@TestMetadata("jvmStaticVarInInlineClassCompanion.kt")
|
||||
public void testJvmStaticVarInInlineClassCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -22376,13 +22376,13 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@Test
|
||||
@TestMetadata("kt54536.kt")
|
||||
public void testKt54536() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt54536.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt54536.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt54603.kt")
|
||||
public void testKt54603() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt54603.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt54603.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -22958,7 +22958,7 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@Test
|
||||
@TestMetadata("useOfInlineClassWithGenericMethodFromJava.kt")
|
||||
public void testUseOfInlineClassWithGenericMethodFromJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -32600,7 +32600,7 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@Test
|
||||
@TestMetadata("constructorWithMangledParams.kt")
|
||||
public void testConstructorWithMangledParams() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/notNullAssertions/constructorWithMangledParams.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/notNullAssertions/constructorWithMangledParams.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -50426,133 +50426,133 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@Test
|
||||
@TestMetadata("classFlattening.kt")
|
||||
public void testClassFlattening() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/classFlattening.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/classFlattening.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("complex.kt")
|
||||
public void testComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/complex.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/complex.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("conditionalExpressions.kt")
|
||||
public void testConditionalExpressions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/conditionalExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/conditionalExpressions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultParameters.kt")
|
||||
public void testDefaultParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/defaultParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/defaultParameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegating.kt")
|
||||
public void testDelegating() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/delegating.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/delegating.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("equality.kt")
|
||||
public void testEquality() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/equality.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/equality.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("forStatement.kt")
|
||||
public void testForStatement() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/forStatement.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/forStatement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionReferences.kt")
|
||||
public void testFunctionReferences() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/functionReferences.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/functionReferences.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcBothEqualsOverride.kt")
|
||||
public void testMfvcBothEqualsOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcBothEqualsOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcBothEqualsOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcEqualsConsistency.kt")
|
||||
public void testMfvcEqualsConsistency() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsConsistency.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsConsistency.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcEqualsOverriddenForCollections.kt")
|
||||
public void testMfvcEqualsOverriddenForCollections() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsOverriddenForCollections.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsOverriddenForCollections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcEqualsOverride.kt")
|
||||
public void testMfvcEqualsOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcFieldInitializationOrder.kt")
|
||||
public void testMfvcFieldInitializationOrder() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcFieldInitializationOrder.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcFieldInitializationOrder.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcHashCodeOverride.kt")
|
||||
public void testMfvcHashCodeOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcHashCodeOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcHashCodeOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcTypedEqualsGenerics.kt")
|
||||
public void testMfvcTypedEqualsGenerics() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcTypedEqualsGenerics.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcTypedEqualsGenerics.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcUntypedEqualsOverriden.kt")
|
||||
public void testMfvcUntypedEqualsOverriden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcUntypedEqualsOverriden.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/mfvcUntypedEqualsOverriden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrides.kt")
|
||||
public void testOverrides() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/overrides.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/overrides.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrides_inlineClass.kt")
|
||||
public void testOverrides_inlineClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/overrides_inlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/overrides_inlineClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrides_typeParameters.kt")
|
||||
public void testOverrides_typeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/overrides_typeParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/overrides_typeParameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("throwingMFVCReassignments.kt")
|
||||
public void testThrowingMFVCReassignments() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/throwingMFVCReassignments.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/throwingMFVCReassignments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryExpressions.kt")
|
||||
public void testTryExpressions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/tryExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/tryExpressions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("visibility.kt")
|
||||
public void testVisibility() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/valueClasses/visibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/valueClasses/visibility.kt");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -8,7 +8,6 @@ package org.jetbrains.kotlin.test.runners.codegen;
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.utils.TransformersFunctions;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.jupiter.api.Nested;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -2526,7 +2525,7 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes
|
||||
@Test
|
||||
@TestMetadata("annotations.kt")
|
||||
public void testAnnotations() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/valueClasses/annotations.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeListing/valueClasses/annotations.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+7
-8
@@ -8,7 +8,6 @@ package org.jetbrains.kotlin.test.runners.codegen;
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.utils.TransformersFunctions;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.jupiter.api.Nested;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -5804,43 +5803,43 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
@Test
|
||||
@TestMetadata("conditionalExpressions.kt")
|
||||
public void testConditionalExpressions() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/conditionalExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/conditionalExpressions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("equalsBoxTest.kt")
|
||||
public void testEqualsBoxTest() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/equalsBoxTest.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/equalsBoxTest.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcDeclaration.kt")
|
||||
public void testMfvcDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/mfvcDeclaration.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/mfvcDeclaration.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mfvcReassignments.kt")
|
||||
public void testMfvcReassignments() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/mfvcReassignments.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/mfvcReassignments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("passingMFVC2Functions.kt")
|
||||
public void testPassingMFVC2Functions() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/passingMFVC2Functions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/passingMFVC2Functions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("regularClassWithMFVC.kt")
|
||||
public void testRegularClassWithMFVC() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/regularClassWithMFVC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/regularClassWithMFVC.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryExpressions.kt")
|
||||
public void testTryExpressions() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/tryExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/bytecodeText/valueClasses/tryExpressions.kt");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+7
-7
@@ -17067,7 +17067,7 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
|
||||
@TestMetadata("classLiteralOnInlineClass.kt")
|
||||
public void testClassLiteralOnInlineClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("computablePropertyInsideInlineClass.kt")
|
||||
@@ -17102,7 +17102,7 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
|
||||
@TestMetadata("constructorImplVisibilityGeneric.kt")
|
||||
public void testConstructorImplVisibilityGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("correctBoxingForBranchExpressions.kt")
|
||||
@@ -17647,7 +17647,7 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
|
||||
@TestMetadata("javaPrimitiveTypeIC.kt")
|
||||
public void testJavaPrimitiveTypeIC() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("javaPrimitiveTypeICGeneric.kt")
|
||||
@@ -17672,12 +17672,12 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
|
||||
@TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt")
|
||||
public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt")
|
||||
public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmStaticFunInInlineClassCompanion.kt")
|
||||
@@ -17702,7 +17702,7 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
|
||||
@TestMetadata("jvmStaticVarInInlineClassCompanion.kt")
|
||||
public void testJvmStaticVarInInlineClassCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmStaticVarInInlineClassCompanionGeneric.kt")
|
||||
@@ -18442,7 +18442,7 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
|
||||
@TestMetadata("useOfInlineClassWithGenericMethodFromJava.kt")
|
||||
public void testUseOfInlineClassWithGenericMethodFromJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useOfInlineClassWithGenericMethodFromJavaGeneric.kt")
|
||||
|
||||
Reference in New Issue
Block a user