diff --git a/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/FirLoadCompiledKotlinGenerated.java b/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/FirLoadCompiledKotlinGenerated.java deleted file mode 100644 index 94367326796..00000000000 --- a/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/FirLoadCompiledKotlinGenerated.java +++ /dev/null @@ -1,2864 +0,0 @@ -/* - * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.fir; - -import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; -import org.jetbrains.kotlin.test.util.KtTestUtil; -import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; - -import java.io.File; -import java.util.regex.Pattern; - -/** This class is generated by {@link org.jetbrains.kotlin.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */ -@SuppressWarnings("all") -@TestMetadata("compiler/testData/loadJava/compiledKotlin") -@TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) -public class FirLoadCompiledKotlinGenerated extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInCompiledKotlin() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Annotations extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInAnnotations() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("AnnotatedAnnotation.kt") - public void testAnnotatedAnnotation() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotatedAnnotation.kt"); - } - - @TestMetadata("AnnotatedMethod.kt") - public void testAnnotatedMethod() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotatedMethod.kt"); - } - - @TestMetadata("AnnotationInArray.kt") - public void testAnnotationInArray() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotationInArray.kt"); - } - - @TestMetadata("AnnotationOnTypeParameter.kt") - public void testAnnotationOnTypeParameter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotationOnTypeParameter.kt"); - } - - @TestMetadata("ClassLiteralArguments.kt") - public void testClassLiteralArguments() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/ClassLiteralArguments.kt"); - } - - @TestMetadata("MultiDimensionalArrayMethod.kt") - public void testMultiDimensionalArrayMethod() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/MultiDimensionalArrayMethod.kt"); - } - - @TestMetadata("PrimitiveArrayArguments.kt") - public void testPrimitiveArrayArguments() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/PrimitiveArrayArguments.kt"); - } - - @TestMetadata("SimpleAnnotation.kt") - public void testSimpleAnnotation() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/SimpleAnnotation.kt"); - } - - @TestMetadata("TargetedAnnotation.kt") - public void testTargetedAnnotation() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/TargetedAnnotation.kt"); - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/classMembers") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ClassMembers extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInClassMembers() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/classMembers"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("ClassObjectPropertyField.kt") - public void testClassObjectPropertyField() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/ClassObjectPropertyField.kt"); - } - - @TestMetadata("Constructor.kt") - public void testConstructor() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Constructor.kt"); - } - - @TestMetadata("DelegatedProperty.kt") - public void testDelegatedProperty() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/DelegatedProperty.kt"); - } - - @TestMetadata("EnumArgument.kt") - public void testEnumArgument() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/EnumArgument.kt"); - } - - @TestMetadata("Function.kt") - public void testFunction() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Function.kt"); - } - - @TestMetadata("Getter.kt") - public void testGetter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Getter.kt"); - } - - @TestMetadata("HiddenConstructorWithInlineClassParameters.kt") - public void testHiddenConstructorWithInlineClassParameters() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.kt"); - } - - @TestMetadata("PropertyField.kt") - public void testPropertyField() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/PropertyField.kt"); - } - - @TestMetadata("PublishedApiAnnotationOnInlineClassCosntructor.kt") - public void testPublishedApiAnnotationOnInlineClassCosntructor() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/PublishedApiAnnotationOnInlineClassCosntructor.kt"); - } - - @TestMetadata("Setter.kt") - public void testSetter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Setter.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/classes") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Classes extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInClasses() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/classes"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("AnnotationInClassObject.kt") - public void testAnnotationInClassObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/AnnotationInClassObject.kt"); - } - - @TestMetadata("ClassInClassObject.kt") - public void testClassInClassObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassInClassObject.kt"); - } - - @TestMetadata("ClassObject.kt") - public void testClassObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassObject.kt"); - } - - @TestMetadata("ClassObjectInStaticNestedClass.kt") - public void testClassObjectInStaticNestedClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassObjectInStaticNestedClass.kt"); - } - - @TestMetadata("DataClass.kt") - public void testDataClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/DataClass.kt"); - } - - @TestMetadata("Deprecated.kt") - public void testDeprecated() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.kt"); - } - - @TestMetadata("DollarsInAnnotationName.kt") - public void testDollarsInAnnotationName() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/DollarsInAnnotationName.kt"); - } - - @TestMetadata("EnumArgument.kt") - public void testEnumArgument() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/EnumArgument.kt"); - } - - @TestMetadata("MultipleAnnotations.kt") - public void testMultipleAnnotations() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/MultipleAnnotations.kt"); - } - - @TestMetadata("NestedAnnotation.kt") - public void testNestedAnnotation() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedAnnotation.kt"); - } - - @TestMetadata("NestedClass.kt") - public void testNestedClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.kt"); - } - - @TestMetadata("Retention.kt") - public void testRetention() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Retention.kt"); - } - - @TestMetadata("Simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Simple.kt"); - } - - @TestMetadata("WithArgument.kt") - public void testWithArgument() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/WithArgument.kt"); - } - - @TestMetadata("WithMultipleArguments.kt") - public void testWithMultipleArguments() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/WithMultipleArguments.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class PackageMembers extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInPackageMembers() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("DelegatedProperty.kt") - public void testDelegatedProperty() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/DelegatedProperty.kt"); - } - - @TestMetadata("EnumArgument.kt") - public void testEnumArgument() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/EnumArgument.kt"); - } - - @TestMetadata("EnumArrayArgument.kt") - public void testEnumArrayArgument() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/EnumArrayArgument.kt"); - } - - @TestMetadata("Function.kt") - public void testFunction() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Function.kt"); - } - - @TestMetadata("Getter.kt") - public void testGetter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Getter.kt"); - } - - @TestMetadata("PropertyField.kt") - public void testPropertyField() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/PropertyField.kt"); - } - - @TestMetadata("Setter.kt") - public void testSetter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Setter.kt"); - } - - @TestMetadata("StringArrayArgument.kt") - public void testStringArrayArgument() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/StringArrayArgument.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/parameters") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Parameters extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInParameters() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/parameters"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("Constructor.kt") - public void testConstructor() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/Constructor.kt"); - } - - @TestMetadata("ExtensionFunction.kt") - public void testExtensionFunction() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionFunction.kt"); - } - - @TestMetadata("ExtensionFunctionInClass.kt") - public void testExtensionFunctionInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionFunctionInClass.kt"); - } - - @TestMetadata("ExtensionPropertySetter.kt") - public void testExtensionPropertySetter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionPropertySetter.kt"); - } - - @TestMetadata("FunctionInClass.kt") - public void testFunctionInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/FunctionInClass.kt"); - } - - @TestMetadata("FunctionInTrait.kt") - public void testFunctionInTrait() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/FunctionInTrait.kt"); - } - - @TestMetadata("InnerClassConstructor.kt") - public void testInnerClassConstructor() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.kt"); - } - - @TestMetadata("ManyAnnotations.kt") - public void testManyAnnotations() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ManyAnnotations.kt"); - } - - @TestMetadata("PropertySetterInClass.kt") - public void testPropertySetterInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/PropertySetterInClass.kt"); - } - - @TestMetadata("TopLevelFunction.kt") - public void testTopLevelFunction() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/TopLevelFunction.kt"); - } - - @TestMetadata("TopLevelPropertySetter.kt") - public void testTopLevelPropertySetter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/TopLevelPropertySetter.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class PropertiesWithoutBackingFields extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInPropertiesWithoutBackingFields() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("Class.kt") - public void testClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Class.kt"); - } - - @TestMetadata("ClassObject.kt") - public void testClassObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ClassObject.kt"); - } - - @TestMetadata("ExtensionsWithSameNameClass.kt") - public void testExtensionsWithSameNameClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.kt"); - } - - @TestMetadata("ExtensionsWithSameNamePackage.kt") - public void testExtensionsWithSameNamePackage() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.kt"); - } - - @TestMetadata("NestedTrait.kt") - public void testNestedTrait() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/NestedTrait.kt"); - } - - @TestMetadata("TopLevel.kt") - public void testTopLevel() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/TopLevel.kt"); - } - - @TestMetadata("Trait.kt") - public void testTrait() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Trait.kt"); - } - - @TestMetadata("TraitClassObject.kt") - public void testTraitClassObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/TraitClassObject.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/types") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Types extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInTypes() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/types"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("ClassLiteralArgument.kt") - public void testClassLiteralArgument() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/ClassLiteralArgument.kt"); - } - - @TestMetadata("DefinitelyNotNull.kt") - public void testDefinitelyNotNull() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/DefinitelyNotNull.kt"); - } - - @TestMetadata("ReceiverParameter.kt") - public void testReceiverParameter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/ReceiverParameter.kt"); - } - - @TestMetadata("SimpleTypeAnnotation.kt") - public void testSimpleTypeAnnotation() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SimpleTypeAnnotation.kt"); - } - - @TestMetadata("SourceRetention.kt") - public void testSourceRetention() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SourceRetention.kt"); - } - - @TestMetadata("SupertypesAndBounds.kt") - public void testSupertypesAndBounds() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SupertypesAndBounds.kt"); - } - - @TestMetadata("TypeAnnotationWithArguments.kt") - public void testTypeAnnotationWithArguments() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeAnnotationWithArguments.kt"); - } - - @TestMetadata("TypeArgument.kt") - public void testTypeArgument() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeArgument.kt"); - } - - @TestMetadata("TypeParameterAnnotation.kt") - public void testTypeParameterAnnotation() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeParameterAnnotation.kt"); - } - - @TestMetadata("TypeParameterAnnotationWithArguments.kt") - public void testTypeParameterAnnotationWithArguments() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeParameterAnnotationWithArguments.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class WithUseSiteTarget extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInWithUseSiteTarget() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("DelegateTarget.kt") - public void testDelegateTarget() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/DelegateTarget.kt"); - } - - @TestMetadata("FieldTarget.kt") - public void testFieldTarget() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/FieldTarget.kt"); - } - - @TestMetadata("PropertyAndAccessor.kt") - public void testPropertyAndAccessor() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.kt"); - } - - @TestMetadata("ReceiverTarget.kt") - public void testReceiverTarget() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/ReceiverTarget.kt"); - } - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/class") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Class extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInClass() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/class"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("Class.kt") - public void testClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/Class.kt"); - } - - @TestMetadata("ClassInParam.kt") - public void testClassInParam() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/ClassInParam.kt"); - } - - @TestMetadata("ClassInnerClass.kt") - public void testClassInnerClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/ClassInnerClass.kt"); - } - - @TestMetadata("ClassMemberConflict.kt") - public void testClassMemberConflict() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/ClassMemberConflict.kt"); - } - - @TestMetadata("ClassOutParam.kt") - public void testClassOutParam() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/ClassOutParam.kt"); - } - - @TestMetadata("ClassParam.kt") - public void testClassParam() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParam.kt"); - } - - @TestMetadata("ClassParamReferencesParam.kt") - public void testClassParamReferencesParam() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesParam.kt"); - } - - @TestMetadata("ClassParamReferencesParam2.kt") - public void testClassParamReferencesParam2() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesParam2.kt"); - } - - @TestMetadata("ClassParamReferencesSelf.kt") - public void testClassParamReferencesSelf() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesSelf.kt"); - } - - @TestMetadata("ClassParamUpperClassBound.kt") - public void testClassParamUpperClassBound() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperClassBound.kt"); - } - - @TestMetadata("ClassParamUpperClassInterfaceBound.kt") - public void testClassParamUpperClassInterfaceBound() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperClassInterfaceBound.kt"); - } - - @TestMetadata("ClassParamUpperInterfaceBound.kt") - public void testClassParamUpperInterfaceBound() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperInterfaceBound.kt"); - } - - @TestMetadata("ClassTwoParams.kt") - public void testClassTwoParams() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/ClassTwoParams.kt"); - } - - @TestMetadata("ClassTwoParams2.kt") - public void testClassTwoParams2() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/ClassTwoParams2.kt"); - } - - @TestMetadata("FunInterface.kt") - public void testFunInterface() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/FunInterface.kt"); - } - - @TestMetadata("InheritClassSimple.kt") - public void testInheritClassSimple() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/InheritClassSimple.kt"); - } - - @TestMetadata("InheritClassWithParam.kt") - public void testInheritClassWithParam() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/InheritClassWithParam.kt"); - } - - @TestMetadata("InheritSubstitutedMethod.kt") - public void testInheritSubstitutedMethod() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/InheritSubstitutedMethod.kt"); - } - - @TestMetadata("InheritTraitWithFunctionParam.kt") - public void testInheritTraitWithFunctionParam() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/InheritTraitWithFunctionParam.kt"); - } - - @TestMetadata("InheritTraitWithParam.kt") - public void testInheritTraitWithParam() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/InheritTraitWithParam.kt"); - } - - @TestMetadata("InnerClassExtendInnerClass.kt") - public void testInnerClassExtendInnerClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/InnerClassExtendInnerClass.kt"); - } - - @TestMetadata("InnerGenericClass.kt") - public void testInnerGenericClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/InnerGenericClass.kt"); - } - - @TestMetadata("InnerTypes.kt") - public void testInnerTypes() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/InnerTypes.kt"); - } - - @TestMetadata("NamedObject.kt") - public void testNamedObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObject.kt"); - } - - @TestMetadata("NamedObjectInClass.kt") - public void testNamedObjectInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInClass.kt"); - } - - @TestMetadata("NamedObjectInClassObject.kt") - public void testNamedObjectInClassObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInClassObject.kt"); - } - - @TestMetadata("NamedObjectInNamedObject.kt") - public void testNamedObjectInNamedObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInNamedObject.kt"); - } - - @TestMetadata("NamedObjectWithAnotherTopLevelProperty.kt") - public void testNamedObjectWithAnotherTopLevelProperty() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectWithAnotherTopLevelProperty.kt"); - } - - @TestMetadata("NestedClass.kt") - public void testNestedClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/NestedClass.kt"); - } - - @TestMetadata("NestedClassExtendNestedClass.kt") - public void testNestedClassExtendNestedClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/NestedClassExtendNestedClass.kt"); - } - - @TestMetadata("NestedGenericClass.kt") - public void testNestedGenericClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/NestedGenericClass.kt"); - } - - @TestMetadata("RecursiveGeneric.kt") - public void testRecursiveGeneric() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/RecursiveGeneric.kt"); - } - - @TestMetadata("SealedClass.kt") - public void testSealedClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/SealedClass.kt"); - } - - @TestMetadata("SingleAbstractMethod.kt") - public void testSingleAbstractMethod() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/SingleAbstractMethod.kt"); - } - - @TestMetadata("Trait.kt") - public void testTrait() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/Trait.kt"); - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/class/javaBean") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JavaBean extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInJavaBean() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/class/javaBean"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("DifferentGetterAndSetter.kt") - public void testDifferentGetterAndSetter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/DifferentGetterAndSetter.kt"); - } - - @TestMetadata("JavaBeanAbstractGetter.kt") - public void testJavaBeanAbstractGetter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanAbstractGetter.kt"); - } - - @TestMetadata("JavaBeanVal.kt") - public void testJavaBeanVal() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVal.kt"); - } - - @TestMetadata("JavaBeanVar.kt") - public void testJavaBeanVar() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVar.kt"); - } - - @TestMetadata("JavaBeanVarOfGenericType.kt") - public void testJavaBeanVarOfGenericType() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVarOfGenericType.kt"); - } - - @TestMetadata("TwoSetters.kt") - public void testTwoSetters() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/TwoSetters.kt"); - } - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/classFun") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ClassFun extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInClassFun() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/classFun"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("ClassInParamUsedInFun.kt") - public void testClassInParamUsedInFun() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classFun/ClassInParamUsedInFun.kt"); - } - - @TestMetadata("ClassParamUsedInFun.kt") - public void testClassParamUsedInFun() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classFun/ClassParamUsedInFun.kt"); - } - - @TestMetadata("FunDelegationToTraitImpl.kt") - public void testFunDelegationToTraitImpl() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classFun/FunDelegationToTraitImpl.kt"); - } - - @TestMetadata("FunInParamSuper.kt") - public void testFunInParamSuper() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classFun/FunInParamSuper.kt"); - } - - @TestMetadata("TraitOpenFun.kt") - public void testTraitOpenFun() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classFun/TraitOpenFun.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/classObject") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ClassObject extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInClassObject() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/classObject"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("ClassObjectDeclaresVal.kt") - public void testClassObjectDeclaresVal() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDeclaresVal.kt"); - } - - @TestMetadata("ClassObjectDeclaresVar.kt") - public void testClassObjectDeclaresVar() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDeclaresVar.kt"); - } - - @TestMetadata("ClassObjectDefaultVisibility.kt") - public void testClassObjectDefaultVisibility() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.kt"); - } - - @TestMetadata("ClassObjectExplicitVisibility.kt") - public void testClassObjectExplicitVisibility() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExplicitVisibility.kt"); - } - - @TestMetadata("ClassObjectExtendsTrait.kt") - public void testClassObjectExtendsTrait() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExtendsTrait.kt"); - } - - @TestMetadata("ClassObjectExtendsTraitWithTP.kt") - public void testClassObjectExtendsTraitWithTP() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExtendsTraitWithTP.kt"); - } - - @TestMetadata("classObjectInClassStaticFields.kt") - public void testClassObjectInClassStaticFields() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classObject/classObjectInClassStaticFields.kt"); - } - - @TestMetadata("classObjectInTraitStaticFields.kt") - public void testClassObjectInTraitStaticFields() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classObject/classObjectInTraitStaticFields.kt"); - } - - @TestMetadata("ClassObjectPropertyInClass.kt") - public void testClassObjectPropertyInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectPropertyInClass.kt"); - } - - @TestMetadata("Delegation.kt") - public void testDelegation() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classObject/Delegation.kt"); - } - - @TestMetadata("InnerClassInClassObject.kt") - public void testInnerClassInClassObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classObject/InnerClassInClassObject.kt"); - } - - @TestMetadata("NamedClassObject.kt") - public void testNamedClassObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classObject/NamedClassObject.kt"); - } - - @TestMetadata("SimpleClassObject.kt") - public void testSimpleClassObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/classObject/SimpleClassObject.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/constructor") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Constructor extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInConstructor() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/constructor"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("Constructor0.kt") - public void testConstructor0() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor0.kt"); - } - - @TestMetadata("Constructor1.kt") - public void testConstructor1() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor1.kt"); - } - - @TestMetadata("Constructor1WithParamDefaultValue.kt") - public void testConstructor1WithParamDefaultValue() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor1WithParamDefaultValue.kt"); - } - - @TestMetadata("Constructor2WithOneParamDefaultValue.kt") - public void testConstructor2WithOneParamDefaultValue() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor2WithOneParamDefaultValue.kt"); - } - - @TestMetadata("ConstructorCollectionParameter.kt") - public void testConstructorCollectionParameter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorCollectionParameter.kt"); - } - - @TestMetadata("ConstructorGenericDeep.kt") - public void testConstructorGenericDeep() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericDeep.kt"); - } - - @TestMetadata("ConstructorGenericSimple.kt") - public void testConstructorGenericSimple() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericSimple.kt"); - } - - @TestMetadata("ConstructorGenericUpperBound.kt") - public void testConstructorGenericUpperBound() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericUpperBound.kt"); - } - - @TestMetadata("ConstructorWithTwoDefArgs.kt") - public void testConstructorWithTwoDefArgs() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoDefArgs.kt"); - } - - @TestMetadata("ConstructorWithTwoTypeParameters.kt") - public void testConstructorWithTwoTypeParameters() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParameters.kt"); - } - - @TestMetadata("ConstructorWithTwoTypeParametersAndOneIntValueParameter.kt") - public void testConstructorWithTwoTypeParametersAndOneIntValueParameter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOneIntValueParameter.kt"); - } - - @TestMetadata("ConstructorWithTwoTypeParametersAndOnePValueParameter.kt") - public void testConstructorWithTwoTypeParametersAndOnePValueParameter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOnePValueParameter.kt"); - } - - @TestMetadata("ConstructorWithTypeParameter.kt") - public void testConstructorWithTypeParameter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTypeParameter.kt"); - } - - @TestMetadata("ConstructorWithTypeParametersEAndOnePValueParameter.kt") - public void testConstructorWithTypeParametersEAndOnePValueParameter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTypeParametersEAndOnePValueParameter.kt"); - } - - @TestMetadata("InnerClassConstructorWithDefArgs.kt") - public void testInnerClassConstructorWithDefArgs() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/InnerClassConstructorWithDefArgs.kt"); - } - - @TestMetadata("PrivateConstructor1WithParamDefaultValue.kt") - public void testPrivateConstructor1WithParamDefaultValue() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/PrivateConstructor1WithParamDefaultValue.kt"); - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/constructor/vararg") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Vararg extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInVararg() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/constructor/vararg"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("ConstructorNonLastVararg.kt") - public void testConstructorNonLastVararg() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/vararg/ConstructorNonLastVararg.kt"); - } - - @TestMetadata("ConstructorVararg.kt") - public void testConstructorVararg() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/constructor/vararg/ConstructorVararg.kt"); - } - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/contextReceivers") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ContextReceivers extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInContextReceivers() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("SimpleContextReceivers.kt") - public void testSimpleContextReceivers() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/contextReceivers/SimpleContextReceivers.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/coroutines") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Coroutines extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInCoroutines() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("Basic.kt") - public void testBasic() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/coroutines/Basic.kt"); - } - - @TestMetadata("TypeAliasFTSuspendWithReceiver.kt") - public void testTypeAliasFTSuspendWithReceiver() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/coroutines/TypeAliasFTSuspendWithReceiver.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/dataClass") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DataClass extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInDataClass() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/dataClass"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("MixedComponents.kt") - public void testMixedComponents() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/dataClass/MixedComponents.kt"); - } - - @TestMetadata("OneVal.kt") - public void testOneVal() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/dataClass/OneVal.kt"); - } - - @TestMetadata("TwoVals.kt") - public void testTwoVals() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/dataClass/TwoVals.kt"); - } - - @TestMetadata("TwoVars.kt") - public void testTwoVars() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/dataClass/TwoVars.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FromLoadJava extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInFromLoadJava() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("ArrayTypeVariance.kt") - public void testArrayTypeVariance() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ArrayTypeVariance.kt"); - } - - @TestMetadata("ClassDoesNotOverrideMethod.kt") - public void testClassDoesNotOverrideMethod() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassDoesNotOverrideMethod.kt"); - } - - @TestMetadata("ClassObject.kt") - public void testClassObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassObject.kt"); - } - - @TestMetadata("classObjectAnnotation.kt") - public void testClassObjectAnnotation() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/classObjectAnnotation.kt"); - } - - @TestMetadata("ClassWithConstVal.kt") - public void testClassWithConstVal() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithConstVal.kt"); - } - - @TestMetadata("ClassWithTypeP.kt") - public void testClassWithTypeP() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypeP.kt"); - } - - @TestMetadata("ClassWithTypePExtendsIterableP.kt") - public void testClassWithTypePExtendsIterableP() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePExtendsIterableP.kt"); - } - - @TestMetadata("ClassWithTypePP.kt") - public void testClassWithTypePP() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePP.kt"); - } - - @TestMetadata("ClassWithTypePRefNext.kt") - public void testClassWithTypePRefNext() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefNext.kt"); - } - - @TestMetadata("ClassWithTypePRefSelf.kt") - public void testClassWithTypePRefSelf() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefSelf.kt"); - } - - @TestMetadata("ClassWithTypePRefSelfAndClass.kt") - public void testClassWithTypePRefSelfAndClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefSelfAndClass.kt"); - } - - @TestMetadata("FieldAsVar.kt") - public void testFieldAsVar() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FieldAsVar.kt"); - } - - @TestMetadata("FieldOfArrayType.kt") - public void testFieldOfArrayType() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FieldOfArrayType.kt"); - } - - @TestMetadata("FinalFieldAsVal.kt") - public void testFinalFieldAsVal() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FinalFieldAsVal.kt"); - } - - @TestMetadata("genericFunction.kt") - public void testGenericFunction() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/genericFunction.kt"); - } - - @TestMetadata("InheritMethodsDifferentReturnTypes.kt") - public void testInheritMethodsDifferentReturnTypes() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.kt"); - } - - @TestMetadata("InheritMethodsDifferentReturnTypesGeneric.kt") - public void testInheritMethodsDifferentReturnTypesGeneric() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.kt"); - } - - @TestMetadata("InnerClass.kt") - public void testInnerClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InnerClass.kt"); - } - - @TestMetadata("MethodTypePOneUpperBound.kt") - public void testMethodTypePOneUpperBound() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodTypePOneUpperBound.kt"); - } - - @TestMetadata("MethodTypePTwoUpperBounds.kt") - public void testMethodTypePTwoUpperBounds() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodTypePTwoUpperBounds.kt"); - } - - @TestMetadata("MethodWithTypeP.kt") - public void testMethodWithTypeP() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypeP.kt"); - } - - @TestMetadata("MethodWithTypePP.kt") - public void testMethodWithTypePP() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypePP.kt"); - } - - @TestMetadata("MethodWithTypePRefClassP.kt") - public void testMethodWithTypePRefClassP() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypePRefClassP.kt"); - } - - @TestMetadata("MethosWithPRefTP.kt") - public void testMethosWithPRefTP() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethosWithPRefTP.kt"); - } - - @TestMetadata("MyException.kt") - public void testMyException() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MyException.kt"); - } - - @TestMetadata("NestedClass.kt") - public void testNestedClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/NestedClass.kt"); - } - - @TestMetadata("objectInClass.kt") - public void testObjectInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectInClass.kt"); - } - - @TestMetadata("objectMembers.kt") - public void testObjectMembers() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectMembers.kt"); - } - - @TestMetadata("packageLevelObject.kt") - public void testPackageLevelObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/packageLevelObject.kt"); - } - - @TestMetadata("RemoveRedundantProjectionKind.kt") - public void testRemoveRedundantProjectionKind() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.kt"); - } - - @TestMetadata("Simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/Simple.kt"); - } - - @TestMetadata("TwoFields.kt") - public void testTwoFields() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/TwoFields.kt"); - } - - @TestMetadata("UnboundWildcard.kt") - public void testUnboundWildcard() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/UnboundWildcard.kt"); - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class KotlinSignature extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("AllBoundsInWhen.kt") - public void testAllBoundsInWhen() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/AllBoundsInWhen.kt"); - } - - public void testAllFilesPresentInKotlinSignature() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("ArrayType.kt") - public void testArrayType() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ArrayType.kt"); - } - - @TestMetadata("ConstructorWithNewTypeParams.kt") - public void testConstructorWithNewTypeParams() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithNewTypeParams.kt"); - } - - @TestMetadata("ConstructorWithParentTypeParams.kt") - public void testConstructorWithParentTypeParams() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithParentTypeParams.kt"); - } - - @TestMetadata("ConstructorWithSeveralParams.kt") - public void testConstructorWithSeveralParams() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithSeveralParams.kt"); - } - - @TestMetadata("ConstructorWithoutParams.kt") - public void testConstructorWithoutParams() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithoutParams.kt"); - } - - @TestMetadata("CustomProjectionKind.kt") - public void testCustomProjectionKind() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/CustomProjectionKind.kt"); - } - - @TestMetadata("MethodWithFunctionTypes.kt") - public void testMethodWithFunctionTypes() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithFunctionTypes.kt"); - } - - @TestMetadata("MethodWithGenerics.kt") - public void testMethodWithGenerics() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithGenerics.kt"); - } - - @TestMetadata("MethodWithMappedClasses.kt") - public void testMethodWithMappedClasses() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithMappedClasses.kt"); - } - - @TestMetadata("MethodWithTypeParameters.kt") - public void testMethodWithTypeParameters() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithTypeParameters.kt"); - } - - @TestMetadata("MethodWithVararg.kt") - public void testMethodWithVararg() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithVararg.kt"); - } - - @TestMetadata("PropertyArrayTypes.kt") - public void testPropertyArrayTypes() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertyArrayTypes.kt"); - } - - @TestMetadata("PropertyComplexTypes.kt") - public void testPropertyComplexTypes() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertyComplexTypes.kt"); - } - - @TestMetadata("PropertySimpleType.kt") - public void testPropertySimpleType() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertySimpleType.kt"); - } - - @TestMetadata("StarProjection.kt") - public void testStarProjection() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/StarProjection.kt"); - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Error extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("AddingNullability.kt") - public void testAddingNullability() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/AddingNullability.kt"); - } - - public void testAllFilesPresentInError() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("ConflictingProjectionKind.kt") - public void testConflictingProjectionKind() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ConflictingProjectionKind.kt"); - } - - @TestMetadata("ExplicitFieldGettersAndSetters.kt") - public void testExplicitFieldGettersAndSetters() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ExplicitFieldGettersAndSetters.kt"); - } - - @TestMetadata("ExtraUpperBound.kt") - public void testExtraUpperBound() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ExtraUpperBound.kt"); - } - - @TestMetadata("MissingUpperBound.kt") - public void testMissingUpperBound() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/MissingUpperBound.kt"); - } - - @TestMetadata("NoFieldTypeRef.kt") - public void testNoFieldTypeRef() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/NoFieldTypeRef.kt"); - } - - @TestMetadata("NotVarargReplacedWithVararg.kt") - public void testNotVarargReplacedWithVararg() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/NotVarargReplacedWithVararg.kt"); - } - - @TestMetadata("RedundantProjectionKind.kt") - public void testRedundantProjectionKind() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/RedundantProjectionKind.kt"); - } - - @TestMetadata("ReturnTypeMissing.kt") - public void testReturnTypeMissing() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ReturnTypeMissing.kt"); - } - - @TestMetadata("SyntaxError.kt") - public void testSyntaxError() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxError.kt"); - } - - @TestMetadata("SyntaxErrorInFieldAnnotation.kt") - public void testSyntaxErrorInFieldAnnotation() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxErrorInFieldAnnotation.kt"); - } - - @TestMetadata("VarargReplacedWithNotVararg.kt") - public void testVarargReplacedWithNotVararg() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/VarargReplacedWithNotVararg.kt"); - } - - @TestMetadata("WrongFieldInitializer.kt") - public void testWrongFieldInitializer() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldInitializer.kt"); - } - - @TestMetadata("WrongFieldMutability.kt") - public void testWrongFieldMutability() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldMutability.kt"); - } - - @TestMetadata("WrongFieldName.kt") - public void testWrongFieldName() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldName.kt"); - } - - @TestMetadata("WrongMethodName.kt") - public void testWrongMethodName() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongMethodName.kt"); - } - - @TestMetadata("WrongProjectionKind.kt") - public void testWrongProjectionKind() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongProjectionKind.kt"); - } - - @TestMetadata("WrongReturnTypeStructure.kt") - public void testWrongReturnTypeStructure() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongReturnTypeStructure.kt"); - } - - @TestMetadata("WrongTypeName1.kt") - public void testWrongTypeName1() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName1.kt"); - } - - @TestMetadata("WrongTypeName2.kt") - public void testWrongTypeName2() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName2.kt"); - } - - @TestMetadata("WrongTypeName3.kt") - public void testWrongTypeName3() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName3.kt"); - } - - @TestMetadata("WrongTypeParameterBoundStructure1.kt") - public void testWrongTypeParameterBoundStructure1() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure1.kt"); - } - - @TestMetadata("WrongTypeParameterBoundStructure2.kt") - public void testWrongTypeParameterBoundStructure2() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure2.kt"); - } - - @TestMetadata("WrongTypeParametersCount.kt") - public void testWrongTypeParametersCount() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParametersCount.kt"); - } - - @TestMetadata("WrongValueParameterStructure1.kt") - public void testWrongValueParameterStructure1() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure1.kt"); - } - - @TestMetadata("WrongValueParameterStructure2.kt") - public void testWrongValueParameterStructure2() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure2.kt"); - } - - @TestMetadata("WrongValueParametersCount.kt") - public void testWrongValueParametersCount() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParametersCount.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Propagation extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInPropagation() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("PropagateTypeArgumentNullable.kt") - public void testPropagateTypeArgumentNullable() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.kt"); - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Parameter extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInParameter() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("ChangeProjectionKind1.kt") - public void testChangeProjectionKind1() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.kt"); - } - - @TestMetadata("ChangeProjectionKind2.kt") - public void testChangeProjectionKind2() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.kt"); - } - - @TestMetadata("DeeplySubstitutedClassParameter.kt") - public void testDeeplySubstitutedClassParameter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.kt"); - } - - @TestMetadata("DeeplySubstitutedClassParameter2.kt") - public void testDeeplySubstitutedClassParameter2() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.kt"); - } - - @TestMetadata("InheritMutability.kt") - public void testInheritMutability() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.kt"); - } - - @TestMetadata("InheritNotVararg.kt") - public void testInheritNotVararg() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.kt"); - } - - @TestMetadata("InheritNotVarargInteger.kt") - public void testInheritNotVarargInteger() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.kt"); - } - - @TestMetadata("InheritNotVarargNotNull.kt") - public void testInheritNotVarargNotNull() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.kt"); - } - - @TestMetadata("InheritNotVarargPrimitive.kt") - public void testInheritNotVarargPrimitive() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.kt"); - } - - @TestMetadata("InheritNullability.kt") - public void testInheritNullability() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.kt"); - } - - @TestMetadata("InheritProjectionKind.kt") - public void testInheritProjectionKind() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.kt"); - } - - @TestMetadata("InheritReadOnliness.kt") - public void testInheritReadOnliness() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.kt"); - } - - @TestMetadata("InheritVararg.kt") - public void testInheritVararg() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.kt"); - } - - @TestMetadata("InheritVarargInteger.kt") - public void testInheritVarargInteger() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.kt"); - } - - @TestMetadata("InheritVarargNotNull.kt") - public void testInheritVarargNotNull() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.kt"); - } - - @TestMetadata("InheritVarargPrimitive.kt") - public void testInheritVarargPrimitive() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.kt"); - } - - @TestMetadata("Kt3302.kt") - public void testKt3302() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.kt"); - } - - @TestMetadata("MutableToReadOnly.kt") - public void testMutableToReadOnly() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.kt"); - } - - @TestMetadata("NotNullToNullable.kt") - public void testNotNullToNullable() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.kt"); - } - - @TestMetadata("NullableToNotNull.kt") - public void testNullableToNotNull() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.kt"); - } - - @TestMetadata("NullableToNotNullKotlinSignature.kt") - public void testNullableToNotNullKotlinSignature() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.kt"); - } - - @TestMetadata("OverrideWithErasedParameter.kt") - public void testOverrideWithErasedParameter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.kt"); - } - - @TestMetadata("ReadOnlyToMutable.kt") - public void testReadOnlyToMutable() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.kt"); - } - - @TestMetadata("SubclassFromGenericAndNot.kt") - public void testSubclassFromGenericAndNot() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.kt"); - } - - @TestMetadata("SubstitutedClassParameter.kt") - public void testSubstitutedClassParameter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.kt"); - } - - @TestMetadata("SubstitutedClassParameters.kt") - public void testSubstitutedClassParameters() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Return extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("AddNotNullJavaSubtype.kt") - public void testAddNotNullJavaSubtype() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.kt"); - } - - @TestMetadata("AddNotNullSameJavaType.kt") - public void testAddNotNullSameJavaType() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.kt"); - } - - @TestMetadata("AddNullabilityJavaSubtype.kt") - public void testAddNullabilityJavaSubtype() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.kt"); - } - - @TestMetadata("AddNullabilitySameGenericType1.kt") - public void testAddNullabilitySameGenericType1() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.kt"); - } - - @TestMetadata("AddNullabilitySameGenericType2.kt") - public void testAddNullabilitySameGenericType2() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.kt"); - } - - @TestMetadata("AddNullabilitySameJavaType.kt") - public void testAddNullabilitySameJavaType() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.kt"); - } - - public void testAllFilesPresentInReturn() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("CantMakeImmutableInSubclass.kt") - public void testCantMakeImmutableInSubclass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.kt"); - } - - @TestMetadata("DeeplySubstitutedClassParameter.kt") - public void testDeeplySubstitutedClassParameter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.kt"); - } - - @TestMetadata("DeeplySubstitutedClassParameter2.kt") - public void testDeeplySubstitutedClassParameter2() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.kt"); - } - - @TestMetadata("HalfSubstitutedTypeParameters.kt") - public void testHalfSubstitutedTypeParameters() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.kt"); - } - - @TestMetadata("InheritNullabilityGenericSubclassSimple.kt") - public void testInheritNullabilityGenericSubclassSimple() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.kt"); - } - - @TestMetadata("InheritNullabilityJavaSubtype.kt") - public void testInheritNullabilityJavaSubtype() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.kt"); - } - - @TestMetadata("InheritNullabilitySameGenericType.kt") - public void testInheritNullabilitySameGenericType() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.kt"); - } - - @TestMetadata("InheritNullabilitySameJavaType.kt") - public void testInheritNullabilitySameJavaType() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.kt"); - } - - @TestMetadata("InheritProjectionKind.kt") - public void testInheritProjectionKind() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.kt"); - } - - @TestMetadata("InheritReadOnlinessOfArgument.kt") - public void testInheritReadOnlinessOfArgument() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.kt"); - } - - @TestMetadata("InheritReadOnlinessSameClass.kt") - public void testInheritReadOnlinessSameClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.kt"); - } - - @TestMetadata("InheritReadOnlinessSubclass.kt") - public void testInheritReadOnlinessSubclass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.kt"); - } - - @TestMetadata("SameProjectionKind.kt") - public void testSameProjectionKind() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.kt"); - } - - @TestMetadata("SubclassFromGenericAndNot.kt") - public void testSubclassFromGenericAndNot() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.kt"); - } - - @TestMetadata("SubclassOfCollection.kt") - public void testSubclassOfCollection() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfCollection.kt"); - } - - @TestMetadata("SubclassOfMapEntry.kt") - public void testSubclassOfMapEntry() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfMapEntry.kt"); - } - - @TestMetadata("SubstitutedClassParameter.kt") - public void testSubstitutedClassParameter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.kt"); - } - - @TestMetadata("SubstitutedClassParameters.kt") - public void testSubstitutedClassParameters() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.kt"); - } - - @TestMetadata("TwoSuperclassesConflictingProjectionKinds.kt") - public void testTwoSuperclassesConflictingProjectionKinds() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.kt"); - } - - @TestMetadata("TwoSuperclassesInvariantAndCovariantInferMutability.kt") - public void testTwoSuperclassesInvariantAndCovariantInferMutability() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.kt"); - } - - @TestMetadata("TwoSuperclassesInvariantAndCovariantInferNullability.kt") - public void testTwoSuperclassesInvariantAndCovariantInferNullability() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.kt"); - } - - @TestMetadata("TwoSuperclassesMutableAndNot.kt") - public void testTwoSuperclassesMutableAndNot() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.kt"); - } - - @TestMetadata("TwoSuperclassesReturnJavaSubtype.kt") - public void testTwoSuperclassesReturnJavaSubtype() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.kt"); - } - - @TestMetadata("TwoSuperclassesReturnSameJavaType.kt") - public void testTwoSuperclassesReturnSameJavaType() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.kt"); - } - - @TestMetadata("TwoSuperclassesSupplementNotNull.kt") - public void testTwoSuperclassesSupplementNotNull() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.kt"); - } - - @TestMetadata("TypeParamOfClass.kt") - public void testTypeParamOfClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.kt"); - } - - @TestMetadata("TypeParamOfClassSubstituted.kt") - public void testTypeParamOfClassSubstituted() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.kt"); - } - - @TestMetadata("TypeParamOfFun.kt") - public void testTypeParamOfFun() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TypeParameter extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInTypeParameter() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("InheritMutability.kt") - public void testInheritMutability() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.kt"); - } - - @TestMetadata("InheritNullability.kt") - public void testInheritNullability() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.kt"); - } - - @TestMetadata("InheritReadOnliness.kt") - public void testInheritReadOnliness() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.kt"); - } - - @TestMetadata("TwoBounds.kt") - public void testTwoBounds() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.kt"); - } - - @TestMetadata("TwoSuperclasses.kt") - public void testTwoSuperclasses() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.kt"); - } - - @TestMetadata("TwoTypeParameters.kt") - public void testTwoTypeParameters() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.kt"); - } - - @TestMetadata("UseParameterAsUpperBound.kt") - public void testUseParameterAsUpperBound() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.kt"); - } - - @TestMetadata("UseParameterInUpperBound.kt") - public void testUseParameterInUpperBound() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.kt"); - } - - @TestMetadata("UseParameterInUpperBoundWithKotlinSignature.kt") - public void testUseParameterInUpperBoundWithKotlinSignature() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.kt"); - } - } - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Library extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInLibrary() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("LoadIterable.kt") - public void testLoadIterable() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/LoadIterable.kt"); - } - - @TestMetadata("LoadIterator.kt") - public void testLoadIterator() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/LoadIterator.kt"); - } - - @TestMetadata("Max.kt") - public void testMax() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/Max.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Modality extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInModality() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("ModalityOfFakeOverrides.kt") - public void testModalityOfFakeOverrides() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality/ModalityOfFakeOverrides.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NotNull extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInNotNull() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("NotNullField.kt") - public void testNotNullField() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullField.kt"); - } - - @TestMetadata("NotNullIntArray.kt") - public void testNotNullIntArray() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullIntArray.kt"); - } - - @TestMetadata("NotNullMethod.kt") - public void testNotNullMethod() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullMethod.kt"); - } - - @TestMetadata("NotNullObjectArray.kt") - public void testNotNullObjectArray() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullObjectArray.kt"); - } - - @TestMetadata("NotNullParameter.kt") - public void testNotNullParameter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullParameter.kt"); - } - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Fun extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInFun() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("Assert.kt") - public void testAssert() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/Assert.kt"); - } - - @TestMetadata("DeclaredMemberOverridesDelegated.kt") - public void testDeclaredMemberOverridesDelegated() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/DeclaredMemberOverridesDelegated.kt"); - } - - @TestMetadata("InfixKeyword.kt") - public void testInfixKeyword() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/InfixKeyword.kt"); - } - - @TestMetadata("InheritMethodsDifferentReturnTypesAndVisibilities.kt") - public void testInheritMethodsDifferentReturnTypesAndVisibilities() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritMethodsDifferentReturnTypesAndVisibilities.kt"); - } - - @TestMetadata("InheritValAndVar.kt") - public void testInheritValAndVar() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritValAndVar.kt"); - } - - @TestMetadata("InheritValsDifferentTypes.kt") - public void testInheritValsDifferentTypes() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritValsDifferentTypes.kt"); - } - - @TestMetadata("NoSamAdapter.kt") - public void testNoSamAdapter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/NoSamAdapter.kt"); - } - - @TestMetadata("NoSamConstructor.kt") - public void testNoSamConstructor() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/NoSamConstructor.kt"); - } - - @TestMetadata("OperatorKeyword.kt") - public void testOperatorKeyword() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/OperatorKeyword.kt"); - } - - @TestMetadata("PropagateDeepSubclass.kt") - public void testPropagateDeepSubclass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/PropagateDeepSubclass.kt"); - } - - @TestMetadata("PropagateSubclassOfComparable.kt") - public void testPropagateSubclassOfComparable() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/PropagateSubclassOfComparable.kt"); - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class GenericWithTypeVariables extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInGenericWithTypeVariables() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("FunGenericParam.kt") - public void testFunGenericParam() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunGenericParam.kt"); - } - - @TestMetadata("FunParamParam.kt") - public void testFunParamParam() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamParam.kt"); - } - - @TestMetadata("FunParamParamErased.kt") - public void testFunParamParamErased() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamParamErased.kt"); - } - - @TestMetadata("FunParamReferencesParam.kt") - public void testFunParamReferencesParam() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamReferencesParam.kt"); - } - - @TestMetadata("FunParamTwoUpperBounds.kt") - public void testFunParamTwoUpperBounds() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamTwoUpperBounds.kt"); - } - - @TestMetadata("FunParamUpperClassBound.kt") - public void testFunParamUpperClassBound() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassBound.kt"); - } - - @TestMetadata("FunParamUpperClassInterfaceBound.kt") - public void testFunParamUpperClassInterfaceBound() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassInterfaceBound.kt"); - } - - @TestMetadata("FunParamUpperInterfaceBound.kt") - public void testFunParamUpperInterfaceBound() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperInterfaceBound.kt"); - } - - @TestMetadata("FunParamVaragParam.kt") - public void testFunParamVaragParam() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamVaragParam.kt"); - } - - @TestMetadata("FunTwoTypeParams.kt") - public void testFunTwoTypeParams() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunTwoTypeParams.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class GenericWithoutTypeVariables extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInGenericWithoutTypeVariables() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("FunClassParamNotNull.kt") - public void testFunClassParamNotNull() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNotNull.kt"); - } - - @TestMetadata("FunClassParamNullable.kt") - public void testFunClassParamNullable() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNullable.kt"); - } - - @TestMetadata("FunParamNullable.kt") - public void testFunParamNullable() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunParamNullable.kt"); - } - - @TestMetadata("ReturnTypeClassParamNotNull.kt") - public void testReturnTypeClassParamNotNull() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNotNull.kt"); - } - - @TestMetadata("ReturnTypeClassParamNullable.kt") - public void testReturnTypeClassParamNullable() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNullable.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NonGeneric extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInNonGeneric() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("ClassFun.kt") - public void testClassFun() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFun.kt"); - } - - @TestMetadata("ClassFunGetFoo.kt") - public void testClassFunGetFoo() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunGetFoo.kt"); - } - - @TestMetadata("ClassFunGetFooSetFoo.kt") - public void testClassFunGetFooSetFoo() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunGetFooSetFoo.kt"); - } - - @TestMetadata("ClassFunSetFoo.kt") - public void testClassFunSetFoo() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunSetFoo.kt"); - } - - @TestMetadata("ExtFun.kt") - public void testExtFun() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ExtFun.kt"); - } - - @TestMetadata("ExtFunInClass.kt") - public void testExtFunInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ExtFunInClass.kt"); - } - - @TestMetadata("FunDefaultArg.kt") - public void testFunDefaultArg() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunDefaultArg.kt"); - } - - @TestMetadata("FunParamNotNull.kt") - public void testFunParamNotNull() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunParamNotNull.kt"); - } - - @TestMetadata("FunVarargInt.kt") - public void testFunVarargInt() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunVarargInt.kt"); - } - - @TestMetadata("FunVarargInteger.kt") - public void testFunVarargInteger() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunVarargInteger.kt"); - } - - @TestMetadata("ModifierAbstract.kt") - public void testModifierAbstract() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ModifierAbstract.kt"); - } - - @TestMetadata("ModifierOpen.kt") - public void testModifierOpen() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ModifierOpen.kt"); - } - - @TestMetadata("NsFun.kt") - public void testNsFun() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/NsFun.kt"); - } - - @TestMetadata("NsFunGetFoo.kt") - public void testNsFunGetFoo() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/NsFunGetFoo.kt"); - } - - @TestMetadata("ReturnTypeNotNull.kt") - public void testReturnTypeNotNull() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ReturnTypeNotNull.kt"); - } - - @TestMetadata("ReturnTypeNullable.kt") - public void testReturnTypeNullable() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ReturnTypeNullable.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/vararg") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Vararg extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInVararg() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/vararg"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("nonLastVararg.kt") - public void testNonLastVararg() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/nonLastVararg.kt"); - } - - @TestMetadata("VarargInt.kt") - public void testVarargInt() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/VarargInt.kt"); - } - - @TestMetadata("VarargString.kt") - public void testVarargString() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/VarargString.kt"); - } - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/inline") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Inline extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInInline() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/inline"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("inlineFunction.kt") - public void testInlineFunction() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/inline/inlineFunction.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/memberOrder") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MemberOrder extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInMemberOrder() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/memberOrder"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("callablesNameClash.kt") - public void testCallablesNameClash() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/callablesNameClash.kt"); - } - - @TestMetadata("extensionMembers.kt") - public void testExtensionMembers() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/extensionMembers.kt"); - } - - @TestMetadata("extensionPropertiesNameClash.kt") - public void testExtensionPropertiesNameClash() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/extensionPropertiesNameClash.kt"); - } - - @TestMetadata("innerClasses.kt") - public void testInnerClasses() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/innerClasses.kt"); - } - - @TestMetadata("topLevelCallables.kt") - public void testTopLevelCallables() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/topLevelCallables.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/nestedClasses") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NestedClasses extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInNestedClasses() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/nestedClasses"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("deepInnerGeneric.kt") - public void testDeepInnerGeneric() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/nestedClasses/deepInnerGeneric.kt"); - } - - @TestMetadata("innerClassReferencesOuterTP.kt") - public void testInnerClassReferencesOuterTP() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/nestedClasses/innerClassReferencesOuterTP.kt"); - } - - @TestMetadata("membersReferenceOuterTP.kt") - public void testMembersReferenceOuterTP() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/nestedClasses/membersReferenceOuterTP.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/platformTypes") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class PlatformTypes extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInPlatformTypes() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("notnullTypeArgument.kt") - public void testNotnullTypeArgument() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/platformTypes/notnullTypeArgument.kt"); - } - - @TestMetadata("nullableTypeArgument.kt") - public void testNullableTypeArgument() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/platformTypes/nullableTypeArgument.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/prop") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Prop extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInProp() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/prop"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("ClassVal.kt") - public void testClassVal() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassVal.kt"); - } - - @TestMetadata("ClassValAbstract.kt") - public void testClassValAbstract() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassValAbstract.kt"); - } - - @TestMetadata("ClassVar.kt") - public void testClassVar() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassVar.kt"); - } - - @TestMetadata("CollectionSize.kt") - public void testCollectionSize() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/CollectionSize.kt"); - } - - @TestMetadata("Const.kt") - public void testConst() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/Const.kt"); - } - - @TestMetadata("Constants.kt") - public void testConstants() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/Constants.kt"); - } - - @TestMetadata("ExtValClass.kt") - public void testExtValClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValClass.kt"); - } - - @TestMetadata("ExtValInClass.kt") - public void testExtValInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValInClass.kt"); - } - - @TestMetadata("ExtValInt.kt") - public void testExtValInt() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValInt.kt"); - } - - @TestMetadata("ExtValIntCharSequence.kt") - public void testExtValIntCharSequence() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntCharSequence.kt"); - } - - @TestMetadata("ExtValIntCharSequenceQ.kt") - public void testExtValIntCharSequenceQ() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntCharSequenceQ.kt"); - } - - @TestMetadata("ExtValIntListQOfIntInClass.kt") - public void testExtValIntListQOfIntInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntListQOfIntInClass.kt"); - } - - @TestMetadata("ExtValIntTInClass.kt") - public void testExtValIntTInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntTInClass.kt"); - } - - @TestMetadata("ExtValIntTQInClass.kt") - public void testExtValIntTQInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntTQInClass.kt"); - } - - @TestMetadata("ExtValTIntInClass.kt") - public void testExtValTIntInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValTIntInClass.kt"); - } - - @TestMetadata("ExtVarClass.kt") - public void testExtVarClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarClass.kt"); - } - - @TestMetadata("ExtVarInClass.kt") - public void testExtVarInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarInClass.kt"); - } - - @TestMetadata("ExtVarInt.kt") - public void testExtVarInt() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarInt.kt"); - } - - @TestMetadata("ExtVarIntTInClass.kt") - public void testExtVarIntTInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarIntTInClass.kt"); - } - - @TestMetadata("ExtVarIntTQInClass.kt") - public void testExtVarIntTQInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarIntTQInClass.kt"); - } - - @TestMetadata("ExtVarMapPQInt.kt") - public void testExtVarMapPQInt() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarMapPQInt.kt"); - } - - @TestMetadata("ExtVarTIntInClass.kt") - public void testExtVarTIntInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarTIntInClass.kt"); - } - - @TestMetadata("ExtVarTQIntInClass.kt") - public void testExtVarTQIntInClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarTQIntInClass.kt"); - } - - @TestMetadata("ExtVarl.kt") - public void testExtVarl() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarl.kt"); - } - - @TestMetadata("nonConstValWithConstantValueAttribute.kt") - public void testNonConstValWithConstantValueAttribute() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/nonConstValWithConstantValueAttribute.kt"); - } - - @TestMetadata("NsVal.kt") - public void testNsVal() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/NsVal.kt"); - } - - @TestMetadata("NsVar.kt") - public void testNsVar() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/NsVar.kt"); - } - - @TestMetadata("OverrideClassVal.kt") - public void testOverrideClassVal() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/OverrideClassVal.kt"); - } - - @TestMetadata("OverrideTraitVal.kt") - public void testOverrideTraitVal() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/OverrideTraitVal.kt"); - } - - @TestMetadata("PropFromSuperclass.kt") - public void testPropFromSuperclass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/PropFromSuperclass.kt"); - } - - @TestMetadata("TraitFinalVar.kt") - public void testTraitFinalVar() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/TraitFinalVar.kt"); - } - - @TestMetadata("TraitOpenVal.kt") - public void testTraitOpenVal() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/TraitOpenVal.kt"); - } - - @TestMetadata("VarDelegationToTraitImpl.kt") - public void testVarDelegationToTraitImpl() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/VarDelegationToTraitImpl.kt"); - } - - @TestMetadata("VarWithDelegated.kt") - public void testVarWithDelegated() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/VarWithDelegated.kt"); - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultAccessors extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInDefaultAccessors() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("ClassVal.kt") - public void testClassVal() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVal.kt"); - } - - @TestMetadata("ClassValParams.kt") - public void testClassValParams() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassValParams.kt"); - } - - @TestMetadata("ClassValWithGet.kt") - public void testClassValWithGet() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassValWithGet.kt"); - } - - @TestMetadata("ClassVar.kt") - public void testClassVar() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVar.kt"); - } - - @TestMetadata("ClassVarModality.kt") - public void testClassVarModality() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarModality.kt"); - } - - @TestMetadata("ClassVarParams.kt") - public void testClassVarParams() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarParams.kt"); - } - - @TestMetadata("ClassVarWithGet.kt") - public void testClassVarWithGet() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithGet.kt"); - } - - @TestMetadata("ClassVarWithSet.kt") - public void testClassVarWithSet() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithSet.kt"); - } - - @TestMetadata("ExtValLong.kt") - public void testExtValLong() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtValLong.kt"); - } - - @TestMetadata("ExtVarLong.kt") - public void testExtVarLong() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtVarLong.kt"); - } - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/type") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Type extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInType() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/type"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("Any.kt") - public void testAny() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/Any.kt"); - } - - @TestMetadata("AnyQ.kt") - public void testAnyQ() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/AnyQ.kt"); - } - - @TestMetadata("ArrayOfInNumber.kt") - public void testArrayOfInNumber() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInNumber.kt"); - } - - @TestMetadata("ArrayOfInt.kt") - public void testArrayOfInt() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInt.kt"); - } - - @TestMetadata("ArrayOfInteger.kt") - public void testArrayOfInteger() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInteger.kt"); - } - - @TestMetadata("ArrayOfOutNumber.kt") - public void testArrayOfOutNumber() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfOutNumber.kt"); - } - - @TestMetadata("ArrayOfOutT.kt") - public void testArrayOfOutT() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfOutT.kt"); - } - - @TestMetadata("ArrayOfString.kt") - public void testArrayOfString() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfString.kt"); - } - - @TestMetadata("Function1IntString.kt") - public void testFunction1IntString() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/Function1IntString.kt"); - } - - @TestMetadata("Int.kt") - public void testInt() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/Int.kt"); - } - - @TestMetadata("IntArray.kt") - public void testIntArray() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/IntArray.kt"); - } - - @TestMetadata("IntQ.kt") - public void testIntQ() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/IntQ.kt"); - } - - @TestMetadata("jlInteger.kt") - public void testJlInteger() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/jlInteger.kt"); - } - - @TestMetadata("jlIntegerQ.kt") - public void testJlIntegerQ() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/jlIntegerQ.kt"); - } - - @TestMetadata("jlNumber.kt") - public void testJlNumber() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/jlNumber.kt"); - } - - @TestMetadata("jlObject.kt") - public void testJlObject() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/jlObject.kt"); - } - - @TestMetadata("jlObjectQ.kt") - public void testJlObjectQ() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/jlObjectQ.kt"); - } - - @TestMetadata("jlString.kt") - public void testJlString() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/jlString.kt"); - } - - @TestMetadata("jlStringQ.kt") - public void testJlStringQ() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/jlStringQ.kt"); - } - - @TestMetadata("ListOfAny.kt") - public void testListOfAny() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfAny.kt"); - } - - @TestMetadata("ListOfAnyQ.kt") - public void testListOfAnyQ() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfAnyQ.kt"); - } - - @TestMetadata("ListOfStar.kt") - public void testListOfStar() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfStar.kt"); - } - - @TestMetadata("ListOfString.kt") - public void testListOfString() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfString.kt"); - } - - @TestMetadata("ListOfjlString.kt") - public void testListOfjlString() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfjlString.kt"); - } - - @TestMetadata("Nothing.kt") - public void testNothing() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/Nothing.kt"); - } - - @TestMetadata("NothingQ.kt") - public void testNothingQ() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/NothingQ.kt"); - } - - @TestMetadata("platform.kt") - public void testPlatform() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/platform.kt"); - } - - @TestMetadata("String.kt") - public void testString() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/String.kt"); - } - - @TestMetadata("StringQ.kt") - public void testStringQ() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/StringQ.kt"); - } - - @TestMetadata("SuspendFunction.kt") - public void testSuspendFunction() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/SuspendFunction.kt"); - } - - @TestMetadata("Unit.kt") - public void testUnit() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/type/Unit.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/typealias") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Typealias extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInTypealias() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/typealias"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("Annotations.kt") - public void testAnnotations() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/typealias/Annotations.kt"); - } - - @TestMetadata("Basic.kt") - public void testBasic() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/typealias/Basic.kt"); - } - - @TestMetadata("Generic.kt") - public void testGeneric() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/typealias/Generic.kt"); - } - - @TestMetadata("TypeAliasToExtension.kt") - public void testTypeAliasToExtension() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/typealias/TypeAliasToExtension.kt"); - } - } - - @TestMetadata("compiler/testData/loadJava/compiledKotlin/visibility") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Visibility extends AbstractFirLoadCompiledKotlin { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInVisibility() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/visibility"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("InternalClass.kt") - public void testInternalClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalClass.kt"); - } - - @TestMetadata("InternalConstructor.kt") - public void testInternalConstructor() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalConstructor.kt"); - } - - @TestMetadata("InternalTopLevelMembers.kt") - public void testInternalTopLevelMembers() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalTopLevelMembers.kt"); - } - - @TestMetadata("PrivateClass.kt") - public void testPrivateClass() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateClass.kt"); - } - - @TestMetadata("PrivateClassMembers.kt") - public void testPrivateClassMembers() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateClassMembers.kt"); - } - - @TestMetadata("PrivateToThis.kt") - public void testPrivateToThis() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateToThis.kt"); - } - - @TestMetadata("PrivateTopLevelFun.kt") - public void testPrivateTopLevelFun() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateTopLevelFun.kt"); - } - - @TestMetadata("PrivateTopLevelVal.kt") - public void testPrivateTopLevelVal() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateTopLevelVal.kt"); - } - - @TestMetadata("PropertyInConstructor.kt") - public void testPropertyInConstructor() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/visibility/PropertyInConstructor.kt"); - } - - @TestMetadata("PropertyInConstructorExplicitVisibility.kt") - public void testPropertyInConstructorExplicitVisibility() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/visibility/PropertyInConstructorExplicitVisibility.kt"); - } - - @TestMetadata("TopLevelVarWithPrivateSetter.kt") - public void testTopLevelVarWithPrivateSetter() throws Exception { - runTest("compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.kt"); - } - } -} diff --git a/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadBinariesTest.kt b/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadBinariesTest.kt index 3ed4da29718..e3e534d6651 100644 --- a/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadBinariesTest.kt +++ b/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadBinariesTest.kt @@ -50,7 +50,7 @@ abstract class AbstractFirLoadBinariesTest : AbstractFirResolveWithSessionTestCa KotlinTestUtils.assertEqualsToFile( File(testDataPath), - builder.toString() + builder.toString().trimEnd() + "\n" ) } } diff --git a/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadCompiledKotlin.kt b/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadCompiledKotlin.kt deleted file mode 100644 index 73a0823dd64..00000000000 --- a/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadCompiledKotlin.kt +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.fir - -import org.jetbrains.kotlin.ObsoleteTestInfrastructure -import org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles -import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment -import org.jetbrains.kotlin.cli.jvm.compiler.toAbstractProjectEnvironment -import org.jetbrains.kotlin.descriptors.ModuleDescriptor -import org.jetbrains.kotlin.fir.session.environment.AbstractProjectFileSearchScope -import org.jetbrains.kotlin.jvm.compiler.AbstractLoadJavaTest -import org.jetbrains.kotlin.jvm.compiler.LoadDescriptorUtil.compileKotlinToDirAndGetModule -import org.jetbrains.kotlin.name.FqName -import org.jetbrains.kotlin.test.ConfigurationKind -import org.jetbrains.kotlin.test.KotlinTestUtils -import org.jetbrains.kotlin.test.KotlinTestUtils.newConfiguration -import org.jetbrains.kotlin.test.TestJdkKind -import java.io.File - -abstract class AbstractFirLoadCompiledKotlin : AbstractFirLoadBinariesTest() { - protected lateinit var tmpdir: File - - override fun setUp() { - super.setUp() - tmpdir = KotlinTestUtils.tmpDirForTest(this) - } - - override fun createEnvironment(): KotlinCoreEnvironment { - return createEnvironmentWithMockJdk(ConfigurationKind.JDK_NO_RUNTIME) - } - - @OptIn(ObsoleteTestInfrastructure::class) - fun doTest(path: String) { - val moduleDescriptor = compileKtFileToTmpDir(path) - - val packageFqName = FqName("test") - - val configuration = newConfiguration(ConfigurationKind.JDK_ONLY, TestJdkKind.MOCK_JDK, listOf(tmpdir), emptyList()) - val environment = KotlinCoreEnvironment.createForTests(testRootDisposable, configuration, EnvironmentConfigFiles.JVM_CONFIG_FILES) - - prepareProjectExtensions(environment.project) - val sessionWithDependency = FirTestSessionFactoryHelper.createSessionForTests(environment.toAbstractProjectEnvironment(), AbstractProjectFileSearchScope.EMPTY) - - val testDataDirectoryPath = - "compiler/fir/analysis-tests/testData/loadCompiledKotlin/" + - path - .removePrefix("compiler/testData/loadJava/compiledKotlin/") - .removeSuffix(File(path).name) - File(testDataDirectoryPath).mkdirs() - - checkPackageContent(sessionWithDependency, packageFqName, moduleDescriptor, "$testDataDirectoryPath${getTestName(false)}.txt") - } - - private fun compileKtFileToTmpDir(path: String): ModuleDescriptor { - val file = File(path) - - val configuration = newConfiguration(ConfigurationKind.JDK_ONLY, TestJdkKind.MOCK_JDK, emptyList(), emptyList()) - AbstractLoadJavaTest.updateConfigurationWithDirectives(file.readText(), configuration) - val environment = KotlinCoreEnvironment.createForTests(testRootDisposable, configuration, EnvironmentConfigFiles.JVM_CONFIG_FILES) - - return compileKotlinToDirAndGetModule(listOf(file), tmpdir, environment) - } -} diff --git a/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/FirMetadataLoadingTestSuppressor.kt b/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/FirMetadataLoadingTestSuppressor.kt new file mode 100644 index 00000000000..4e4ddb51381 --- /dev/null +++ b/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/FirMetadataLoadingTestSuppressor.kt @@ -0,0 +1,39 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.test + +import org.jetbrains.kotlin.test.directives.CodegenTestDirectives +import org.jetbrains.kotlin.test.directives.extractIgnoredDirectivesForTargetBackend +import org.jetbrains.kotlin.test.directives.model.DirectivesContainer +import org.jetbrains.kotlin.test.directives.model.SimpleDirective +import org.jetbrains.kotlin.test.directives.model.ValueDirective +import org.jetbrains.kotlin.test.model.AfterAnalysisChecker +import org.jetbrains.kotlin.test.model.FrontendKinds +import org.jetbrains.kotlin.test.model.TestModule +import org.jetbrains.kotlin.test.services.* +import org.jetbrains.kotlin.utils.addToStdlib.shouldNotBeCalled + +class FirMetadataLoadingTestSuppressor(testServices: TestServices) : AfterAnalysisChecker(testServices) { + override val directiveContainers: List + get() = listOf(CodegenTestDirectives) + + override fun suppressIfNeeded(failedAssertions: List): List { + val moduleStructure = testServices.moduleStructure + val directive = when (testServices.defaultsProvider.defaultFrontend) { + FrontendKinds.ClassicFrontend -> CodegenTestDirectives.IGNORE_FIR_METADATA_LOADING_K1 + FrontendKinds.FIR -> CodegenTestDirectives.IGNORE_FIR_METADATA_LOADING_K2 + else -> shouldNotBeCalled() + } + if (moduleStructure.modules.any { directive in it.directives }) { + return if (failedAssertions.isNotEmpty()) { + emptyList() + } else { + listOf(AssertionError("Looks like this test can be unmuted. Remove ${directive.name} directive").wrap()) + } + } + return failedAssertions + } +} diff --git a/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/LoadedMetadataDumpHandler.kt b/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/LoadedMetadataDumpHandler.kt new file mode 100644 index 00000000000..f5e637532d6 --- /dev/null +++ b/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/LoadedMetadataDumpHandler.kt @@ -0,0 +1,174 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.test + +import com.intellij.openapi.vfs.StandardFileSystems +import com.intellij.openapi.vfs.VirtualFileManager +import org.jetbrains.kotlin.cli.common.prepareJvmSessions +import org.jetbrains.kotlin.cli.jvm.compiler.VfsBasedProjectEnvironment +import org.jetbrains.kotlin.config.LanguageVersionSettingsImpl +import org.jetbrains.kotlin.fir.BinaryModuleData +import org.jetbrains.kotlin.fir.DependencyListForCliModule +import org.jetbrains.kotlin.fir.FirSession +import org.jetbrains.kotlin.fir.declarations.FirMemberDeclaration +import org.jetbrains.kotlin.fir.declarations.utils.nameOrSpecialName +import org.jetbrains.kotlin.fir.renderer.FirRenderer +import org.jetbrains.kotlin.fir.resolve.providers.firProvider +import org.jetbrains.kotlin.fir.resolve.providers.symbolProvider +import org.jetbrains.kotlin.name.ClassId +import org.jetbrains.kotlin.name.FqName +import org.jetbrains.kotlin.name.Name +import org.jetbrains.kotlin.platform.jvm.JvmPlatforms +import org.jetbrains.kotlin.psi.KtFile +import org.jetbrains.kotlin.resolve.DescriptorUtils +import org.jetbrains.kotlin.resolve.jvm.platform.JvmPlatformAnalyzerServices +import org.jetbrains.kotlin.test.backend.handlers.JvmBinaryArtifactHandler +import org.jetbrains.kotlin.test.directives.model.RegisteredDirectives +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendOutputArtifact +import org.jetbrains.kotlin.test.frontend.fir.FirOutputArtifact +import org.jetbrains.kotlin.test.model.* +import org.jetbrains.kotlin.test.services.* +import org.jetbrains.kotlin.test.util.trimTrailingWhitespacesAndRemoveRedundantEmptyLinesAtTheEnd +import org.jetbrains.kotlin.test.utils.MultiModuleInfoDumper +import org.jetbrains.kotlin.test.utils.withExtension +import org.jetbrains.kotlin.utils.addToStdlib.shouldNotBeCalled +import java.io.File + +class LoadedMetadataDumpHandler(testServices: TestServices) : JvmBinaryArtifactHandler(testServices) { + private val dumper: MultiModuleInfoDumper = MultiModuleInfoDumper() + + override fun processModule(module: TestModule, info: BinaryArtifacts.Jvm) { + val emptyModule = TestModule( + name = "empty", JvmPlatforms.defaultJvmPlatform, TargetBackend.JVM_IR, FrontendKinds.FIR, + BackendKinds.IrBackend, ArtifactKinds.Jvm, files = emptyList(), + allDependencies = listOf(DependencyDescription(module.name, DependencyKind.Binary, DependencyRelation.RegularDependency)), + RegisteredDirectives.Empty, LanguageVersionSettingsImpl.DEFAULT + ) + val configuration = testServices.compilerConfigurationProvider.getCompilerConfiguration(emptyModule) + val environment = VfsBasedProjectEnvironment( + testServices.compilerConfigurationProvider.getProject(emptyModule), + VirtualFileManager.getInstance().getFileSystem(StandardFileSystems.FILE_PROTOCOL), + testServices.compilerConfigurationProvider.getPackagePartProviderFactory(emptyModule) + ) + val binaryModuleData = BinaryModuleData.initialize( + Name.identifier(emptyModule.name), + JvmPlatforms.defaultJvmPlatform, + JvmPlatformAnalyzerServices + ) + val session = prepareJvmSessions( + files = emptyList(), + configuration, environment, Name.identifier(emptyModule.name), + extensionRegistrars = emptyList(), + environment.getSearchScopeForProjectLibraries(), + DependencyListForCliModule.build(binaryModuleData), + isCommonSource = { false }, + fileBelongsToModule = { _, _ -> false }, + createProviderAndScopeForIncrementalCompilation = { null } + ).single().session + + val packageFqName = FqName("test") + dumper.builderForModule(module) + .append(collectPackageContent(session, packageFqName, extractNames(module, packageFqName))) + } + + @Suppress("warnings") + override fun processAfterAllModules(someAssertionWasFailed: Boolean) { + if (dumper.isEmpty()) return + val testDataFile = testServices.moduleStructure.originalTestDataFiles.first() + val commonExtension = ".fir.txt" + val (specificExtension, otherSpecificExtension) = when (testServices.defaultsProvider.defaultFrontend) { + FrontendKinds.ClassicFrontend -> ".fir.k1.txt" to ".fir.k2.txt" + FrontendKinds.FIR -> ".fir.k2.txt" to ".fir.k1.txt" + else -> shouldNotBeCalled() + } + val commonFirDump = testDataFile.withExtension(commonExtension) + val specificFirDump = testDataFile.withExtension(specificExtension) + + val expectedFile = when { + commonFirDump.exists() -> commonFirDump + else -> specificFirDump + } + + val actualText = dumper.generateResultingDump() + assertions.assertEqualsToFile(expectedFile, actualText, message = { "Content is not equal" }) + + if (commonFirDump.exists() && specificFirDump.exists()) { + assertions.fail { + """ + Common dump ${commonFirDump.name} and specific ${specificFirDump.name} exist at the same time + Please remove ${specificFirDump.name} + """.trimIndent() + } + } + if (!commonFirDump.exists()) { + val otherFirDump = testDataFile.withExtension(otherSpecificExtension) + checkK1AndK2DumpsIdentity(specificFirDump, otherFirDump, commonFirDump) + } + } + + private fun checkK1AndK2DumpsIdentity(file1: File, file2: File, commonFile: File) { + if (!file1.exists() || !file2.exists()) return + val dump1 = file1.readText().trimTrailingWhitespacesAndRemoveRedundantEmptyLinesAtTheEnd() + val dump2 = file2.readText().trimTrailingWhitespacesAndRemoveRedundantEmptyLinesAtTheEnd() + if (dump1 == dump2) { + commonFile.writeText(dump1) + file1.delete() + file2.delete() + assertions.fail { + """ + Files ${file1.name} and ${file2.name} are identical + Generating ${commonFile.name} and deleting ${file1.name} and ${file2.name} + """.trimIndent() + } + } + } + + private fun collectPackageContent(session: FirSession, packageFqName: FqName, declarationNames: Collection): String { + val provider = session.symbolProvider + + val builder = StringBuilder() + val firRenderer = FirRenderer(builder) + + for (name in declarationNames) { + for (symbol in provider.getTopLevelCallableSymbols(packageFqName, name)) { + firRenderer.renderElementAsString(symbol.fir) + builder.appendLine() + } + } + + for (name in declarationNames) { + val classLikeSymbol = provider.getClassLikeSymbolByClassId(ClassId.topLevel(packageFqName.child(name))) ?: continue + firRenderer.renderElementAsString(classLikeSymbol.fir) + builder.appendLine() + } + + return builder.toString().trimEnd() + } + + private fun extractNames(module: TestModule, packageFqName: FqName): Collection { + testServices.dependencyProvider.getArtifactSafe(module, FrontendKinds.ClassicFrontend) + ?.let { return extractNames(it, packageFqName) } + testServices.dependencyProvider.getArtifactSafe(module, FrontendKinds.FIR) + ?.let { return extractNames(it, packageFqName) } + error("Frontend artifact for module $module not found") + } + + private fun extractNames(artifact: ClassicFrontendOutputArtifact, packageFqName: FqName): Collection { + return DescriptorUtils.getAllDescriptors(artifact.analysisResult.moduleDescriptor.getPackage(packageFqName).memberScope) + .mapTo(sortedSetOf()) { it.name } + } + + private fun extractNames(artifact: FirOutputArtifact, packageFqName: FqName): Collection { + return sortedSetOf().apply { + for (part in artifact.partsForDependsOnModules) { + val files = part.session.firProvider.getFirFilesByPackage(packageFqName) + files.flatMapTo(this) { file -> + file.declarations.mapNotNull { (it as? FirMemberDeclaration)?.nameOrSpecialName } + } + } + } + } +} diff --git a/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/runners/AbstractFirLoadCompiledKotlinTestBase.kt b/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/runners/AbstractFirLoadCompiledKotlinTestBase.kt new file mode 100644 index 00000000000..b0ccec93a06 --- /dev/null +++ b/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/runners/AbstractFirLoadCompiledKotlinTestBase.kt @@ -0,0 +1,75 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.test.runners + +import org.jetbrains.kotlin.test.* +import org.jetbrains.kotlin.test.backend.ir.IrBackendInput +import org.jetbrains.kotlin.test.backend.ir.JvmIrBackendFacade +import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder +import org.jetbrains.kotlin.test.builders.configureJvmArtifactsHandlersStep +import org.jetbrains.kotlin.test.directives.ConfigurationDirectives.WITH_STDLIB +import org.jetbrains.kotlin.test.directives.configureFirParser +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontend2IrConverter +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendFacade +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendOutputArtifact +import org.jetbrains.kotlin.test.frontend.fir.Fir2IrResultsConverter +import org.jetbrains.kotlin.test.frontend.fir.FirFrontendFacade +import org.jetbrains.kotlin.test.frontend.fir.FirOutputArtifact +import org.jetbrains.kotlin.test.model.* +import org.jetbrains.kotlin.test.runners.codegen.commonConfigurationForTest + +abstract class AbstractFirLoadCompiledKotlinTestBase> : + AbstractKotlinCompilerWithTargetBackendTest(TargetBackend.JVM_IR) +{ + protected abstract val frontendKind: FrontendKind + protected abstract val frontendFacade: Constructor> + protected abstract val frontendToBackendConverter: Constructor> + + override fun TestConfigurationBuilder.configuration() { + commonConfigurationForTest( + frontendKind, + frontendFacade, + frontendToBackendConverter, + ::JvmIrBackendFacade + ) + + configureJvmArtifactsHandlersStep { + useHandlers(::LoadedMetadataDumpHandler) + } + + forTestsMatching("compiler/testData/loadJava/compiledKotlinWithStdlib/*") { + defaultDirectives { + +WITH_STDLIB + } + } + + useAfterAnalysisCheckers(::FirMetadataLoadingTestSuppressor) + } +} + +open class AbstractFirLoadK1CompiledKotlin : AbstractFirLoadCompiledKotlinTestBase() { + override val frontendKind: FrontendKind + get() = FrontendKinds.ClassicFrontend + override val frontendFacade: Constructor> + get() = ::ClassicFrontendFacade + override val frontendToBackendConverter: Constructor> + get() = ::ClassicFrontend2IrConverter +} + +open class AbstractFirLoadK2CompiledKotlin : AbstractFirLoadCompiledKotlinTestBase() { + override val frontendKind: FrontendKind + get() = FrontendKinds.FIR + override val frontendFacade: Constructor> + get() = ::FirFrontendFacade + override val frontendToBackendConverter: Constructor> + get() = ::Fir2IrResultsConverter + + override fun configure(builder: TestConfigurationBuilder) { + super.configure(builder) + builder.configureFirParser(FirParser.LightTree) + } +} + diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLoadK1CompiledKotlinGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLoadK1CompiledKotlinGenerated.java new file mode 100644 index 00000000000..d21f79f39ca --- /dev/null +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLoadK1CompiledKotlinGenerated.java @@ -0,0 +1,3530 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.test.runners; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; + +import java.io.File; +import java.util.regex.Pattern; + +/** This class is generated by {@link org.jetbrains.kotlin.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +public class FirLoadK1CompiledKotlinGenerated extends AbstractFirLoadK1CompiledKotlin { + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin") + @TestDataPath("$PROJECT_ROOT") + public class CompiledKotlin { + @Test + public void testAllFilesPresentInCompiledKotlin() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("AnnotatedAnnotation.kt") + public void testAnnotatedAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotatedAnnotation.kt"); + } + + @Test + @TestMetadata("AnnotatedMethod.kt") + public void testAnnotatedMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotatedMethod.kt"); + } + + @Test + @TestMetadata("AnnotationInArray.kt") + public void testAnnotationInArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotationInArray.kt"); + } + + @Test + @TestMetadata("AnnotationOnTypeParameter.kt") + public void testAnnotationOnTypeParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotationOnTypeParameter.kt"); + } + + @Test + @TestMetadata("ClassLiteralArguments.kt") + public void testClassLiteralArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/ClassLiteralArguments.kt"); + } + + @Test + @TestMetadata("MultiDimensionalArrayMethod.kt") + public void testMultiDimensionalArrayMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/MultiDimensionalArrayMethod.kt"); + } + + @Test + @TestMetadata("PrimitiveArrayArguments.kt") + public void testPrimitiveArrayArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/PrimitiveArrayArguments.kt"); + } + + @Test + @TestMetadata("SimpleAnnotation.kt") + public void testSimpleAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/SimpleAnnotation.kt"); + } + + @Test + @TestMetadata("TargetedAnnotation.kt") + public void testTargetedAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/TargetedAnnotation.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/classMembers") + @TestDataPath("$PROJECT_ROOT") + public class ClassMembers { + @Test + public void testAllFilesPresentInClassMembers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/classMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassObjectPropertyField.kt") + public void testClassObjectPropertyField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/ClassObjectPropertyField.kt"); + } + + @Test + @TestMetadata("Constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Constructor.kt"); + } + + @Test + @TestMetadata("DelegatedProperty.kt") + public void testDelegatedProperty() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/DelegatedProperty.kt"); + } + + @Test + @TestMetadata("EnumArgument.kt") + public void testEnumArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/EnumArgument.kt"); + } + + @Test + @TestMetadata("Function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Function.kt"); + } + + @Test + @TestMetadata("Getter.kt") + public void testGetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Getter.kt"); + } + + @Test + @TestMetadata("HiddenConstructorWithInlineClassParameters.kt") + public void testHiddenConstructorWithInlineClassParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.kt"); + } + + @Test + @TestMetadata("PropertyField.kt") + public void testPropertyField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/PropertyField.kt"); + } + + @Test + @TestMetadata("PublishedApiAnnotationOnInlineClassCosntructor.kt") + public void testPublishedApiAnnotationOnInlineClassCosntructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/PublishedApiAnnotationOnInlineClassCosntructor.kt"); + } + + @Test + @TestMetadata("Setter.kt") + public void testSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Setter.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/classes") + @TestDataPath("$PROJECT_ROOT") + public class Classes { + @Test + public void testAllFilesPresentInClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("AnnotationInClassObject.kt") + public void testAnnotationInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/AnnotationInClassObject.kt"); + } + + @Test + @TestMetadata("ClassInClassObject.kt") + public void testClassInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassInClassObject.kt"); + } + + @Test + @TestMetadata("ClassObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassObject.kt"); + } + + @Test + @TestMetadata("ClassObjectInStaticNestedClass.kt") + public void testClassObjectInStaticNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassObjectInStaticNestedClass.kt"); + } + + @Test + @TestMetadata("DataClass.kt") + public void testDataClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/DataClass.kt"); + } + + @Test + @TestMetadata("Deprecated.kt") + public void testDeprecated() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.kt"); + } + + @Test + @TestMetadata("DollarsInAnnotationName.kt") + public void testDollarsInAnnotationName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/DollarsInAnnotationName.kt"); + } + + @Test + @TestMetadata("EnumArgument.kt") + public void testEnumArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/EnumArgument.kt"); + } + + @Test + @TestMetadata("MultipleAnnotations.kt") + public void testMultipleAnnotations() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/MultipleAnnotations.kt"); + } + + @Test + @TestMetadata("NestedAnnotation.kt") + public void testNestedAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedAnnotation.kt"); + } + + @Test + @TestMetadata("NestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.kt"); + } + + @Test + @TestMetadata("Retention.kt") + public void testRetention() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Retention.kt"); + } + + @Test + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Simple.kt"); + } + + @Test + @TestMetadata("WithArgument.kt") + public void testWithArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/WithArgument.kt"); + } + + @Test + @TestMetadata("WithMultipleArguments.kt") + public void testWithMultipleArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/WithMultipleArguments.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers") + @TestDataPath("$PROJECT_ROOT") + public class PackageMembers { + @Test + public void testAllFilesPresentInPackageMembers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("DelegatedProperty.kt") + public void testDelegatedProperty() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/DelegatedProperty.kt"); + } + + @Test + @TestMetadata("EnumArgument.kt") + public void testEnumArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/EnumArgument.kt"); + } + + @Test + @TestMetadata("EnumArrayArgument.kt") + public void testEnumArrayArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/EnumArrayArgument.kt"); + } + + @Test + @TestMetadata("Function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Function.kt"); + } + + @Test + @TestMetadata("Getter.kt") + public void testGetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Getter.kt"); + } + + @Test + @TestMetadata("PropertyField.kt") + public void testPropertyField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/PropertyField.kt"); + } + + @Test + @TestMetadata("Setter.kt") + public void testSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Setter.kt"); + } + + @Test + @TestMetadata("StringArrayArgument.kt") + public void testStringArrayArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/StringArrayArgument.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/parameters") + @TestDataPath("$PROJECT_ROOT") + public class Parameters { + @Test + public void testAllFilesPresentInParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/parameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/Constructor.kt"); + } + + @Test + @TestMetadata("ExtensionFunction.kt") + public void testExtensionFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionFunction.kt"); + } + + @Test + @TestMetadata("ExtensionFunctionInClass.kt") + public void testExtensionFunctionInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionFunctionInClass.kt"); + } + + @Test + @TestMetadata("ExtensionPropertySetter.kt") + public void testExtensionPropertySetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionPropertySetter.kt"); + } + + @Test + @TestMetadata("FunctionInClass.kt") + public void testFunctionInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/FunctionInClass.kt"); + } + + @Test + @TestMetadata("FunctionInTrait.kt") + public void testFunctionInTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/FunctionInTrait.kt"); + } + + @Test + @TestMetadata("InnerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.kt"); + } + + @Test + @TestMetadata("ManyAnnotations.kt") + public void testManyAnnotations() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ManyAnnotations.kt"); + } + + @Test + @TestMetadata("PropertySetterInClass.kt") + public void testPropertySetterInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/PropertySetterInClass.kt"); + } + + @Test + @TestMetadata("TopLevelFunction.kt") + public void testTopLevelFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/TopLevelFunction.kt"); + } + + @Test + @TestMetadata("TopLevelPropertySetter.kt") + public void testTopLevelPropertySetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/TopLevelPropertySetter.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields") + @TestDataPath("$PROJECT_ROOT") + public class PropertiesWithoutBackingFields { + @Test + public void testAllFilesPresentInPropertiesWithoutBackingFields() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Class.kt"); + } + + @Test + @TestMetadata("ClassObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ClassObject.kt"); + } + + @Test + @TestMetadata("ExtensionsWithSameNameClass.kt") + public void testExtensionsWithSameNameClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.kt"); + } + + @Test + @TestMetadata("ExtensionsWithSameNamePackage.kt") + public void testExtensionsWithSameNamePackage() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.kt"); + } + + @Test + @TestMetadata("NestedTrait.kt") + public void testNestedTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/NestedTrait.kt"); + } + + @Test + @TestMetadata("TopLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/TopLevel.kt"); + } + + @Test + @TestMetadata("Trait.kt") + public void testTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Trait.kt"); + } + + @Test + @TestMetadata("TraitClassObject.kt") + public void testTraitClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/TraitClassObject.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/types") + @TestDataPath("$PROJECT_ROOT") + public class Types { + @Test + public void testAllFilesPresentInTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/types"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassLiteralArgument.kt") + public void testClassLiteralArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/ClassLiteralArgument.kt"); + } + + @Test + @TestMetadata("DefinitelyNotNull.kt") + public void testDefinitelyNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/DefinitelyNotNull.kt"); + } + + @Test + @TestMetadata("ReceiverParameter.kt") + public void testReceiverParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/ReceiverParameter.kt"); + } + + @Test + @TestMetadata("SimpleTypeAnnotation.kt") + public void testSimpleTypeAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SimpleTypeAnnotation.kt"); + } + + @Test + @TestMetadata("SourceRetention.kt") + public void testSourceRetention() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SourceRetention.kt"); + } + + @Test + @TestMetadata("SupertypesAndBounds.kt") + public void testSupertypesAndBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SupertypesAndBounds.kt"); + } + + @Test + @TestMetadata("TypeAnnotationWithArguments.kt") + public void testTypeAnnotationWithArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeAnnotationWithArguments.kt"); + } + + @Test + @TestMetadata("TypeArgument.kt") + public void testTypeArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeArgument.kt"); + } + + @Test + @TestMetadata("TypeParameterAnnotation.kt") + public void testTypeParameterAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeParameterAnnotation.kt"); + } + + @Test + @TestMetadata("TypeParameterAnnotationWithArguments.kt") + public void testTypeParameterAnnotationWithArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeParameterAnnotationWithArguments.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget") + @TestDataPath("$PROJECT_ROOT") + public class WithUseSiteTarget { + @Test + public void testAllFilesPresentInWithUseSiteTarget() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("DelegateTarget.kt") + public void testDelegateTarget() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/DelegateTarget.kt"); + } + + @Test + @TestMetadata("FieldTarget.kt") + public void testFieldTarget() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/FieldTarget.kt"); + } + + @Test + @TestMetadata("PropertyAndAccessor.kt") + public void testPropertyAndAccessor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.kt"); + } + + @Test + @TestMetadata("ReceiverTarget.kt") + public void testReceiverTarget() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/ReceiverTarget.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/class") + @TestDataPath("$PROJECT_ROOT") + public class Class { + @Test + public void testAllFilesPresentInClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/class"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/Class.kt"); + } + + @Test + @TestMetadata("ClassInParam.kt") + public void testClassInParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassInParam.kt"); + } + + @Test + @TestMetadata("ClassInnerClass.kt") + public void testClassInnerClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassInnerClass.kt"); + } + + @Test + @TestMetadata("ClassMemberConflict.kt") + public void testClassMemberConflict() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassMemberConflict.kt"); + } + + @Test + @TestMetadata("ClassOutParam.kt") + public void testClassOutParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassOutParam.kt"); + } + + @Test + @TestMetadata("ClassParam.kt") + public void testClassParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParam.kt"); + } + + @Test + @TestMetadata("ClassParamReferencesParam.kt") + public void testClassParamReferencesParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesParam.kt"); + } + + @Test + @TestMetadata("ClassParamReferencesParam2.kt") + public void testClassParamReferencesParam2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesParam2.kt"); + } + + @Test + @TestMetadata("ClassParamReferencesSelf.kt") + public void testClassParamReferencesSelf() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesSelf.kt"); + } + + @Test + @TestMetadata("ClassParamUpperClassBound.kt") + public void testClassParamUpperClassBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperClassBound.kt"); + } + + @Test + @TestMetadata("ClassParamUpperClassInterfaceBound.kt") + public void testClassParamUpperClassInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperClassInterfaceBound.kt"); + } + + @Test + @TestMetadata("ClassParamUpperInterfaceBound.kt") + public void testClassParamUpperInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperInterfaceBound.kt"); + } + + @Test + @TestMetadata("ClassTwoParams.kt") + public void testClassTwoParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassTwoParams.kt"); + } + + @Test + @TestMetadata("ClassTwoParams2.kt") + public void testClassTwoParams2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassTwoParams2.kt"); + } + + @Test + @TestMetadata("FunInterface.kt") + public void testFunInterface() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/FunInterface.kt"); + } + + @Test + @TestMetadata("InheritClassSimple.kt") + public void testInheritClassSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritClassSimple.kt"); + } + + @Test + @TestMetadata("InheritClassWithParam.kt") + public void testInheritClassWithParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritClassWithParam.kt"); + } + + @Test + @TestMetadata("InheritSubstitutedMethod.kt") + public void testInheritSubstitutedMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritSubstitutedMethod.kt"); + } + + @Test + @TestMetadata("InheritTraitWithFunctionParam.kt") + public void testInheritTraitWithFunctionParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritTraitWithFunctionParam.kt"); + } + + @Test + @TestMetadata("InheritTraitWithParam.kt") + public void testInheritTraitWithParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritTraitWithParam.kt"); + } + + @Test + @TestMetadata("InnerClassExtendInnerClass.kt") + public void testInnerClassExtendInnerClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InnerClassExtendInnerClass.kt"); + } + + @Test + @TestMetadata("InnerGenericClass.kt") + public void testInnerGenericClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InnerGenericClass.kt"); + } + + @Test + @TestMetadata("InnerTypes.kt") + public void testInnerTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InnerTypes.kt"); + } + + @Test + @TestMetadata("NamedObject.kt") + public void testNamedObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObject.kt"); + } + + @Test + @TestMetadata("NamedObjectInClass.kt") + public void testNamedObjectInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInClass.kt"); + } + + @Test + @TestMetadata("NamedObjectInClassObject.kt") + public void testNamedObjectInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInClassObject.kt"); + } + + @Test + @TestMetadata("NamedObjectInNamedObject.kt") + public void testNamedObjectInNamedObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInNamedObject.kt"); + } + + @Test + @TestMetadata("NamedObjectWithAnotherTopLevelProperty.kt") + public void testNamedObjectWithAnotherTopLevelProperty() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectWithAnotherTopLevelProperty.kt"); + } + + @Test + @TestMetadata("NestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NestedClass.kt"); + } + + @Test + @TestMetadata("NestedClassExtendNestedClass.kt") + public void testNestedClassExtendNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NestedClassExtendNestedClass.kt"); + } + + @Test + @TestMetadata("NestedGenericClass.kt") + public void testNestedGenericClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NestedGenericClass.kt"); + } + + @Test + @TestMetadata("RecursiveGeneric.kt") + public void testRecursiveGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/RecursiveGeneric.kt"); + } + + @Test + @TestMetadata("SealedClass.kt") + public void testSealedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/SealedClass.kt"); + } + + @Test + @TestMetadata("SingleAbstractMethod.kt") + public void testSingleAbstractMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/SingleAbstractMethod.kt"); + } + + @Test + @TestMetadata("Trait.kt") + public void testTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/Trait.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/class/javaBean") + @TestDataPath("$PROJECT_ROOT") + public class JavaBean { + @Test + public void testAllFilesPresentInJavaBean() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/class/javaBean"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("DifferentGetterAndSetter.kt") + public void testDifferentGetterAndSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/DifferentGetterAndSetter.kt"); + } + + @Test + @TestMetadata("JavaBeanAbstractGetter.kt") + public void testJavaBeanAbstractGetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanAbstractGetter.kt"); + } + + @Test + @TestMetadata("JavaBeanVal.kt") + public void testJavaBeanVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVal.kt"); + } + + @Test + @TestMetadata("JavaBeanVar.kt") + public void testJavaBeanVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVar.kt"); + } + + @Test + @TestMetadata("JavaBeanVarOfGenericType.kt") + public void testJavaBeanVarOfGenericType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVarOfGenericType.kt"); + } + + @Test + @TestMetadata("TwoSetters.kt") + public void testTwoSetters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/TwoSetters.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/classFun") + @TestDataPath("$PROJECT_ROOT") + public class ClassFun { + @Test + public void testAllFilesPresentInClassFun() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/classFun"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassInParamUsedInFun.kt") + public void testClassInParamUsedInFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/ClassInParamUsedInFun.kt"); + } + + @Test + @TestMetadata("ClassParamUsedInFun.kt") + public void testClassParamUsedInFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/ClassParamUsedInFun.kt"); + } + + @Test + @TestMetadata("FunDelegationToTraitImpl.kt") + public void testFunDelegationToTraitImpl() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/FunDelegationToTraitImpl.kt"); + } + + @Test + @TestMetadata("FunInParamSuper.kt") + public void testFunInParamSuper() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/FunInParamSuper.kt"); + } + + @Test + @TestMetadata("TraitOpenFun.kt") + public void testTraitOpenFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/TraitOpenFun.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/classObject") + @TestDataPath("$PROJECT_ROOT") + public class ClassObject { + @Test + public void testAllFilesPresentInClassObject() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/classObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassObjectDeclaresVal.kt") + public void testClassObjectDeclaresVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDeclaresVal.kt"); + } + + @Test + @TestMetadata("ClassObjectDeclaresVar.kt") + public void testClassObjectDeclaresVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDeclaresVar.kt"); + } + + @Test + @TestMetadata("ClassObjectDefaultVisibility.kt") + public void testClassObjectDefaultVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.kt"); + } + + @Test + @TestMetadata("ClassObjectExplicitVisibility.kt") + public void testClassObjectExplicitVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExplicitVisibility.kt"); + } + + @Test + @TestMetadata("ClassObjectExtendsTrait.kt") + public void testClassObjectExtendsTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExtendsTrait.kt"); + } + + @Test + @TestMetadata("ClassObjectExtendsTraitWithTP.kt") + public void testClassObjectExtendsTraitWithTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExtendsTraitWithTP.kt"); + } + + @Test + @TestMetadata("classObjectInClassStaticFields.kt") + public void testClassObjectInClassStaticFields() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/classObjectInClassStaticFields.kt"); + } + + @Test + @TestMetadata("classObjectInTraitStaticFields.kt") + public void testClassObjectInTraitStaticFields() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/classObjectInTraitStaticFields.kt"); + } + + @Test + @TestMetadata("ClassObjectPropertyInClass.kt") + public void testClassObjectPropertyInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectPropertyInClass.kt"); + } + + @Test + @TestMetadata("Delegation.kt") + public void testDelegation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/Delegation.kt"); + } + + @Test + @TestMetadata("InnerClassInClassObject.kt") + public void testInnerClassInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/InnerClassInClassObject.kt"); + } + + @Test + @TestMetadata("NamedClassObject.kt") + public void testNamedClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/NamedClassObject.kt"); + } + + @Test + @TestMetadata("SimpleClassObject.kt") + public void testSimpleClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/SimpleClassObject.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/constructor") + @TestDataPath("$PROJECT_ROOT") + public class Constructor { + @Test + public void testAllFilesPresentInConstructor() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Constructor0.kt") + public void testConstructor0() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor0.kt"); + } + + @Test + @TestMetadata("Constructor1.kt") + public void testConstructor1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor1.kt"); + } + + @Test + @TestMetadata("Constructor1WithParamDefaultValue.kt") + public void testConstructor1WithParamDefaultValue() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor1WithParamDefaultValue.kt"); + } + + @Test + @TestMetadata("Constructor2WithOneParamDefaultValue.kt") + public void testConstructor2WithOneParamDefaultValue() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor2WithOneParamDefaultValue.kt"); + } + + @Test + @TestMetadata("ConstructorCollectionParameter.kt") + public void testConstructorCollectionParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorCollectionParameter.kt"); + } + + @Test + @TestMetadata("ConstructorGenericDeep.kt") + public void testConstructorGenericDeep() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericDeep.kt"); + } + + @Test + @TestMetadata("ConstructorGenericSimple.kt") + public void testConstructorGenericSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericSimple.kt"); + } + + @Test + @TestMetadata("ConstructorGenericUpperBound.kt") + public void testConstructorGenericUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericUpperBound.kt"); + } + + @Test + @TestMetadata("ConstructorWithTwoDefArgs.kt") + public void testConstructorWithTwoDefArgs() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoDefArgs.kt"); + } + + @Test + @TestMetadata("ConstructorWithTwoTypeParameters.kt") + public void testConstructorWithTwoTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParameters.kt"); + } + + @Test + @TestMetadata("ConstructorWithTwoTypeParametersAndOneIntValueParameter.kt") + public void testConstructorWithTwoTypeParametersAndOneIntValueParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOneIntValueParameter.kt"); + } + + @Test + @TestMetadata("ConstructorWithTwoTypeParametersAndOnePValueParameter.kt") + public void testConstructorWithTwoTypeParametersAndOnePValueParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOnePValueParameter.kt"); + } + + @Test + @TestMetadata("ConstructorWithTypeParameter.kt") + public void testConstructorWithTypeParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTypeParameter.kt"); + } + + @Test + @TestMetadata("ConstructorWithTypeParametersEAndOnePValueParameter.kt") + public void testConstructorWithTypeParametersEAndOnePValueParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTypeParametersEAndOnePValueParameter.kt"); + } + + @Test + @TestMetadata("InnerClassConstructorWithDefArgs.kt") + public void testInnerClassConstructorWithDefArgs() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/InnerClassConstructorWithDefArgs.kt"); + } + + @Test + @TestMetadata("PrivateConstructor1WithParamDefaultValue.kt") + public void testPrivateConstructor1WithParamDefaultValue() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/PrivateConstructor1WithParamDefaultValue.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/constructor/vararg") + @TestDataPath("$PROJECT_ROOT") + public class Vararg { + @Test + public void testAllFilesPresentInVararg() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/constructor/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ConstructorNonLastVararg.kt") + public void testConstructorNonLastVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/vararg/ConstructorNonLastVararg.kt"); + } + + @Test + @TestMetadata("ConstructorVararg.kt") + public void testConstructorVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/vararg/ConstructorVararg.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/contextReceivers") + @TestDataPath("$PROJECT_ROOT") + public class ContextReceivers { + @Test + public void testAllFilesPresentInContextReceivers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("SimpleContextReceivers.kt") + public void testSimpleContextReceivers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/contextReceivers/SimpleContextReceivers.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/coroutines") + @TestDataPath("$PROJECT_ROOT") + public class Coroutines { + @Test + public void testAllFilesPresentInCoroutines() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Basic.kt") + public void testBasic() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/coroutines/Basic.kt"); + } + + @Test + @TestMetadata("TypeAliasFTSuspendWithReceiver.kt") + public void testTypeAliasFTSuspendWithReceiver() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/coroutines/TypeAliasFTSuspendWithReceiver.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/dataClass") + @TestDataPath("$PROJECT_ROOT") + public class DataClass { + @Test + public void testAllFilesPresentInDataClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/dataClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MixedComponents.kt") + public void testMixedComponents() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/MixedComponents.kt"); + } + + @Test + @TestMetadata("OneVal.kt") + public void testOneVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/OneVal.kt"); + } + + @Test + @TestMetadata("TwoVals.kt") + public void testTwoVals() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/TwoVals.kt"); + } + + @Test + @TestMetadata("TwoVars.kt") + public void testTwoVars() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/TwoVars.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava") + @TestDataPath("$PROJECT_ROOT") + public class FromLoadJava { + @Test + public void testAllFilesPresentInFromLoadJava() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ArrayTypeVariance.kt") + public void testArrayTypeVariance() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ArrayTypeVariance.kt"); + } + + @Test + @TestMetadata("ClassDoesNotOverrideMethod.kt") + public void testClassDoesNotOverrideMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassDoesNotOverrideMethod.kt"); + } + + @Test + @TestMetadata("ClassObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassObject.kt"); + } + + @Test + @TestMetadata("classObjectAnnotation.kt") + public void testClassObjectAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/classObjectAnnotation.kt"); + } + + @Test + @TestMetadata("ClassWithConstVal.kt") + public void testClassWithConstVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithConstVal.kt"); + } + + @Test + @TestMetadata("ClassWithTypeP.kt") + public void testClassWithTypeP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypeP.kt"); + } + + @Test + @TestMetadata("ClassWithTypePExtendsIterableP.kt") + public void testClassWithTypePExtendsIterableP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePExtendsIterableP.kt"); + } + + @Test + @TestMetadata("ClassWithTypePP.kt") + public void testClassWithTypePP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePP.kt"); + } + + @Test + @TestMetadata("ClassWithTypePRefNext.kt") + public void testClassWithTypePRefNext() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefNext.kt"); + } + + @Test + @TestMetadata("ClassWithTypePRefSelf.kt") + public void testClassWithTypePRefSelf() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefSelf.kt"); + } + + @Test + @TestMetadata("ClassWithTypePRefSelfAndClass.kt") + public void testClassWithTypePRefSelfAndClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefSelfAndClass.kt"); + } + + @Test + @TestMetadata("FieldAsVar.kt") + public void testFieldAsVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FieldAsVar.kt"); + } + + @Test + @TestMetadata("FieldOfArrayType.kt") + public void testFieldOfArrayType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FieldOfArrayType.kt"); + } + + @Test + @TestMetadata("FinalFieldAsVal.kt") + public void testFinalFieldAsVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FinalFieldAsVal.kt"); + } + + @Test + @TestMetadata("genericFunction.kt") + public void testGenericFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/genericFunction.kt"); + } + + @Test + @TestMetadata("InheritMethodsDifferentReturnTypes.kt") + public void testInheritMethodsDifferentReturnTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.kt"); + } + + @Test + @TestMetadata("InheritMethodsDifferentReturnTypesGeneric.kt") + public void testInheritMethodsDifferentReturnTypesGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.kt"); + } + + @Test + @TestMetadata("InnerClass.kt") + public void testInnerClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InnerClass.kt"); + } + + @Test + @TestMetadata("MethodTypePOneUpperBound.kt") + public void testMethodTypePOneUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodTypePOneUpperBound.kt"); + } + + @Test + @TestMetadata("MethodTypePTwoUpperBounds.kt") + public void testMethodTypePTwoUpperBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodTypePTwoUpperBounds.kt"); + } + + @Test + @TestMetadata("MethodWithTypeP.kt") + public void testMethodWithTypeP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypeP.kt"); + } + + @Test + @TestMetadata("MethodWithTypePP.kt") + public void testMethodWithTypePP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypePP.kt"); + } + + @Test + @TestMetadata("MethodWithTypePRefClassP.kt") + public void testMethodWithTypePRefClassP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypePRefClassP.kt"); + } + + @Test + @TestMetadata("MethosWithPRefTP.kt") + public void testMethosWithPRefTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethosWithPRefTP.kt"); + } + + @Test + @TestMetadata("MyException.kt") + public void testMyException() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MyException.kt"); + } + + @Test + @TestMetadata("NestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/NestedClass.kt"); + } + + @Test + @TestMetadata("objectInClass.kt") + public void testObjectInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectInClass.kt"); + } + + @Test + @TestMetadata("objectMembers.kt") + public void testObjectMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectMembers.kt"); + } + + @Test + @TestMetadata("packageLevelObject.kt") + public void testPackageLevelObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/packageLevelObject.kt"); + } + + @Test + @TestMetadata("RemoveRedundantProjectionKind.kt") + public void testRemoveRedundantProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.kt"); + } + + @Test + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/Simple.kt"); + } + + @Test + @TestMetadata("TwoFields.kt") + public void testTwoFields() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/TwoFields.kt"); + } + + @Test + @TestMetadata("UnboundWildcard.kt") + public void testUnboundWildcard() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/UnboundWildcard.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature") + @TestDataPath("$PROJECT_ROOT") + public class KotlinSignature { + @Test + @TestMetadata("AllBoundsInWhen.kt") + public void testAllBoundsInWhen() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/AllBoundsInWhen.kt"); + } + + @Test + public void testAllFilesPresentInKotlinSignature() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ArrayType.kt") + public void testArrayType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ArrayType.kt"); + } + + @Test + @TestMetadata("ConstructorWithNewTypeParams.kt") + public void testConstructorWithNewTypeParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithNewTypeParams.kt"); + } + + @Test + @TestMetadata("ConstructorWithParentTypeParams.kt") + public void testConstructorWithParentTypeParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithParentTypeParams.kt"); + } + + @Test + @TestMetadata("ConstructorWithSeveralParams.kt") + public void testConstructorWithSeveralParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithSeveralParams.kt"); + } + + @Test + @TestMetadata("ConstructorWithoutParams.kt") + public void testConstructorWithoutParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithoutParams.kt"); + } + + @Test + @TestMetadata("CustomProjectionKind.kt") + public void testCustomProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/CustomProjectionKind.kt"); + } + + @Test + @TestMetadata("MethodWithFunctionTypes.kt") + public void testMethodWithFunctionTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithFunctionTypes.kt"); + } + + @Test + @TestMetadata("MethodWithGenerics.kt") + public void testMethodWithGenerics() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithGenerics.kt"); + } + + @Test + @TestMetadata("MethodWithMappedClasses.kt") + public void testMethodWithMappedClasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithMappedClasses.kt"); + } + + @Test + @TestMetadata("MethodWithTypeParameters.kt") + public void testMethodWithTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithTypeParameters.kt"); + } + + @Test + @TestMetadata("MethodWithVararg.kt") + public void testMethodWithVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithVararg.kt"); + } + + @Test + @TestMetadata("PropertyArrayTypes.kt") + public void testPropertyArrayTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertyArrayTypes.kt"); + } + + @Test + @TestMetadata("PropertyComplexTypes.kt") + public void testPropertyComplexTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertyComplexTypes.kt"); + } + + @Test + @TestMetadata("PropertySimpleType.kt") + public void testPropertySimpleType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertySimpleType.kt"); + } + + @Test + @TestMetadata("StarProjection.kt") + public void testStarProjection() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/StarProjection.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error") + @TestDataPath("$PROJECT_ROOT") + public class Error { + @Test + @TestMetadata("AddingNullability.kt") + public void testAddingNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/AddingNullability.kt"); + } + + @Test + public void testAllFilesPresentInError() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ConflictingProjectionKind.kt") + public void testConflictingProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ConflictingProjectionKind.kt"); + } + + @Test + @TestMetadata("ExplicitFieldGettersAndSetters.kt") + public void testExplicitFieldGettersAndSetters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ExplicitFieldGettersAndSetters.kt"); + } + + @Test + @TestMetadata("ExtraUpperBound.kt") + public void testExtraUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ExtraUpperBound.kt"); + } + + @Test + @TestMetadata("MissingUpperBound.kt") + public void testMissingUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/MissingUpperBound.kt"); + } + + @Test + @TestMetadata("NoFieldTypeRef.kt") + public void testNoFieldTypeRef() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/NoFieldTypeRef.kt"); + } + + @Test + @TestMetadata("NotVarargReplacedWithVararg.kt") + public void testNotVarargReplacedWithVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/NotVarargReplacedWithVararg.kt"); + } + + @Test + @TestMetadata("RedundantProjectionKind.kt") + public void testRedundantProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/RedundantProjectionKind.kt"); + } + + @Test + @TestMetadata("ReturnTypeMissing.kt") + public void testReturnTypeMissing() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ReturnTypeMissing.kt"); + } + + @Test + @TestMetadata("SyntaxError.kt") + public void testSyntaxError() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxError.kt"); + } + + @Test + @TestMetadata("SyntaxErrorInFieldAnnotation.kt") + public void testSyntaxErrorInFieldAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxErrorInFieldAnnotation.kt"); + } + + @Test + @TestMetadata("VarargReplacedWithNotVararg.kt") + public void testVarargReplacedWithNotVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/VarargReplacedWithNotVararg.kt"); + } + + @Test + @TestMetadata("WrongFieldInitializer.kt") + public void testWrongFieldInitializer() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldInitializer.kt"); + } + + @Test + @TestMetadata("WrongFieldMutability.kt") + public void testWrongFieldMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldMutability.kt"); + } + + @Test + @TestMetadata("WrongFieldName.kt") + public void testWrongFieldName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldName.kt"); + } + + @Test + @TestMetadata("WrongMethodName.kt") + public void testWrongMethodName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongMethodName.kt"); + } + + @Test + @TestMetadata("WrongProjectionKind.kt") + public void testWrongProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongProjectionKind.kt"); + } + + @Test + @TestMetadata("WrongReturnTypeStructure.kt") + public void testWrongReturnTypeStructure() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongReturnTypeStructure.kt"); + } + + @Test + @TestMetadata("WrongTypeName1.kt") + public void testWrongTypeName1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName1.kt"); + } + + @Test + @TestMetadata("WrongTypeName2.kt") + public void testWrongTypeName2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName2.kt"); + } + + @Test + @TestMetadata("WrongTypeName3.kt") + public void testWrongTypeName3() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName3.kt"); + } + + @Test + @TestMetadata("WrongTypeParameterBoundStructure1.kt") + public void testWrongTypeParameterBoundStructure1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure1.kt"); + } + + @Test + @TestMetadata("WrongTypeParameterBoundStructure2.kt") + public void testWrongTypeParameterBoundStructure2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure2.kt"); + } + + @Test + @TestMetadata("WrongTypeParametersCount.kt") + public void testWrongTypeParametersCount() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParametersCount.kt"); + } + + @Test + @TestMetadata("WrongValueParameterStructure1.kt") + public void testWrongValueParameterStructure1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure1.kt"); + } + + @Test + @TestMetadata("WrongValueParameterStructure2.kt") + public void testWrongValueParameterStructure2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure2.kt"); + } + + @Test + @TestMetadata("WrongValueParametersCount.kt") + public void testWrongValueParametersCount() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParametersCount.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation") + @TestDataPath("$PROJECT_ROOT") + public class Propagation { + @Test + public void testAllFilesPresentInPropagation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("PropagateTypeArgumentNullable.kt") + public void testPropagateTypeArgumentNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter") + @TestDataPath("$PROJECT_ROOT") + public class Parameter { + @Test + public void testAllFilesPresentInParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ChangeProjectionKind1.kt") + public void testChangeProjectionKind1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.kt"); + } + + @Test + @TestMetadata("ChangeProjectionKind2.kt") + public void testChangeProjectionKind2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.kt"); + } + + @Test + @TestMetadata("DeeplySubstitutedClassParameter.kt") + public void testDeeplySubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.kt"); + } + + @Test + @TestMetadata("DeeplySubstitutedClassParameter2.kt") + public void testDeeplySubstitutedClassParameter2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.kt"); + } + + @Test + @TestMetadata("InheritMutability.kt") + public void testInheritMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.kt"); + } + + @Test + @TestMetadata("InheritNotVararg.kt") + public void testInheritNotVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.kt"); + } + + @Test + @TestMetadata("InheritNotVarargInteger.kt") + public void testInheritNotVarargInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.kt"); + } + + @Test + @TestMetadata("InheritNotVarargNotNull.kt") + public void testInheritNotVarargNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.kt"); + } + + @Test + @TestMetadata("InheritNotVarargPrimitive.kt") + public void testInheritNotVarargPrimitive() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.kt"); + } + + @Test + @TestMetadata("InheritNullability.kt") + public void testInheritNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.kt"); + } + + @Test + @TestMetadata("InheritProjectionKind.kt") + public void testInheritProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.kt"); + } + + @Test + @TestMetadata("InheritReadOnliness.kt") + public void testInheritReadOnliness() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.kt"); + } + + @Test + @TestMetadata("InheritVararg.kt") + public void testInheritVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.kt"); + } + + @Test + @TestMetadata("InheritVarargInteger.kt") + public void testInheritVarargInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.kt"); + } + + @Test + @TestMetadata("InheritVarargNotNull.kt") + public void testInheritVarargNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.kt"); + } + + @Test + @TestMetadata("InheritVarargPrimitive.kt") + public void testInheritVarargPrimitive() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.kt"); + } + + @Test + @TestMetadata("Kt3302.kt") + public void testKt3302() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.kt"); + } + + @Test + @TestMetadata("MutableToReadOnly.kt") + public void testMutableToReadOnly() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.kt"); + } + + @Test + @TestMetadata("NotNullToNullable.kt") + public void testNotNullToNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.kt"); + } + + @Test + @TestMetadata("NullableToNotNull.kt") + public void testNullableToNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.kt"); + } + + @Test + @TestMetadata("NullableToNotNullKotlinSignature.kt") + public void testNullableToNotNullKotlinSignature() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.kt"); + } + + @Test + @TestMetadata("OverrideWithErasedParameter.kt") + public void testOverrideWithErasedParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.kt"); + } + + @Test + @TestMetadata("ReadOnlyToMutable.kt") + public void testReadOnlyToMutable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.kt"); + } + + @Test + @TestMetadata("SubclassFromGenericAndNot.kt") + public void testSubclassFromGenericAndNot() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.kt"); + } + + @Test + @TestMetadata("SubstitutedClassParameter.kt") + public void testSubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.kt"); + } + + @Test + @TestMetadata("SubstitutedClassParameters.kt") + public void testSubstitutedClassParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return") + @TestDataPath("$PROJECT_ROOT") + public class Return { + @Test + @TestMetadata("AddNotNullJavaSubtype.kt") + public void testAddNotNullJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.kt"); + } + + @Test + @TestMetadata("AddNotNullSameJavaType.kt") + public void testAddNotNullSameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.kt"); + } + + @Test + @TestMetadata("AddNullabilityJavaSubtype.kt") + public void testAddNullabilityJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.kt"); + } + + @Test + @TestMetadata("AddNullabilitySameGenericType1.kt") + public void testAddNullabilitySameGenericType1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.kt"); + } + + @Test + @TestMetadata("AddNullabilitySameGenericType2.kt") + public void testAddNullabilitySameGenericType2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.kt"); + } + + @Test + @TestMetadata("AddNullabilitySameJavaType.kt") + public void testAddNullabilitySameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.kt"); + } + + @Test + public void testAllFilesPresentInReturn() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("CantMakeImmutableInSubclass.kt") + public void testCantMakeImmutableInSubclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.kt"); + } + + @Test + @TestMetadata("DeeplySubstitutedClassParameter.kt") + public void testDeeplySubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.kt"); + } + + @Test + @TestMetadata("DeeplySubstitutedClassParameter2.kt") + public void testDeeplySubstitutedClassParameter2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.kt"); + } + + @Test + @TestMetadata("HalfSubstitutedTypeParameters.kt") + public void testHalfSubstitutedTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.kt"); + } + + @Test + @TestMetadata("InheritNullabilityGenericSubclassSimple.kt") + public void testInheritNullabilityGenericSubclassSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.kt"); + } + + @Test + @TestMetadata("InheritNullabilityJavaSubtype.kt") + public void testInheritNullabilityJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.kt"); + } + + @Test + @TestMetadata("InheritNullabilitySameGenericType.kt") + public void testInheritNullabilitySameGenericType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.kt"); + } + + @Test + @TestMetadata("InheritNullabilitySameJavaType.kt") + public void testInheritNullabilitySameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.kt"); + } + + @Test + @TestMetadata("InheritProjectionKind.kt") + public void testInheritProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.kt"); + } + + @Test + @TestMetadata("InheritReadOnlinessOfArgument.kt") + public void testInheritReadOnlinessOfArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.kt"); + } + + @Test + @TestMetadata("InheritReadOnlinessSameClass.kt") + public void testInheritReadOnlinessSameClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.kt"); + } + + @Test + @TestMetadata("InheritReadOnlinessSubclass.kt") + public void testInheritReadOnlinessSubclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.kt"); + } + + @Test + @TestMetadata("SameProjectionKind.kt") + public void testSameProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.kt"); + } + + @Test + @TestMetadata("SubclassFromGenericAndNot.kt") + public void testSubclassFromGenericAndNot() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.kt"); + } + + @Test + @TestMetadata("SubclassOfCollection.kt") + public void testSubclassOfCollection() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfCollection.kt"); + } + + @Test + @TestMetadata("SubclassOfMapEntry.kt") + public void testSubclassOfMapEntry() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfMapEntry.kt"); + } + + @Test + @TestMetadata("SubstitutedClassParameter.kt") + public void testSubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.kt"); + } + + @Test + @TestMetadata("SubstitutedClassParameters.kt") + public void testSubstitutedClassParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesConflictingProjectionKinds.kt") + public void testTwoSuperclassesConflictingProjectionKinds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesInvariantAndCovariantInferMutability.kt") + public void testTwoSuperclassesInvariantAndCovariantInferMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesInvariantAndCovariantInferNullability.kt") + public void testTwoSuperclassesInvariantAndCovariantInferNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesMutableAndNot.kt") + public void testTwoSuperclassesMutableAndNot() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesReturnJavaSubtype.kt") + public void testTwoSuperclassesReturnJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesReturnSameJavaType.kt") + public void testTwoSuperclassesReturnSameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesSupplementNotNull.kt") + public void testTwoSuperclassesSupplementNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.kt"); + } + + @Test + @TestMetadata("TypeParamOfClass.kt") + public void testTypeParamOfClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.kt"); + } + + @Test + @TestMetadata("TypeParamOfClassSubstituted.kt") + public void testTypeParamOfClassSubstituted() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.kt"); + } + + @Test + @TestMetadata("TypeParamOfFun.kt") + public void testTypeParamOfFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter") + @TestDataPath("$PROJECT_ROOT") + public class TypeParameter { + @Test + public void testAllFilesPresentInTypeParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("InheritMutability.kt") + public void testInheritMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.kt"); + } + + @Test + @TestMetadata("InheritNullability.kt") + public void testInheritNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.kt"); + } + + @Test + @TestMetadata("InheritReadOnliness.kt") + public void testInheritReadOnliness() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.kt"); + } + + @Test + @TestMetadata("TwoBounds.kt") + public void testTwoBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.kt"); + } + + @Test + @TestMetadata("TwoSuperclasses.kt") + public void testTwoSuperclasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.kt"); + } + + @Test + @TestMetadata("TwoTypeParameters.kt") + public void testTwoTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.kt"); + } + + @Test + @TestMetadata("UseParameterAsUpperBound.kt") + public void testUseParameterAsUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.kt"); + } + + @Test + @TestMetadata("UseParameterInUpperBound.kt") + public void testUseParameterInUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.kt"); + } + + @Test + @TestMetadata("UseParameterInUpperBoundWithKotlinSignature.kt") + public void testUseParameterInUpperBoundWithKotlinSignature() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library") + @TestDataPath("$PROJECT_ROOT") + public class Library { + @Test + public void testAllFilesPresentInLibrary() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("LoadIterable.kt") + public void testLoadIterable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/LoadIterable.kt"); + } + + @Test + @TestMetadata("LoadIterator.kt") + public void testLoadIterator() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/LoadIterator.kt"); + } + + @Test + @TestMetadata("Max.kt") + public void testMax() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/Max.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality") + @TestDataPath("$PROJECT_ROOT") + public class Modality { + @Test + public void testAllFilesPresentInModality() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ModalityOfFakeOverrides.kt") + public void testModalityOfFakeOverrides() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality/ModalityOfFakeOverrides.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull") + @TestDataPath("$PROJECT_ROOT") + public class NotNull { + @Test + public void testAllFilesPresentInNotNull() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("NotNullField.kt") + public void testNotNullField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullField.kt"); + } + + @Test + @TestMetadata("NotNullIntArray.kt") + public void testNotNullIntArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullIntArray.kt"); + } + + @Test + @TestMetadata("NotNullMethod.kt") + public void testNotNullMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullMethod.kt"); + } + + @Test + @TestMetadata("NotNullObjectArray.kt") + public void testNotNullObjectArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullObjectArray.kt"); + } + + @Test + @TestMetadata("NotNullParameter.kt") + public void testNotNullParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullParameter.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun") + @TestDataPath("$PROJECT_ROOT") + public class Fun { + @Test + public void testAllFilesPresentInFun() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Assert.kt") + public void testAssert() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/Assert.kt"); + } + + @Test + @TestMetadata("DeclaredMemberOverridesDelegated.kt") + public void testDeclaredMemberOverridesDelegated() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/DeclaredMemberOverridesDelegated.kt"); + } + + @Test + @TestMetadata("InfixKeyword.kt") + public void testInfixKeyword() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InfixKeyword.kt"); + } + + @Test + @TestMetadata("InheritMethodsDifferentReturnTypesAndVisibilities.kt") + public void testInheritMethodsDifferentReturnTypesAndVisibilities() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritMethodsDifferentReturnTypesAndVisibilities.kt"); + } + + @Test + @TestMetadata("InheritValAndVar.kt") + public void testInheritValAndVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritValAndVar.kt"); + } + + @Test + @TestMetadata("InheritValsDifferentTypes.kt") + public void testInheritValsDifferentTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritValsDifferentTypes.kt"); + } + + @Test + @TestMetadata("NoSamAdapter.kt") + public void testNoSamAdapter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/NoSamAdapter.kt"); + } + + @Test + @TestMetadata("NoSamConstructor.kt") + public void testNoSamConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/NoSamConstructor.kt"); + } + + @Test + @TestMetadata("OperatorKeyword.kt") + public void testOperatorKeyword() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/OperatorKeyword.kt"); + } + + @Test + @TestMetadata("PropagateDeepSubclass.kt") + public void testPropagateDeepSubclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/PropagateDeepSubclass.kt"); + } + + @Test + @TestMetadata("PropagateSubclassOfComparable.kt") + public void testPropagateSubclassOfComparable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/PropagateSubclassOfComparable.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables") + @TestDataPath("$PROJECT_ROOT") + public class GenericWithTypeVariables { + @Test + public void testAllFilesPresentInGenericWithTypeVariables() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("FunGenericParam.kt") + public void testFunGenericParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunGenericParam.kt"); + } + + @Test + @TestMetadata("FunParamParam.kt") + public void testFunParamParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamParam.kt"); + } + + @Test + @TestMetadata("FunParamParamErased.kt") + public void testFunParamParamErased() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamParamErased.kt"); + } + + @Test + @TestMetadata("FunParamReferencesParam.kt") + public void testFunParamReferencesParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamReferencesParam.kt"); + } + + @Test + @TestMetadata("FunParamTwoUpperBounds.kt") + public void testFunParamTwoUpperBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamTwoUpperBounds.kt"); + } + + @Test + @TestMetadata("FunParamUpperClassBound.kt") + public void testFunParamUpperClassBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassBound.kt"); + } + + @Test + @TestMetadata("FunParamUpperClassInterfaceBound.kt") + public void testFunParamUpperClassInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassInterfaceBound.kt"); + } + + @Test + @TestMetadata("FunParamUpperInterfaceBound.kt") + public void testFunParamUpperInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperInterfaceBound.kt"); + } + + @Test + @TestMetadata("FunParamVaragParam.kt") + public void testFunParamVaragParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamVaragParam.kt"); + } + + @Test + @TestMetadata("FunTwoTypeParams.kt") + public void testFunTwoTypeParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunTwoTypeParams.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables") + @TestDataPath("$PROJECT_ROOT") + public class GenericWithoutTypeVariables { + @Test + public void testAllFilesPresentInGenericWithoutTypeVariables() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("FunClassParamNotNull.kt") + public void testFunClassParamNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNotNull.kt"); + } + + @Test + @TestMetadata("FunClassParamNullable.kt") + public void testFunClassParamNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNullable.kt"); + } + + @Test + @TestMetadata("FunParamNullable.kt") + public void testFunParamNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunParamNullable.kt"); + } + + @Test + @TestMetadata("ReturnTypeClassParamNotNull.kt") + public void testReturnTypeClassParamNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNotNull.kt"); + } + + @Test + @TestMetadata("ReturnTypeClassParamNullable.kt") + public void testReturnTypeClassParamNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNullable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric") + @TestDataPath("$PROJECT_ROOT") + public class NonGeneric { + @Test + public void testAllFilesPresentInNonGeneric() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassFun.kt") + public void testClassFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFun.kt"); + } + + @Test + @TestMetadata("ClassFunGetFoo.kt") + public void testClassFunGetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunGetFoo.kt"); + } + + @Test + @TestMetadata("ClassFunGetFooSetFoo.kt") + public void testClassFunGetFooSetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunGetFooSetFoo.kt"); + } + + @Test + @TestMetadata("ClassFunSetFoo.kt") + public void testClassFunSetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunSetFoo.kt"); + } + + @Test + @TestMetadata("ExtFun.kt") + public void testExtFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ExtFun.kt"); + } + + @Test + @TestMetadata("ExtFunInClass.kt") + public void testExtFunInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ExtFunInClass.kt"); + } + + @Test + @TestMetadata("FunDefaultArg.kt") + public void testFunDefaultArg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunDefaultArg.kt"); + } + + @Test + @TestMetadata("FunParamNotNull.kt") + public void testFunParamNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunParamNotNull.kt"); + } + + @Test + @TestMetadata("FunVarargInt.kt") + public void testFunVarargInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunVarargInt.kt"); + } + + @Test + @TestMetadata("FunVarargInteger.kt") + public void testFunVarargInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunVarargInteger.kt"); + } + + @Test + @TestMetadata("ModifierAbstract.kt") + public void testModifierAbstract() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ModifierAbstract.kt"); + } + + @Test + @TestMetadata("ModifierOpen.kt") + public void testModifierOpen() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ModifierOpen.kt"); + } + + @Test + @TestMetadata("NsFun.kt") + public void testNsFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/NsFun.kt"); + } + + @Test + @TestMetadata("NsFunGetFoo.kt") + public void testNsFunGetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/NsFunGetFoo.kt"); + } + + @Test + @TestMetadata("ReturnTypeNotNull.kt") + public void testReturnTypeNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ReturnTypeNotNull.kt"); + } + + @Test + @TestMetadata("ReturnTypeNullable.kt") + public void testReturnTypeNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ReturnTypeNullable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/vararg") + @TestDataPath("$PROJECT_ROOT") + public class Vararg { + @Test + public void testAllFilesPresentInVararg() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("nonLastVararg.kt") + public void testNonLastVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/nonLastVararg.kt"); + } + + @Test + @TestMetadata("VarargInt.kt") + public void testVarargInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/VarargInt.kt"); + } + + @Test + @TestMetadata("VarargString.kt") + public void testVarargString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/VarargString.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineFunction.kt") + public void testInlineFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/inline/inlineFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/memberOrder") + @TestDataPath("$PROJECT_ROOT") + public class MemberOrder { + @Test + public void testAllFilesPresentInMemberOrder() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/memberOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callablesNameClash.kt") + public void testCallablesNameClash() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/callablesNameClash.kt"); + } + + @Test + @TestMetadata("extensionMembers.kt") + public void testExtensionMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/extensionMembers.kt"); + } + + @Test + @TestMetadata("extensionPropertiesNameClash.kt") + public void testExtensionPropertiesNameClash() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/extensionPropertiesNameClash.kt"); + } + + @Test + @TestMetadata("innerClasses.kt") + public void testInnerClasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/innerClasses.kt"); + } + + @Test + @TestMetadata("topLevelCallables.kt") + public void testTopLevelCallables() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/topLevelCallables.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/nestedClasses") + @TestDataPath("$PROJECT_ROOT") + public class NestedClasses { + @Test + public void testAllFilesPresentInNestedClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/nestedClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deepInnerGeneric.kt") + public void testDeepInnerGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/nestedClasses/deepInnerGeneric.kt"); + } + + @Test + @TestMetadata("innerClassReferencesOuterTP.kt") + public void testInnerClassReferencesOuterTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/nestedClasses/innerClassReferencesOuterTP.kt"); + } + + @Test + @TestMetadata("membersReferenceOuterTP.kt") + public void testMembersReferenceOuterTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/nestedClasses/membersReferenceOuterTP.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/platformTypes") + @TestDataPath("$PROJECT_ROOT") + public class PlatformTypes { + @Test + public void testAllFilesPresentInPlatformTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("notnullTypeArgument.kt") + public void testNotnullTypeArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/platformTypes/notnullTypeArgument.kt"); + } + + @Test + @TestMetadata("nullableTypeArgument.kt") + public void testNullableTypeArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/platformTypes/nullableTypeArgument.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/prop") + @TestDataPath("$PROJECT_ROOT") + public class Prop { + @Test + public void testAllFilesPresentInProp() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/prop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassVal.kt") + public void testClassVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassVal.kt"); + } + + @Test + @TestMetadata("ClassValAbstract.kt") + public void testClassValAbstract() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassValAbstract.kt"); + } + + @Test + @TestMetadata("ClassVar.kt") + public void testClassVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassVar.kt"); + } + + @Test + @TestMetadata("CollectionSize.kt") + public void testCollectionSize() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/CollectionSize.kt"); + } + + @Test + @TestMetadata("Const.kt") + public void testConst() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/Const.kt"); + } + + @Test + @TestMetadata("Constants.kt") + public void testConstants() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/Constants.kt"); + } + + @Test + @TestMetadata("ExtValClass.kt") + public void testExtValClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValClass.kt"); + } + + @Test + @TestMetadata("ExtValInClass.kt") + public void testExtValInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValInClass.kt"); + } + + @Test + @TestMetadata("ExtValInt.kt") + public void testExtValInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValInt.kt"); + } + + @Test + @TestMetadata("ExtValIntCharSequence.kt") + public void testExtValIntCharSequence() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntCharSequence.kt"); + } + + @Test + @TestMetadata("ExtValIntCharSequenceQ.kt") + public void testExtValIntCharSequenceQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntCharSequenceQ.kt"); + } + + @Test + @TestMetadata("ExtValIntListQOfIntInClass.kt") + public void testExtValIntListQOfIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntListQOfIntInClass.kt"); + } + + @Test + @TestMetadata("ExtValIntTInClass.kt") + public void testExtValIntTInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntTInClass.kt"); + } + + @Test + @TestMetadata("ExtValIntTQInClass.kt") + public void testExtValIntTQInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntTQInClass.kt"); + } + + @Test + @TestMetadata("ExtValTIntInClass.kt") + public void testExtValTIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValTIntInClass.kt"); + } + + @Test + @TestMetadata("ExtVarClass.kt") + public void testExtVarClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarClass.kt"); + } + + @Test + @TestMetadata("ExtVarInClass.kt") + public void testExtVarInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarInClass.kt"); + } + + @Test + @TestMetadata("ExtVarInt.kt") + public void testExtVarInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarInt.kt"); + } + + @Test + @TestMetadata("ExtVarIntTInClass.kt") + public void testExtVarIntTInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarIntTInClass.kt"); + } + + @Test + @TestMetadata("ExtVarIntTQInClass.kt") + public void testExtVarIntTQInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarIntTQInClass.kt"); + } + + @Test + @TestMetadata("ExtVarMapPQInt.kt") + public void testExtVarMapPQInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarMapPQInt.kt"); + } + + @Test + @TestMetadata("ExtVarTIntInClass.kt") + public void testExtVarTIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarTIntInClass.kt"); + } + + @Test + @TestMetadata("ExtVarTQIntInClass.kt") + public void testExtVarTQIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarTQIntInClass.kt"); + } + + @Test + @TestMetadata("ExtVarl.kt") + public void testExtVarl() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarl.kt"); + } + + @Test + @TestMetadata("nonConstValWithConstantValueAttribute.kt") + public void testNonConstValWithConstantValueAttribute() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/nonConstValWithConstantValueAttribute.kt"); + } + + @Test + @TestMetadata("NsVal.kt") + public void testNsVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/NsVal.kt"); + } + + @Test + @TestMetadata("NsVar.kt") + public void testNsVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/NsVar.kt"); + } + + @Test + @TestMetadata("OverrideClassVal.kt") + public void testOverrideClassVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/OverrideClassVal.kt"); + } + + @Test + @TestMetadata("OverrideTraitVal.kt") + public void testOverrideTraitVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/OverrideTraitVal.kt"); + } + + @Test + @TestMetadata("PropFromSuperclass.kt") + public void testPropFromSuperclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/PropFromSuperclass.kt"); + } + + @Test + @TestMetadata("TraitFinalVar.kt") + public void testTraitFinalVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/TraitFinalVar.kt"); + } + + @Test + @TestMetadata("TraitOpenVal.kt") + public void testTraitOpenVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/TraitOpenVal.kt"); + } + + @Test + @TestMetadata("VarDelegationToTraitImpl.kt") + public void testVarDelegationToTraitImpl() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/VarDelegationToTraitImpl.kt"); + } + + @Test + @TestMetadata("VarWithDelegated.kt") + public void testVarWithDelegated() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/VarWithDelegated.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors") + @TestDataPath("$PROJECT_ROOT") + public class DefaultAccessors { + @Test + public void testAllFilesPresentInDefaultAccessors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassVal.kt") + public void testClassVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVal.kt"); + } + + @Test + @TestMetadata("ClassValParams.kt") + public void testClassValParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassValParams.kt"); + } + + @Test + @TestMetadata("ClassValWithGet.kt") + public void testClassValWithGet() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassValWithGet.kt"); + } + + @Test + @TestMetadata("ClassVar.kt") + public void testClassVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVar.kt"); + } + + @Test + @TestMetadata("ClassVarModality.kt") + public void testClassVarModality() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarModality.kt"); + } + + @Test + @TestMetadata("ClassVarParams.kt") + public void testClassVarParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarParams.kt"); + } + + @Test + @TestMetadata("ClassVarWithGet.kt") + public void testClassVarWithGet() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithGet.kt"); + } + + @Test + @TestMetadata("ClassVarWithSet.kt") + public void testClassVarWithSet() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithSet.kt"); + } + + @Test + @TestMetadata("ExtValLong.kt") + public void testExtValLong() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtValLong.kt"); + } + + @Test + @TestMetadata("ExtVarLong.kt") + public void testExtVarLong() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtVarLong.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/type") + @TestDataPath("$PROJECT_ROOT") + public class Type { + @Test + public void testAllFilesPresentInType() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/type"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Any.kt") + public void testAny() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Any.kt"); + } + + @Test + @TestMetadata("AnyQ.kt") + public void testAnyQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/AnyQ.kt"); + } + + @Test + @TestMetadata("ArrayOfInNumber.kt") + public void testArrayOfInNumber() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInNumber.kt"); + } + + @Test + @TestMetadata("ArrayOfInt.kt") + public void testArrayOfInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInt.kt"); + } + + @Test + @TestMetadata("ArrayOfInteger.kt") + public void testArrayOfInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInteger.kt"); + } + + @Test + @TestMetadata("ArrayOfOutNumber.kt") + public void testArrayOfOutNumber() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfOutNumber.kt"); + } + + @Test + @TestMetadata("ArrayOfOutT.kt") + public void testArrayOfOutT() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfOutT.kt"); + } + + @Test + @TestMetadata("ArrayOfString.kt") + public void testArrayOfString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfString.kt"); + } + + @Test + @TestMetadata("Function1IntString.kt") + public void testFunction1IntString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Function1IntString.kt"); + } + + @Test + @TestMetadata("Int.kt") + public void testInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Int.kt"); + } + + @Test + @TestMetadata("IntArray.kt") + public void testIntArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/IntArray.kt"); + } + + @Test + @TestMetadata("IntQ.kt") + public void testIntQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/IntQ.kt"); + } + + @Test + @TestMetadata("jlInteger.kt") + public void testJlInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlInteger.kt"); + } + + @Test + @TestMetadata("jlIntegerQ.kt") + public void testJlIntegerQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlIntegerQ.kt"); + } + + @Test + @TestMetadata("jlNumber.kt") + public void testJlNumber() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlNumber.kt"); + } + + @Test + @TestMetadata("jlObject.kt") + public void testJlObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlObject.kt"); + } + + @Test + @TestMetadata("jlObjectQ.kt") + public void testJlObjectQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlObjectQ.kt"); + } + + @Test + @TestMetadata("jlString.kt") + public void testJlString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlString.kt"); + } + + @Test + @TestMetadata("jlStringQ.kt") + public void testJlStringQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlStringQ.kt"); + } + + @Test + @TestMetadata("ListOfAny.kt") + public void testListOfAny() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfAny.kt"); + } + + @Test + @TestMetadata("ListOfAnyQ.kt") + public void testListOfAnyQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfAnyQ.kt"); + } + + @Test + @TestMetadata("ListOfStar.kt") + public void testListOfStar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfStar.kt"); + } + + @Test + @TestMetadata("ListOfString.kt") + public void testListOfString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfString.kt"); + } + + @Test + @TestMetadata("ListOfjlString.kt") + public void testListOfjlString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfjlString.kt"); + } + + @Test + @TestMetadata("Nothing.kt") + public void testNothing() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Nothing.kt"); + } + + @Test + @TestMetadata("NothingQ.kt") + public void testNothingQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/NothingQ.kt"); + } + + @Test + @TestMetadata("platform.kt") + public void testPlatform() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/platform.kt"); + } + + @Test + @TestMetadata("String.kt") + public void testString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/String.kt"); + } + + @Test + @TestMetadata("StringQ.kt") + public void testStringQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/StringQ.kt"); + } + + @Test + @TestMetadata("SuspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/SuspendFunction.kt"); + } + + @Test + @TestMetadata("Unit.kt") + public void testUnit() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Unit.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/typealias") + @TestDataPath("$PROJECT_ROOT") + public class Typealias { + @Test + public void testAllFilesPresentInTypealias() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/typealias"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Annotations.kt") + public void testAnnotations() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/Annotations.kt"); + } + + @Test + @TestMetadata("Basic.kt") + public void testBasic() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/Basic.kt"); + } + + @Test + @TestMetadata("Generic.kt") + public void testGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/Generic.kt"); + } + + @Test + @TestMetadata("TypeAliasToExtension.kt") + public void testTypeAliasToExtension() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/TypeAliasToExtension.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/visibility") + @TestDataPath("$PROJECT_ROOT") + public class Visibility { + @Test + public void testAllFilesPresentInVisibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/visibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("InternalClass.kt") + public void testInternalClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalClass.kt"); + } + + @Test + @TestMetadata("InternalConstructor.kt") + public void testInternalConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalConstructor.kt"); + } + + @Test + @TestMetadata("InternalTopLevelMembers.kt") + public void testInternalTopLevelMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalTopLevelMembers.kt"); + } + + @Test + @TestMetadata("PrivateClass.kt") + public void testPrivateClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateClass.kt"); + } + + @Test + @TestMetadata("PrivateClassMembers.kt") + public void testPrivateClassMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateClassMembers.kt"); + } + + @Test + @TestMetadata("PrivateToThis.kt") + public void testPrivateToThis() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateToThis.kt"); + } + + @Test + @TestMetadata("PrivateTopLevelFun.kt") + public void testPrivateTopLevelFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateTopLevelFun.kt"); + } + + @Test + @TestMetadata("PrivateTopLevelVal.kt") + public void testPrivateTopLevelVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateTopLevelVal.kt"); + } + + @Test + @TestMetadata("PropertyInConstructor.kt") + public void testPropertyInConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PropertyInConstructor.kt"); + } + + @Test + @TestMetadata("PropertyInConstructorExplicitVisibility.kt") + public void testPropertyInConstructorExplicitVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PropertyInConstructorExplicitVisibility.kt"); + } + + @Test + @TestMetadata("TopLevelVarWithPrivateSetter.kt") + public void testTopLevelVarWithPrivateSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib") + @TestDataPath("$PROJECT_ROOT") + public class CompiledKotlinWithStdlib { + @Test + public void testAllFilesPresentInCompiledKotlinWithStdlib() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("AnnotationInAnnotationArguments.kt") + public void testAnnotationInAnnotationArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/AnnotationInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("ConstValInMultifileClass.kt") + public void testConstValInMultifileClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/ConstValInMultifileClass.kt"); + } + + @Test + @TestMetadata("EnumArgumentWithCustomToString.kt") + public void testEnumArgumentWithCustomToString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/EnumArgumentWithCustomToString.kt"); + } + + @Test + @TestMetadata("JvmFieldInInterfaceCompanion.kt") + public void testJvmFieldInInterfaceCompanion() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/JvmFieldInInterfaceCompanion.kt"); + } + + @Test + @TestMetadata("WithUnsignedTypeParameters.kt") + public void testWithUnsignedTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/WithUnsignedTypeParameters.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/classMembers") + @TestDataPath("$PROJECT_ROOT") + public class ClassMembers { + @Test + public void testAllFilesPresentInClassMembers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/classMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("EnumEntry.kt") + public void testEnumEntry() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/classMembers/EnumEntry.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/parameters") + @TestDataPath("$PROJECT_ROOT") + public class Parameters { + @Test + public void testAllFilesPresentInParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/parameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("EnumConstructor.kt") + public void testEnumConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/parameters/EnumConstructor.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/class") + @TestDataPath("$PROJECT_ROOT") + public class Class { + @Test + public void testAllFilesPresentInClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/class"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("EnumWithGenericConstructorParameter.kt") + public void testEnumWithGenericConstructorParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithGenericConstructorParameter.kt"); + } + + @Test + @TestMetadata("EnumWithPrimitiveConstructorParameter.kt") + public void testEnumWithPrimitiveConstructorParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithPrimitiveConstructorParameter.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts") + @TestDataPath("$PROJECT_ROOT") + public class Contracts { + @Test + public void testAllFilesPresentInContracts() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callsEffect.kt") + public void testCallsEffect() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/callsEffect.kt"); + } + + @Test + @TestMetadata("contractWithRefiedGeneric.kt") + public void testContractWithRefiedGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractWithRefiedGeneric.kt"); + } + + @Test + @TestMetadata("contractsOnMembers.kt") + public void testContractsOnMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractsOnMembers.kt"); + } + + @Test + @TestMetadata("deeplyNestedExpression.kt") + public void testDeeplyNestedExpression() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/deeplyNestedExpression.kt"); + } + + @Test + @TestMetadata("embedding.kt") + public void testEmbedding() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/embedding.kt"); + } + + @Test + @TestMetadata("fromStandardKt.kt") + public void testFromStandardKt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/fromStandardKt.kt"); + } + + @Test + @TestMetadata("isInstancePredicate.kt") + public void testIsInstancePredicate() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/isInstancePredicate.kt"); + } + + @Test + @TestMetadata("logicOperators.kt") + public void testLogicOperators() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/logicOperators.kt"); + } + + @Test + @TestMetadata("multieffectContracts.kt") + public void testMultieffectContracts() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/multieffectContracts.kt"); + } + + @Test + @TestMetadata("mutualRecursion.kt") + public void testMutualRecursion() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/mutualRecursion.kt"); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/recursion.kt"); + } + + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/withReceiver.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/coroutines") + @TestDataPath("$PROJECT_ROOT") + public class Coroutines { + @Test + public void testAllFilesPresentInCoroutines() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotatedSuspendFun.kt") + public void testAnnotatedSuspendFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/coroutines/annotatedSuspendFun.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/enum") + @TestDataPath("$PROJECT_ROOT") + public class Enum { + @Test + public void testAllFilesPresentInEnum() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("enumVisibility.kt") + public void testEnumVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumVisibility.kt"); + } + + @Test + @TestMetadata("enumWithConstuctor.kt") + public void testEnumWithConstuctor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumWithConstuctor.kt"); + } + + @Test + @TestMetadata("enumWithInnerClasses.kt") + public void testEnumWithInnerClasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumWithInnerClasses.kt"); + } + + @Test + @TestMetadata("innerEnum.kt") + public void testInnerEnum() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/innerEnum.kt"); + } + + @Test + @TestMetadata("innerEnumExistingClassObject.kt") + public void testInnerEnumExistingClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/innerEnumExistingClassObject.kt"); + } + + @Test + @TestMetadata("simpleEnum.kt") + public void testSimpleEnum() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/simpleEnum.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/fromLoadJava") + @TestDataPath("$PROJECT_ROOT") + public class FromLoadJava { + @Test + public void testAllFilesPresentInFromLoadJava() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/fromLoadJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/fromLoadJava/enum.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/memberOrder") + @TestDataPath("$PROJECT_ROOT") + public class MemberOrder { + @Test + public void testAllFilesPresentInMemberOrder() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/memberOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("enumEntries.kt") + public void testEnumEntries() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/memberOrder/enumEntries.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability") + @TestDataPath("$PROJECT_ROOT") + public class Mutability { + @Test + public void testAllFilesPresentInMutability() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("LoadIterable.kt") + public void testLoadIterable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterable.kt"); + } + + @Test + @TestMetadata("LoadIterableWithConflict.kt") + public void testLoadIterableWithConflict() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithConflict.kt"); + } + + @Test + @TestMetadata("LoadIterableWithNullability.kt") + public void testLoadIterableWithNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithNullability.kt"); + } + + @Test + @TestMetadata("LoadIterableWithPropagation.kt") + public void testLoadIterableWithPropagation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithPropagation.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames") + @TestDataPath("$PROJECT_ROOT") + public class PlatformNames { + @Test + public void testAllFilesPresentInPlatformNames() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("functionName.kt") + public void testFunctionName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames/functionName.kt"); + } + } + } +} diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLoadK2CompiledKotlinGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLoadK2CompiledKotlinGenerated.java new file mode 100644 index 00000000000..e647b196cca --- /dev/null +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLoadK2CompiledKotlinGenerated.java @@ -0,0 +1,3530 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.test.runners; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; + +import java.io.File; +import java.util.regex.Pattern; + +/** This class is generated by {@link org.jetbrains.kotlin.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +public class FirLoadK2CompiledKotlinGenerated extends AbstractFirLoadK2CompiledKotlin { + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin") + @TestDataPath("$PROJECT_ROOT") + public class CompiledKotlin { + @Test + public void testAllFilesPresentInCompiledKotlin() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("AnnotatedAnnotation.kt") + public void testAnnotatedAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotatedAnnotation.kt"); + } + + @Test + @TestMetadata("AnnotatedMethod.kt") + public void testAnnotatedMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotatedMethod.kt"); + } + + @Test + @TestMetadata("AnnotationInArray.kt") + public void testAnnotationInArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotationInArray.kt"); + } + + @Test + @TestMetadata("AnnotationOnTypeParameter.kt") + public void testAnnotationOnTypeParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotationOnTypeParameter.kt"); + } + + @Test + @TestMetadata("ClassLiteralArguments.kt") + public void testClassLiteralArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/ClassLiteralArguments.kt"); + } + + @Test + @TestMetadata("MultiDimensionalArrayMethod.kt") + public void testMultiDimensionalArrayMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/MultiDimensionalArrayMethod.kt"); + } + + @Test + @TestMetadata("PrimitiveArrayArguments.kt") + public void testPrimitiveArrayArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/PrimitiveArrayArguments.kt"); + } + + @Test + @TestMetadata("SimpleAnnotation.kt") + public void testSimpleAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/SimpleAnnotation.kt"); + } + + @Test + @TestMetadata("TargetedAnnotation.kt") + public void testTargetedAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/TargetedAnnotation.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/classMembers") + @TestDataPath("$PROJECT_ROOT") + public class ClassMembers { + @Test + public void testAllFilesPresentInClassMembers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/classMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassObjectPropertyField.kt") + public void testClassObjectPropertyField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/ClassObjectPropertyField.kt"); + } + + @Test + @TestMetadata("Constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Constructor.kt"); + } + + @Test + @TestMetadata("DelegatedProperty.kt") + public void testDelegatedProperty() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/DelegatedProperty.kt"); + } + + @Test + @TestMetadata("EnumArgument.kt") + public void testEnumArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/EnumArgument.kt"); + } + + @Test + @TestMetadata("Function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Function.kt"); + } + + @Test + @TestMetadata("Getter.kt") + public void testGetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Getter.kt"); + } + + @Test + @TestMetadata("HiddenConstructorWithInlineClassParameters.kt") + public void testHiddenConstructorWithInlineClassParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.kt"); + } + + @Test + @TestMetadata("PropertyField.kt") + public void testPropertyField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/PropertyField.kt"); + } + + @Test + @TestMetadata("PublishedApiAnnotationOnInlineClassCosntructor.kt") + public void testPublishedApiAnnotationOnInlineClassCosntructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/PublishedApiAnnotationOnInlineClassCosntructor.kt"); + } + + @Test + @TestMetadata("Setter.kt") + public void testSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Setter.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/classes") + @TestDataPath("$PROJECT_ROOT") + public class Classes { + @Test + public void testAllFilesPresentInClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("AnnotationInClassObject.kt") + public void testAnnotationInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/AnnotationInClassObject.kt"); + } + + @Test + @TestMetadata("ClassInClassObject.kt") + public void testClassInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassInClassObject.kt"); + } + + @Test + @TestMetadata("ClassObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassObject.kt"); + } + + @Test + @TestMetadata("ClassObjectInStaticNestedClass.kt") + public void testClassObjectInStaticNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassObjectInStaticNestedClass.kt"); + } + + @Test + @TestMetadata("DataClass.kt") + public void testDataClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/DataClass.kt"); + } + + @Test + @TestMetadata("Deprecated.kt") + public void testDeprecated() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.kt"); + } + + @Test + @TestMetadata("DollarsInAnnotationName.kt") + public void testDollarsInAnnotationName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/DollarsInAnnotationName.kt"); + } + + @Test + @TestMetadata("EnumArgument.kt") + public void testEnumArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/EnumArgument.kt"); + } + + @Test + @TestMetadata("MultipleAnnotations.kt") + public void testMultipleAnnotations() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/MultipleAnnotations.kt"); + } + + @Test + @TestMetadata("NestedAnnotation.kt") + public void testNestedAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedAnnotation.kt"); + } + + @Test + @TestMetadata("NestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.kt"); + } + + @Test + @TestMetadata("Retention.kt") + public void testRetention() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Retention.kt"); + } + + @Test + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Simple.kt"); + } + + @Test + @TestMetadata("WithArgument.kt") + public void testWithArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/WithArgument.kt"); + } + + @Test + @TestMetadata("WithMultipleArguments.kt") + public void testWithMultipleArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/WithMultipleArguments.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers") + @TestDataPath("$PROJECT_ROOT") + public class PackageMembers { + @Test + public void testAllFilesPresentInPackageMembers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("DelegatedProperty.kt") + public void testDelegatedProperty() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/DelegatedProperty.kt"); + } + + @Test + @TestMetadata("EnumArgument.kt") + public void testEnumArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/EnumArgument.kt"); + } + + @Test + @TestMetadata("EnumArrayArgument.kt") + public void testEnumArrayArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/EnumArrayArgument.kt"); + } + + @Test + @TestMetadata("Function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Function.kt"); + } + + @Test + @TestMetadata("Getter.kt") + public void testGetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Getter.kt"); + } + + @Test + @TestMetadata("PropertyField.kt") + public void testPropertyField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/PropertyField.kt"); + } + + @Test + @TestMetadata("Setter.kt") + public void testSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Setter.kt"); + } + + @Test + @TestMetadata("StringArrayArgument.kt") + public void testStringArrayArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/StringArrayArgument.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/parameters") + @TestDataPath("$PROJECT_ROOT") + public class Parameters { + @Test + public void testAllFilesPresentInParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/parameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/Constructor.kt"); + } + + @Test + @TestMetadata("ExtensionFunction.kt") + public void testExtensionFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionFunction.kt"); + } + + @Test + @TestMetadata("ExtensionFunctionInClass.kt") + public void testExtensionFunctionInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionFunctionInClass.kt"); + } + + @Test + @TestMetadata("ExtensionPropertySetter.kt") + public void testExtensionPropertySetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionPropertySetter.kt"); + } + + @Test + @TestMetadata("FunctionInClass.kt") + public void testFunctionInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/FunctionInClass.kt"); + } + + @Test + @TestMetadata("FunctionInTrait.kt") + public void testFunctionInTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/FunctionInTrait.kt"); + } + + @Test + @TestMetadata("InnerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.kt"); + } + + @Test + @TestMetadata("ManyAnnotations.kt") + public void testManyAnnotations() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ManyAnnotations.kt"); + } + + @Test + @TestMetadata("PropertySetterInClass.kt") + public void testPropertySetterInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/PropertySetterInClass.kt"); + } + + @Test + @TestMetadata("TopLevelFunction.kt") + public void testTopLevelFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/TopLevelFunction.kt"); + } + + @Test + @TestMetadata("TopLevelPropertySetter.kt") + public void testTopLevelPropertySetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/TopLevelPropertySetter.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields") + @TestDataPath("$PROJECT_ROOT") + public class PropertiesWithoutBackingFields { + @Test + public void testAllFilesPresentInPropertiesWithoutBackingFields() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Class.kt"); + } + + @Test + @TestMetadata("ClassObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ClassObject.kt"); + } + + @Test + @TestMetadata("ExtensionsWithSameNameClass.kt") + public void testExtensionsWithSameNameClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.kt"); + } + + @Test + @TestMetadata("ExtensionsWithSameNamePackage.kt") + public void testExtensionsWithSameNamePackage() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.kt"); + } + + @Test + @TestMetadata("NestedTrait.kt") + public void testNestedTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/NestedTrait.kt"); + } + + @Test + @TestMetadata("TopLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/TopLevel.kt"); + } + + @Test + @TestMetadata("Trait.kt") + public void testTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Trait.kt"); + } + + @Test + @TestMetadata("TraitClassObject.kt") + public void testTraitClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/TraitClassObject.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/types") + @TestDataPath("$PROJECT_ROOT") + public class Types { + @Test + public void testAllFilesPresentInTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/types"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassLiteralArgument.kt") + public void testClassLiteralArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/ClassLiteralArgument.kt"); + } + + @Test + @TestMetadata("DefinitelyNotNull.kt") + public void testDefinitelyNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/DefinitelyNotNull.kt"); + } + + @Test + @TestMetadata("ReceiverParameter.kt") + public void testReceiverParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/ReceiverParameter.kt"); + } + + @Test + @TestMetadata("SimpleTypeAnnotation.kt") + public void testSimpleTypeAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SimpleTypeAnnotation.kt"); + } + + @Test + @TestMetadata("SourceRetention.kt") + public void testSourceRetention() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SourceRetention.kt"); + } + + @Test + @TestMetadata("SupertypesAndBounds.kt") + public void testSupertypesAndBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SupertypesAndBounds.kt"); + } + + @Test + @TestMetadata("TypeAnnotationWithArguments.kt") + public void testTypeAnnotationWithArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeAnnotationWithArguments.kt"); + } + + @Test + @TestMetadata("TypeArgument.kt") + public void testTypeArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeArgument.kt"); + } + + @Test + @TestMetadata("TypeParameterAnnotation.kt") + public void testTypeParameterAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeParameterAnnotation.kt"); + } + + @Test + @TestMetadata("TypeParameterAnnotationWithArguments.kt") + public void testTypeParameterAnnotationWithArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeParameterAnnotationWithArguments.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget") + @TestDataPath("$PROJECT_ROOT") + public class WithUseSiteTarget { + @Test + public void testAllFilesPresentInWithUseSiteTarget() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("DelegateTarget.kt") + public void testDelegateTarget() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/DelegateTarget.kt"); + } + + @Test + @TestMetadata("FieldTarget.kt") + public void testFieldTarget() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/FieldTarget.kt"); + } + + @Test + @TestMetadata("PropertyAndAccessor.kt") + public void testPropertyAndAccessor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.kt"); + } + + @Test + @TestMetadata("ReceiverTarget.kt") + public void testReceiverTarget() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/ReceiverTarget.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/class") + @TestDataPath("$PROJECT_ROOT") + public class Class { + @Test + public void testAllFilesPresentInClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/class"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/Class.kt"); + } + + @Test + @TestMetadata("ClassInParam.kt") + public void testClassInParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassInParam.kt"); + } + + @Test + @TestMetadata("ClassInnerClass.kt") + public void testClassInnerClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassInnerClass.kt"); + } + + @Test + @TestMetadata("ClassMemberConflict.kt") + public void testClassMemberConflict() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassMemberConflict.kt"); + } + + @Test + @TestMetadata("ClassOutParam.kt") + public void testClassOutParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassOutParam.kt"); + } + + @Test + @TestMetadata("ClassParam.kt") + public void testClassParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParam.kt"); + } + + @Test + @TestMetadata("ClassParamReferencesParam.kt") + public void testClassParamReferencesParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesParam.kt"); + } + + @Test + @TestMetadata("ClassParamReferencesParam2.kt") + public void testClassParamReferencesParam2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesParam2.kt"); + } + + @Test + @TestMetadata("ClassParamReferencesSelf.kt") + public void testClassParamReferencesSelf() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesSelf.kt"); + } + + @Test + @TestMetadata("ClassParamUpperClassBound.kt") + public void testClassParamUpperClassBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperClassBound.kt"); + } + + @Test + @TestMetadata("ClassParamUpperClassInterfaceBound.kt") + public void testClassParamUpperClassInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperClassInterfaceBound.kt"); + } + + @Test + @TestMetadata("ClassParamUpperInterfaceBound.kt") + public void testClassParamUpperInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperInterfaceBound.kt"); + } + + @Test + @TestMetadata("ClassTwoParams.kt") + public void testClassTwoParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassTwoParams.kt"); + } + + @Test + @TestMetadata("ClassTwoParams2.kt") + public void testClassTwoParams2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassTwoParams2.kt"); + } + + @Test + @TestMetadata("FunInterface.kt") + public void testFunInterface() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/FunInterface.kt"); + } + + @Test + @TestMetadata("InheritClassSimple.kt") + public void testInheritClassSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritClassSimple.kt"); + } + + @Test + @TestMetadata("InheritClassWithParam.kt") + public void testInheritClassWithParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritClassWithParam.kt"); + } + + @Test + @TestMetadata("InheritSubstitutedMethod.kt") + public void testInheritSubstitutedMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritSubstitutedMethod.kt"); + } + + @Test + @TestMetadata("InheritTraitWithFunctionParam.kt") + public void testInheritTraitWithFunctionParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritTraitWithFunctionParam.kt"); + } + + @Test + @TestMetadata("InheritTraitWithParam.kt") + public void testInheritTraitWithParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritTraitWithParam.kt"); + } + + @Test + @TestMetadata("InnerClassExtendInnerClass.kt") + public void testInnerClassExtendInnerClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InnerClassExtendInnerClass.kt"); + } + + @Test + @TestMetadata("InnerGenericClass.kt") + public void testInnerGenericClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InnerGenericClass.kt"); + } + + @Test + @TestMetadata("InnerTypes.kt") + public void testInnerTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InnerTypes.kt"); + } + + @Test + @TestMetadata("NamedObject.kt") + public void testNamedObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObject.kt"); + } + + @Test + @TestMetadata("NamedObjectInClass.kt") + public void testNamedObjectInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInClass.kt"); + } + + @Test + @TestMetadata("NamedObjectInClassObject.kt") + public void testNamedObjectInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInClassObject.kt"); + } + + @Test + @TestMetadata("NamedObjectInNamedObject.kt") + public void testNamedObjectInNamedObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInNamedObject.kt"); + } + + @Test + @TestMetadata("NamedObjectWithAnotherTopLevelProperty.kt") + public void testNamedObjectWithAnotherTopLevelProperty() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectWithAnotherTopLevelProperty.kt"); + } + + @Test + @TestMetadata("NestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NestedClass.kt"); + } + + @Test + @TestMetadata("NestedClassExtendNestedClass.kt") + public void testNestedClassExtendNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NestedClassExtendNestedClass.kt"); + } + + @Test + @TestMetadata("NestedGenericClass.kt") + public void testNestedGenericClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NestedGenericClass.kt"); + } + + @Test + @TestMetadata("RecursiveGeneric.kt") + public void testRecursiveGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/RecursiveGeneric.kt"); + } + + @Test + @TestMetadata("SealedClass.kt") + public void testSealedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/SealedClass.kt"); + } + + @Test + @TestMetadata("SingleAbstractMethod.kt") + public void testSingleAbstractMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/SingleAbstractMethod.kt"); + } + + @Test + @TestMetadata("Trait.kt") + public void testTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/Trait.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/class/javaBean") + @TestDataPath("$PROJECT_ROOT") + public class JavaBean { + @Test + public void testAllFilesPresentInJavaBean() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/class/javaBean"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("DifferentGetterAndSetter.kt") + public void testDifferentGetterAndSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/DifferentGetterAndSetter.kt"); + } + + @Test + @TestMetadata("JavaBeanAbstractGetter.kt") + public void testJavaBeanAbstractGetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanAbstractGetter.kt"); + } + + @Test + @TestMetadata("JavaBeanVal.kt") + public void testJavaBeanVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVal.kt"); + } + + @Test + @TestMetadata("JavaBeanVar.kt") + public void testJavaBeanVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVar.kt"); + } + + @Test + @TestMetadata("JavaBeanVarOfGenericType.kt") + public void testJavaBeanVarOfGenericType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVarOfGenericType.kt"); + } + + @Test + @TestMetadata("TwoSetters.kt") + public void testTwoSetters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/TwoSetters.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/classFun") + @TestDataPath("$PROJECT_ROOT") + public class ClassFun { + @Test + public void testAllFilesPresentInClassFun() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/classFun"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassInParamUsedInFun.kt") + public void testClassInParamUsedInFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/ClassInParamUsedInFun.kt"); + } + + @Test + @TestMetadata("ClassParamUsedInFun.kt") + public void testClassParamUsedInFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/ClassParamUsedInFun.kt"); + } + + @Test + @TestMetadata("FunDelegationToTraitImpl.kt") + public void testFunDelegationToTraitImpl() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/FunDelegationToTraitImpl.kt"); + } + + @Test + @TestMetadata("FunInParamSuper.kt") + public void testFunInParamSuper() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/FunInParamSuper.kt"); + } + + @Test + @TestMetadata("TraitOpenFun.kt") + public void testTraitOpenFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/TraitOpenFun.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/classObject") + @TestDataPath("$PROJECT_ROOT") + public class ClassObject { + @Test + public void testAllFilesPresentInClassObject() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/classObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassObjectDeclaresVal.kt") + public void testClassObjectDeclaresVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDeclaresVal.kt"); + } + + @Test + @TestMetadata("ClassObjectDeclaresVar.kt") + public void testClassObjectDeclaresVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDeclaresVar.kt"); + } + + @Test + @TestMetadata("ClassObjectDefaultVisibility.kt") + public void testClassObjectDefaultVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.kt"); + } + + @Test + @TestMetadata("ClassObjectExplicitVisibility.kt") + public void testClassObjectExplicitVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExplicitVisibility.kt"); + } + + @Test + @TestMetadata("ClassObjectExtendsTrait.kt") + public void testClassObjectExtendsTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExtendsTrait.kt"); + } + + @Test + @TestMetadata("ClassObjectExtendsTraitWithTP.kt") + public void testClassObjectExtendsTraitWithTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExtendsTraitWithTP.kt"); + } + + @Test + @TestMetadata("classObjectInClassStaticFields.kt") + public void testClassObjectInClassStaticFields() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/classObjectInClassStaticFields.kt"); + } + + @Test + @TestMetadata("classObjectInTraitStaticFields.kt") + public void testClassObjectInTraitStaticFields() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/classObjectInTraitStaticFields.kt"); + } + + @Test + @TestMetadata("ClassObjectPropertyInClass.kt") + public void testClassObjectPropertyInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectPropertyInClass.kt"); + } + + @Test + @TestMetadata("Delegation.kt") + public void testDelegation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/Delegation.kt"); + } + + @Test + @TestMetadata("InnerClassInClassObject.kt") + public void testInnerClassInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/InnerClassInClassObject.kt"); + } + + @Test + @TestMetadata("NamedClassObject.kt") + public void testNamedClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/NamedClassObject.kt"); + } + + @Test + @TestMetadata("SimpleClassObject.kt") + public void testSimpleClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/SimpleClassObject.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/constructor") + @TestDataPath("$PROJECT_ROOT") + public class Constructor { + @Test + public void testAllFilesPresentInConstructor() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Constructor0.kt") + public void testConstructor0() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor0.kt"); + } + + @Test + @TestMetadata("Constructor1.kt") + public void testConstructor1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor1.kt"); + } + + @Test + @TestMetadata("Constructor1WithParamDefaultValue.kt") + public void testConstructor1WithParamDefaultValue() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor1WithParamDefaultValue.kt"); + } + + @Test + @TestMetadata("Constructor2WithOneParamDefaultValue.kt") + public void testConstructor2WithOneParamDefaultValue() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor2WithOneParamDefaultValue.kt"); + } + + @Test + @TestMetadata("ConstructorCollectionParameter.kt") + public void testConstructorCollectionParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorCollectionParameter.kt"); + } + + @Test + @TestMetadata("ConstructorGenericDeep.kt") + public void testConstructorGenericDeep() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericDeep.kt"); + } + + @Test + @TestMetadata("ConstructorGenericSimple.kt") + public void testConstructorGenericSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericSimple.kt"); + } + + @Test + @TestMetadata("ConstructorGenericUpperBound.kt") + public void testConstructorGenericUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericUpperBound.kt"); + } + + @Test + @TestMetadata("ConstructorWithTwoDefArgs.kt") + public void testConstructorWithTwoDefArgs() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoDefArgs.kt"); + } + + @Test + @TestMetadata("ConstructorWithTwoTypeParameters.kt") + public void testConstructorWithTwoTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParameters.kt"); + } + + @Test + @TestMetadata("ConstructorWithTwoTypeParametersAndOneIntValueParameter.kt") + public void testConstructorWithTwoTypeParametersAndOneIntValueParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOneIntValueParameter.kt"); + } + + @Test + @TestMetadata("ConstructorWithTwoTypeParametersAndOnePValueParameter.kt") + public void testConstructorWithTwoTypeParametersAndOnePValueParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOnePValueParameter.kt"); + } + + @Test + @TestMetadata("ConstructorWithTypeParameter.kt") + public void testConstructorWithTypeParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTypeParameter.kt"); + } + + @Test + @TestMetadata("ConstructorWithTypeParametersEAndOnePValueParameter.kt") + public void testConstructorWithTypeParametersEAndOnePValueParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTypeParametersEAndOnePValueParameter.kt"); + } + + @Test + @TestMetadata("InnerClassConstructorWithDefArgs.kt") + public void testInnerClassConstructorWithDefArgs() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/InnerClassConstructorWithDefArgs.kt"); + } + + @Test + @TestMetadata("PrivateConstructor1WithParamDefaultValue.kt") + public void testPrivateConstructor1WithParamDefaultValue() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/PrivateConstructor1WithParamDefaultValue.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/constructor/vararg") + @TestDataPath("$PROJECT_ROOT") + public class Vararg { + @Test + public void testAllFilesPresentInVararg() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/constructor/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ConstructorNonLastVararg.kt") + public void testConstructorNonLastVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/vararg/ConstructorNonLastVararg.kt"); + } + + @Test + @TestMetadata("ConstructorVararg.kt") + public void testConstructorVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/vararg/ConstructorVararg.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/contextReceivers") + @TestDataPath("$PROJECT_ROOT") + public class ContextReceivers { + @Test + public void testAllFilesPresentInContextReceivers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("SimpleContextReceivers.kt") + public void testSimpleContextReceivers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/contextReceivers/SimpleContextReceivers.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/coroutines") + @TestDataPath("$PROJECT_ROOT") + public class Coroutines { + @Test + public void testAllFilesPresentInCoroutines() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Basic.kt") + public void testBasic() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/coroutines/Basic.kt"); + } + + @Test + @TestMetadata("TypeAliasFTSuspendWithReceiver.kt") + public void testTypeAliasFTSuspendWithReceiver() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/coroutines/TypeAliasFTSuspendWithReceiver.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/dataClass") + @TestDataPath("$PROJECT_ROOT") + public class DataClass { + @Test + public void testAllFilesPresentInDataClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/dataClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MixedComponents.kt") + public void testMixedComponents() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/MixedComponents.kt"); + } + + @Test + @TestMetadata("OneVal.kt") + public void testOneVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/OneVal.kt"); + } + + @Test + @TestMetadata("TwoVals.kt") + public void testTwoVals() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/TwoVals.kt"); + } + + @Test + @TestMetadata("TwoVars.kt") + public void testTwoVars() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/TwoVars.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava") + @TestDataPath("$PROJECT_ROOT") + public class FromLoadJava { + @Test + public void testAllFilesPresentInFromLoadJava() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ArrayTypeVariance.kt") + public void testArrayTypeVariance() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ArrayTypeVariance.kt"); + } + + @Test + @TestMetadata("ClassDoesNotOverrideMethod.kt") + public void testClassDoesNotOverrideMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassDoesNotOverrideMethod.kt"); + } + + @Test + @TestMetadata("ClassObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassObject.kt"); + } + + @Test + @TestMetadata("classObjectAnnotation.kt") + public void testClassObjectAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/classObjectAnnotation.kt"); + } + + @Test + @TestMetadata("ClassWithConstVal.kt") + public void testClassWithConstVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithConstVal.kt"); + } + + @Test + @TestMetadata("ClassWithTypeP.kt") + public void testClassWithTypeP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypeP.kt"); + } + + @Test + @TestMetadata("ClassWithTypePExtendsIterableP.kt") + public void testClassWithTypePExtendsIterableP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePExtendsIterableP.kt"); + } + + @Test + @TestMetadata("ClassWithTypePP.kt") + public void testClassWithTypePP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePP.kt"); + } + + @Test + @TestMetadata("ClassWithTypePRefNext.kt") + public void testClassWithTypePRefNext() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefNext.kt"); + } + + @Test + @TestMetadata("ClassWithTypePRefSelf.kt") + public void testClassWithTypePRefSelf() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefSelf.kt"); + } + + @Test + @TestMetadata("ClassWithTypePRefSelfAndClass.kt") + public void testClassWithTypePRefSelfAndClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefSelfAndClass.kt"); + } + + @Test + @TestMetadata("FieldAsVar.kt") + public void testFieldAsVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FieldAsVar.kt"); + } + + @Test + @TestMetadata("FieldOfArrayType.kt") + public void testFieldOfArrayType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FieldOfArrayType.kt"); + } + + @Test + @TestMetadata("FinalFieldAsVal.kt") + public void testFinalFieldAsVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FinalFieldAsVal.kt"); + } + + @Test + @TestMetadata("genericFunction.kt") + public void testGenericFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/genericFunction.kt"); + } + + @Test + @TestMetadata("InheritMethodsDifferentReturnTypes.kt") + public void testInheritMethodsDifferentReturnTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.kt"); + } + + @Test + @TestMetadata("InheritMethodsDifferentReturnTypesGeneric.kt") + public void testInheritMethodsDifferentReturnTypesGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.kt"); + } + + @Test + @TestMetadata("InnerClass.kt") + public void testInnerClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InnerClass.kt"); + } + + @Test + @TestMetadata("MethodTypePOneUpperBound.kt") + public void testMethodTypePOneUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodTypePOneUpperBound.kt"); + } + + @Test + @TestMetadata("MethodTypePTwoUpperBounds.kt") + public void testMethodTypePTwoUpperBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodTypePTwoUpperBounds.kt"); + } + + @Test + @TestMetadata("MethodWithTypeP.kt") + public void testMethodWithTypeP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypeP.kt"); + } + + @Test + @TestMetadata("MethodWithTypePP.kt") + public void testMethodWithTypePP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypePP.kt"); + } + + @Test + @TestMetadata("MethodWithTypePRefClassP.kt") + public void testMethodWithTypePRefClassP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypePRefClassP.kt"); + } + + @Test + @TestMetadata("MethosWithPRefTP.kt") + public void testMethosWithPRefTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethosWithPRefTP.kt"); + } + + @Test + @TestMetadata("MyException.kt") + public void testMyException() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MyException.kt"); + } + + @Test + @TestMetadata("NestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/NestedClass.kt"); + } + + @Test + @TestMetadata("objectInClass.kt") + public void testObjectInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectInClass.kt"); + } + + @Test + @TestMetadata("objectMembers.kt") + public void testObjectMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectMembers.kt"); + } + + @Test + @TestMetadata("packageLevelObject.kt") + public void testPackageLevelObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/packageLevelObject.kt"); + } + + @Test + @TestMetadata("RemoveRedundantProjectionKind.kt") + public void testRemoveRedundantProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.kt"); + } + + @Test + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/Simple.kt"); + } + + @Test + @TestMetadata("TwoFields.kt") + public void testTwoFields() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/TwoFields.kt"); + } + + @Test + @TestMetadata("UnboundWildcard.kt") + public void testUnboundWildcard() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/UnboundWildcard.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature") + @TestDataPath("$PROJECT_ROOT") + public class KotlinSignature { + @Test + @TestMetadata("AllBoundsInWhen.kt") + public void testAllBoundsInWhen() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/AllBoundsInWhen.kt"); + } + + @Test + public void testAllFilesPresentInKotlinSignature() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ArrayType.kt") + public void testArrayType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ArrayType.kt"); + } + + @Test + @TestMetadata("ConstructorWithNewTypeParams.kt") + public void testConstructorWithNewTypeParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithNewTypeParams.kt"); + } + + @Test + @TestMetadata("ConstructorWithParentTypeParams.kt") + public void testConstructorWithParentTypeParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithParentTypeParams.kt"); + } + + @Test + @TestMetadata("ConstructorWithSeveralParams.kt") + public void testConstructorWithSeveralParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithSeveralParams.kt"); + } + + @Test + @TestMetadata("ConstructorWithoutParams.kt") + public void testConstructorWithoutParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithoutParams.kt"); + } + + @Test + @TestMetadata("CustomProjectionKind.kt") + public void testCustomProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/CustomProjectionKind.kt"); + } + + @Test + @TestMetadata("MethodWithFunctionTypes.kt") + public void testMethodWithFunctionTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithFunctionTypes.kt"); + } + + @Test + @TestMetadata("MethodWithGenerics.kt") + public void testMethodWithGenerics() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithGenerics.kt"); + } + + @Test + @TestMetadata("MethodWithMappedClasses.kt") + public void testMethodWithMappedClasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithMappedClasses.kt"); + } + + @Test + @TestMetadata("MethodWithTypeParameters.kt") + public void testMethodWithTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithTypeParameters.kt"); + } + + @Test + @TestMetadata("MethodWithVararg.kt") + public void testMethodWithVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithVararg.kt"); + } + + @Test + @TestMetadata("PropertyArrayTypes.kt") + public void testPropertyArrayTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertyArrayTypes.kt"); + } + + @Test + @TestMetadata("PropertyComplexTypes.kt") + public void testPropertyComplexTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertyComplexTypes.kt"); + } + + @Test + @TestMetadata("PropertySimpleType.kt") + public void testPropertySimpleType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertySimpleType.kt"); + } + + @Test + @TestMetadata("StarProjection.kt") + public void testStarProjection() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/StarProjection.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error") + @TestDataPath("$PROJECT_ROOT") + public class Error { + @Test + @TestMetadata("AddingNullability.kt") + public void testAddingNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/AddingNullability.kt"); + } + + @Test + public void testAllFilesPresentInError() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ConflictingProjectionKind.kt") + public void testConflictingProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ConflictingProjectionKind.kt"); + } + + @Test + @TestMetadata("ExplicitFieldGettersAndSetters.kt") + public void testExplicitFieldGettersAndSetters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ExplicitFieldGettersAndSetters.kt"); + } + + @Test + @TestMetadata("ExtraUpperBound.kt") + public void testExtraUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ExtraUpperBound.kt"); + } + + @Test + @TestMetadata("MissingUpperBound.kt") + public void testMissingUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/MissingUpperBound.kt"); + } + + @Test + @TestMetadata("NoFieldTypeRef.kt") + public void testNoFieldTypeRef() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/NoFieldTypeRef.kt"); + } + + @Test + @TestMetadata("NotVarargReplacedWithVararg.kt") + public void testNotVarargReplacedWithVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/NotVarargReplacedWithVararg.kt"); + } + + @Test + @TestMetadata("RedundantProjectionKind.kt") + public void testRedundantProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/RedundantProjectionKind.kt"); + } + + @Test + @TestMetadata("ReturnTypeMissing.kt") + public void testReturnTypeMissing() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ReturnTypeMissing.kt"); + } + + @Test + @TestMetadata("SyntaxError.kt") + public void testSyntaxError() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxError.kt"); + } + + @Test + @TestMetadata("SyntaxErrorInFieldAnnotation.kt") + public void testSyntaxErrorInFieldAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxErrorInFieldAnnotation.kt"); + } + + @Test + @TestMetadata("VarargReplacedWithNotVararg.kt") + public void testVarargReplacedWithNotVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/VarargReplacedWithNotVararg.kt"); + } + + @Test + @TestMetadata("WrongFieldInitializer.kt") + public void testWrongFieldInitializer() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldInitializer.kt"); + } + + @Test + @TestMetadata("WrongFieldMutability.kt") + public void testWrongFieldMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldMutability.kt"); + } + + @Test + @TestMetadata("WrongFieldName.kt") + public void testWrongFieldName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldName.kt"); + } + + @Test + @TestMetadata("WrongMethodName.kt") + public void testWrongMethodName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongMethodName.kt"); + } + + @Test + @TestMetadata("WrongProjectionKind.kt") + public void testWrongProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongProjectionKind.kt"); + } + + @Test + @TestMetadata("WrongReturnTypeStructure.kt") + public void testWrongReturnTypeStructure() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongReturnTypeStructure.kt"); + } + + @Test + @TestMetadata("WrongTypeName1.kt") + public void testWrongTypeName1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName1.kt"); + } + + @Test + @TestMetadata("WrongTypeName2.kt") + public void testWrongTypeName2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName2.kt"); + } + + @Test + @TestMetadata("WrongTypeName3.kt") + public void testWrongTypeName3() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName3.kt"); + } + + @Test + @TestMetadata("WrongTypeParameterBoundStructure1.kt") + public void testWrongTypeParameterBoundStructure1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure1.kt"); + } + + @Test + @TestMetadata("WrongTypeParameterBoundStructure2.kt") + public void testWrongTypeParameterBoundStructure2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure2.kt"); + } + + @Test + @TestMetadata("WrongTypeParametersCount.kt") + public void testWrongTypeParametersCount() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParametersCount.kt"); + } + + @Test + @TestMetadata("WrongValueParameterStructure1.kt") + public void testWrongValueParameterStructure1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure1.kt"); + } + + @Test + @TestMetadata("WrongValueParameterStructure2.kt") + public void testWrongValueParameterStructure2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure2.kt"); + } + + @Test + @TestMetadata("WrongValueParametersCount.kt") + public void testWrongValueParametersCount() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParametersCount.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation") + @TestDataPath("$PROJECT_ROOT") + public class Propagation { + @Test + public void testAllFilesPresentInPropagation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("PropagateTypeArgumentNullable.kt") + public void testPropagateTypeArgumentNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter") + @TestDataPath("$PROJECT_ROOT") + public class Parameter { + @Test + public void testAllFilesPresentInParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ChangeProjectionKind1.kt") + public void testChangeProjectionKind1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.kt"); + } + + @Test + @TestMetadata("ChangeProjectionKind2.kt") + public void testChangeProjectionKind2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.kt"); + } + + @Test + @TestMetadata("DeeplySubstitutedClassParameter.kt") + public void testDeeplySubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.kt"); + } + + @Test + @TestMetadata("DeeplySubstitutedClassParameter2.kt") + public void testDeeplySubstitutedClassParameter2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.kt"); + } + + @Test + @TestMetadata("InheritMutability.kt") + public void testInheritMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.kt"); + } + + @Test + @TestMetadata("InheritNotVararg.kt") + public void testInheritNotVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.kt"); + } + + @Test + @TestMetadata("InheritNotVarargInteger.kt") + public void testInheritNotVarargInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.kt"); + } + + @Test + @TestMetadata("InheritNotVarargNotNull.kt") + public void testInheritNotVarargNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.kt"); + } + + @Test + @TestMetadata("InheritNotVarargPrimitive.kt") + public void testInheritNotVarargPrimitive() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.kt"); + } + + @Test + @TestMetadata("InheritNullability.kt") + public void testInheritNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.kt"); + } + + @Test + @TestMetadata("InheritProjectionKind.kt") + public void testInheritProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.kt"); + } + + @Test + @TestMetadata("InheritReadOnliness.kt") + public void testInheritReadOnliness() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.kt"); + } + + @Test + @TestMetadata("InheritVararg.kt") + public void testInheritVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.kt"); + } + + @Test + @TestMetadata("InheritVarargInteger.kt") + public void testInheritVarargInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.kt"); + } + + @Test + @TestMetadata("InheritVarargNotNull.kt") + public void testInheritVarargNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.kt"); + } + + @Test + @TestMetadata("InheritVarargPrimitive.kt") + public void testInheritVarargPrimitive() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.kt"); + } + + @Test + @TestMetadata("Kt3302.kt") + public void testKt3302() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.kt"); + } + + @Test + @TestMetadata("MutableToReadOnly.kt") + public void testMutableToReadOnly() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.kt"); + } + + @Test + @TestMetadata("NotNullToNullable.kt") + public void testNotNullToNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.kt"); + } + + @Test + @TestMetadata("NullableToNotNull.kt") + public void testNullableToNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.kt"); + } + + @Test + @TestMetadata("NullableToNotNullKotlinSignature.kt") + public void testNullableToNotNullKotlinSignature() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.kt"); + } + + @Test + @TestMetadata("OverrideWithErasedParameter.kt") + public void testOverrideWithErasedParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.kt"); + } + + @Test + @TestMetadata("ReadOnlyToMutable.kt") + public void testReadOnlyToMutable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.kt"); + } + + @Test + @TestMetadata("SubclassFromGenericAndNot.kt") + public void testSubclassFromGenericAndNot() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.kt"); + } + + @Test + @TestMetadata("SubstitutedClassParameter.kt") + public void testSubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.kt"); + } + + @Test + @TestMetadata("SubstitutedClassParameters.kt") + public void testSubstitutedClassParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return") + @TestDataPath("$PROJECT_ROOT") + public class Return { + @Test + @TestMetadata("AddNotNullJavaSubtype.kt") + public void testAddNotNullJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.kt"); + } + + @Test + @TestMetadata("AddNotNullSameJavaType.kt") + public void testAddNotNullSameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.kt"); + } + + @Test + @TestMetadata("AddNullabilityJavaSubtype.kt") + public void testAddNullabilityJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.kt"); + } + + @Test + @TestMetadata("AddNullabilitySameGenericType1.kt") + public void testAddNullabilitySameGenericType1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.kt"); + } + + @Test + @TestMetadata("AddNullabilitySameGenericType2.kt") + public void testAddNullabilitySameGenericType2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.kt"); + } + + @Test + @TestMetadata("AddNullabilitySameJavaType.kt") + public void testAddNullabilitySameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.kt"); + } + + @Test + public void testAllFilesPresentInReturn() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("CantMakeImmutableInSubclass.kt") + public void testCantMakeImmutableInSubclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.kt"); + } + + @Test + @TestMetadata("DeeplySubstitutedClassParameter.kt") + public void testDeeplySubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.kt"); + } + + @Test + @TestMetadata("DeeplySubstitutedClassParameter2.kt") + public void testDeeplySubstitutedClassParameter2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.kt"); + } + + @Test + @TestMetadata("HalfSubstitutedTypeParameters.kt") + public void testHalfSubstitutedTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.kt"); + } + + @Test + @TestMetadata("InheritNullabilityGenericSubclassSimple.kt") + public void testInheritNullabilityGenericSubclassSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.kt"); + } + + @Test + @TestMetadata("InheritNullabilityJavaSubtype.kt") + public void testInheritNullabilityJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.kt"); + } + + @Test + @TestMetadata("InheritNullabilitySameGenericType.kt") + public void testInheritNullabilitySameGenericType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.kt"); + } + + @Test + @TestMetadata("InheritNullabilitySameJavaType.kt") + public void testInheritNullabilitySameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.kt"); + } + + @Test + @TestMetadata("InheritProjectionKind.kt") + public void testInheritProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.kt"); + } + + @Test + @TestMetadata("InheritReadOnlinessOfArgument.kt") + public void testInheritReadOnlinessOfArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.kt"); + } + + @Test + @TestMetadata("InheritReadOnlinessSameClass.kt") + public void testInheritReadOnlinessSameClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.kt"); + } + + @Test + @TestMetadata("InheritReadOnlinessSubclass.kt") + public void testInheritReadOnlinessSubclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.kt"); + } + + @Test + @TestMetadata("SameProjectionKind.kt") + public void testSameProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.kt"); + } + + @Test + @TestMetadata("SubclassFromGenericAndNot.kt") + public void testSubclassFromGenericAndNot() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.kt"); + } + + @Test + @TestMetadata("SubclassOfCollection.kt") + public void testSubclassOfCollection() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfCollection.kt"); + } + + @Test + @TestMetadata("SubclassOfMapEntry.kt") + public void testSubclassOfMapEntry() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfMapEntry.kt"); + } + + @Test + @TestMetadata("SubstitutedClassParameter.kt") + public void testSubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.kt"); + } + + @Test + @TestMetadata("SubstitutedClassParameters.kt") + public void testSubstitutedClassParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesConflictingProjectionKinds.kt") + public void testTwoSuperclassesConflictingProjectionKinds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesInvariantAndCovariantInferMutability.kt") + public void testTwoSuperclassesInvariantAndCovariantInferMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesInvariantAndCovariantInferNullability.kt") + public void testTwoSuperclassesInvariantAndCovariantInferNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesMutableAndNot.kt") + public void testTwoSuperclassesMutableAndNot() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesReturnJavaSubtype.kt") + public void testTwoSuperclassesReturnJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesReturnSameJavaType.kt") + public void testTwoSuperclassesReturnSameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesSupplementNotNull.kt") + public void testTwoSuperclassesSupplementNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.kt"); + } + + @Test + @TestMetadata("TypeParamOfClass.kt") + public void testTypeParamOfClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.kt"); + } + + @Test + @TestMetadata("TypeParamOfClassSubstituted.kt") + public void testTypeParamOfClassSubstituted() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.kt"); + } + + @Test + @TestMetadata("TypeParamOfFun.kt") + public void testTypeParamOfFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter") + @TestDataPath("$PROJECT_ROOT") + public class TypeParameter { + @Test + public void testAllFilesPresentInTypeParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("InheritMutability.kt") + public void testInheritMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.kt"); + } + + @Test + @TestMetadata("InheritNullability.kt") + public void testInheritNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.kt"); + } + + @Test + @TestMetadata("InheritReadOnliness.kt") + public void testInheritReadOnliness() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.kt"); + } + + @Test + @TestMetadata("TwoBounds.kt") + public void testTwoBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.kt"); + } + + @Test + @TestMetadata("TwoSuperclasses.kt") + public void testTwoSuperclasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.kt"); + } + + @Test + @TestMetadata("TwoTypeParameters.kt") + public void testTwoTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.kt"); + } + + @Test + @TestMetadata("UseParameterAsUpperBound.kt") + public void testUseParameterAsUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.kt"); + } + + @Test + @TestMetadata("UseParameterInUpperBound.kt") + public void testUseParameterInUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.kt"); + } + + @Test + @TestMetadata("UseParameterInUpperBoundWithKotlinSignature.kt") + public void testUseParameterInUpperBoundWithKotlinSignature() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library") + @TestDataPath("$PROJECT_ROOT") + public class Library { + @Test + public void testAllFilesPresentInLibrary() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("LoadIterable.kt") + public void testLoadIterable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/LoadIterable.kt"); + } + + @Test + @TestMetadata("LoadIterator.kt") + public void testLoadIterator() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/LoadIterator.kt"); + } + + @Test + @TestMetadata("Max.kt") + public void testMax() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/Max.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality") + @TestDataPath("$PROJECT_ROOT") + public class Modality { + @Test + public void testAllFilesPresentInModality() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ModalityOfFakeOverrides.kt") + public void testModalityOfFakeOverrides() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality/ModalityOfFakeOverrides.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull") + @TestDataPath("$PROJECT_ROOT") + public class NotNull { + @Test + public void testAllFilesPresentInNotNull() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("NotNullField.kt") + public void testNotNullField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullField.kt"); + } + + @Test + @TestMetadata("NotNullIntArray.kt") + public void testNotNullIntArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullIntArray.kt"); + } + + @Test + @TestMetadata("NotNullMethod.kt") + public void testNotNullMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullMethod.kt"); + } + + @Test + @TestMetadata("NotNullObjectArray.kt") + public void testNotNullObjectArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullObjectArray.kt"); + } + + @Test + @TestMetadata("NotNullParameter.kt") + public void testNotNullParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullParameter.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun") + @TestDataPath("$PROJECT_ROOT") + public class Fun { + @Test + public void testAllFilesPresentInFun() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Assert.kt") + public void testAssert() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/Assert.kt"); + } + + @Test + @TestMetadata("DeclaredMemberOverridesDelegated.kt") + public void testDeclaredMemberOverridesDelegated() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/DeclaredMemberOverridesDelegated.kt"); + } + + @Test + @TestMetadata("InfixKeyword.kt") + public void testInfixKeyword() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InfixKeyword.kt"); + } + + @Test + @TestMetadata("InheritMethodsDifferentReturnTypesAndVisibilities.kt") + public void testInheritMethodsDifferentReturnTypesAndVisibilities() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritMethodsDifferentReturnTypesAndVisibilities.kt"); + } + + @Test + @TestMetadata("InheritValAndVar.kt") + public void testInheritValAndVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritValAndVar.kt"); + } + + @Test + @TestMetadata("InheritValsDifferentTypes.kt") + public void testInheritValsDifferentTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritValsDifferentTypes.kt"); + } + + @Test + @TestMetadata("NoSamAdapter.kt") + public void testNoSamAdapter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/NoSamAdapter.kt"); + } + + @Test + @TestMetadata("NoSamConstructor.kt") + public void testNoSamConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/NoSamConstructor.kt"); + } + + @Test + @TestMetadata("OperatorKeyword.kt") + public void testOperatorKeyword() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/OperatorKeyword.kt"); + } + + @Test + @TestMetadata("PropagateDeepSubclass.kt") + public void testPropagateDeepSubclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/PropagateDeepSubclass.kt"); + } + + @Test + @TestMetadata("PropagateSubclassOfComparable.kt") + public void testPropagateSubclassOfComparable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/PropagateSubclassOfComparable.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables") + @TestDataPath("$PROJECT_ROOT") + public class GenericWithTypeVariables { + @Test + public void testAllFilesPresentInGenericWithTypeVariables() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("FunGenericParam.kt") + public void testFunGenericParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunGenericParam.kt"); + } + + @Test + @TestMetadata("FunParamParam.kt") + public void testFunParamParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamParam.kt"); + } + + @Test + @TestMetadata("FunParamParamErased.kt") + public void testFunParamParamErased() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamParamErased.kt"); + } + + @Test + @TestMetadata("FunParamReferencesParam.kt") + public void testFunParamReferencesParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamReferencesParam.kt"); + } + + @Test + @TestMetadata("FunParamTwoUpperBounds.kt") + public void testFunParamTwoUpperBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamTwoUpperBounds.kt"); + } + + @Test + @TestMetadata("FunParamUpperClassBound.kt") + public void testFunParamUpperClassBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassBound.kt"); + } + + @Test + @TestMetadata("FunParamUpperClassInterfaceBound.kt") + public void testFunParamUpperClassInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassInterfaceBound.kt"); + } + + @Test + @TestMetadata("FunParamUpperInterfaceBound.kt") + public void testFunParamUpperInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperInterfaceBound.kt"); + } + + @Test + @TestMetadata("FunParamVaragParam.kt") + public void testFunParamVaragParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamVaragParam.kt"); + } + + @Test + @TestMetadata("FunTwoTypeParams.kt") + public void testFunTwoTypeParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunTwoTypeParams.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables") + @TestDataPath("$PROJECT_ROOT") + public class GenericWithoutTypeVariables { + @Test + public void testAllFilesPresentInGenericWithoutTypeVariables() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("FunClassParamNotNull.kt") + public void testFunClassParamNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNotNull.kt"); + } + + @Test + @TestMetadata("FunClassParamNullable.kt") + public void testFunClassParamNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNullable.kt"); + } + + @Test + @TestMetadata("FunParamNullable.kt") + public void testFunParamNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunParamNullable.kt"); + } + + @Test + @TestMetadata("ReturnTypeClassParamNotNull.kt") + public void testReturnTypeClassParamNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNotNull.kt"); + } + + @Test + @TestMetadata("ReturnTypeClassParamNullable.kt") + public void testReturnTypeClassParamNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNullable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric") + @TestDataPath("$PROJECT_ROOT") + public class NonGeneric { + @Test + public void testAllFilesPresentInNonGeneric() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassFun.kt") + public void testClassFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFun.kt"); + } + + @Test + @TestMetadata("ClassFunGetFoo.kt") + public void testClassFunGetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunGetFoo.kt"); + } + + @Test + @TestMetadata("ClassFunGetFooSetFoo.kt") + public void testClassFunGetFooSetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunGetFooSetFoo.kt"); + } + + @Test + @TestMetadata("ClassFunSetFoo.kt") + public void testClassFunSetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunSetFoo.kt"); + } + + @Test + @TestMetadata("ExtFun.kt") + public void testExtFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ExtFun.kt"); + } + + @Test + @TestMetadata("ExtFunInClass.kt") + public void testExtFunInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ExtFunInClass.kt"); + } + + @Test + @TestMetadata("FunDefaultArg.kt") + public void testFunDefaultArg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunDefaultArg.kt"); + } + + @Test + @TestMetadata("FunParamNotNull.kt") + public void testFunParamNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunParamNotNull.kt"); + } + + @Test + @TestMetadata("FunVarargInt.kt") + public void testFunVarargInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunVarargInt.kt"); + } + + @Test + @TestMetadata("FunVarargInteger.kt") + public void testFunVarargInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunVarargInteger.kt"); + } + + @Test + @TestMetadata("ModifierAbstract.kt") + public void testModifierAbstract() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ModifierAbstract.kt"); + } + + @Test + @TestMetadata("ModifierOpen.kt") + public void testModifierOpen() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ModifierOpen.kt"); + } + + @Test + @TestMetadata("NsFun.kt") + public void testNsFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/NsFun.kt"); + } + + @Test + @TestMetadata("NsFunGetFoo.kt") + public void testNsFunGetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/NsFunGetFoo.kt"); + } + + @Test + @TestMetadata("ReturnTypeNotNull.kt") + public void testReturnTypeNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ReturnTypeNotNull.kt"); + } + + @Test + @TestMetadata("ReturnTypeNullable.kt") + public void testReturnTypeNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ReturnTypeNullable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/vararg") + @TestDataPath("$PROJECT_ROOT") + public class Vararg { + @Test + public void testAllFilesPresentInVararg() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("nonLastVararg.kt") + public void testNonLastVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/nonLastVararg.kt"); + } + + @Test + @TestMetadata("VarargInt.kt") + public void testVarargInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/VarargInt.kt"); + } + + @Test + @TestMetadata("VarargString.kt") + public void testVarargString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/VarargString.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineFunction.kt") + public void testInlineFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/inline/inlineFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/memberOrder") + @TestDataPath("$PROJECT_ROOT") + public class MemberOrder { + @Test + public void testAllFilesPresentInMemberOrder() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/memberOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callablesNameClash.kt") + public void testCallablesNameClash() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/callablesNameClash.kt"); + } + + @Test + @TestMetadata("extensionMembers.kt") + public void testExtensionMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/extensionMembers.kt"); + } + + @Test + @TestMetadata("extensionPropertiesNameClash.kt") + public void testExtensionPropertiesNameClash() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/extensionPropertiesNameClash.kt"); + } + + @Test + @TestMetadata("innerClasses.kt") + public void testInnerClasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/innerClasses.kt"); + } + + @Test + @TestMetadata("topLevelCallables.kt") + public void testTopLevelCallables() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/topLevelCallables.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/nestedClasses") + @TestDataPath("$PROJECT_ROOT") + public class NestedClasses { + @Test + public void testAllFilesPresentInNestedClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/nestedClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deepInnerGeneric.kt") + public void testDeepInnerGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/nestedClasses/deepInnerGeneric.kt"); + } + + @Test + @TestMetadata("innerClassReferencesOuterTP.kt") + public void testInnerClassReferencesOuterTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/nestedClasses/innerClassReferencesOuterTP.kt"); + } + + @Test + @TestMetadata("membersReferenceOuterTP.kt") + public void testMembersReferenceOuterTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/nestedClasses/membersReferenceOuterTP.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/platformTypes") + @TestDataPath("$PROJECT_ROOT") + public class PlatformTypes { + @Test + public void testAllFilesPresentInPlatformTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("notnullTypeArgument.kt") + public void testNotnullTypeArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/platformTypes/notnullTypeArgument.kt"); + } + + @Test + @TestMetadata("nullableTypeArgument.kt") + public void testNullableTypeArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/platformTypes/nullableTypeArgument.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/prop") + @TestDataPath("$PROJECT_ROOT") + public class Prop { + @Test + public void testAllFilesPresentInProp() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/prop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassVal.kt") + public void testClassVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassVal.kt"); + } + + @Test + @TestMetadata("ClassValAbstract.kt") + public void testClassValAbstract() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassValAbstract.kt"); + } + + @Test + @TestMetadata("ClassVar.kt") + public void testClassVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassVar.kt"); + } + + @Test + @TestMetadata("CollectionSize.kt") + public void testCollectionSize() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/CollectionSize.kt"); + } + + @Test + @TestMetadata("Const.kt") + public void testConst() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/Const.kt"); + } + + @Test + @TestMetadata("Constants.kt") + public void testConstants() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/Constants.kt"); + } + + @Test + @TestMetadata("ExtValClass.kt") + public void testExtValClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValClass.kt"); + } + + @Test + @TestMetadata("ExtValInClass.kt") + public void testExtValInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValInClass.kt"); + } + + @Test + @TestMetadata("ExtValInt.kt") + public void testExtValInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValInt.kt"); + } + + @Test + @TestMetadata("ExtValIntCharSequence.kt") + public void testExtValIntCharSequence() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntCharSequence.kt"); + } + + @Test + @TestMetadata("ExtValIntCharSequenceQ.kt") + public void testExtValIntCharSequenceQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntCharSequenceQ.kt"); + } + + @Test + @TestMetadata("ExtValIntListQOfIntInClass.kt") + public void testExtValIntListQOfIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntListQOfIntInClass.kt"); + } + + @Test + @TestMetadata("ExtValIntTInClass.kt") + public void testExtValIntTInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntTInClass.kt"); + } + + @Test + @TestMetadata("ExtValIntTQInClass.kt") + public void testExtValIntTQInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntTQInClass.kt"); + } + + @Test + @TestMetadata("ExtValTIntInClass.kt") + public void testExtValTIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValTIntInClass.kt"); + } + + @Test + @TestMetadata("ExtVarClass.kt") + public void testExtVarClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarClass.kt"); + } + + @Test + @TestMetadata("ExtVarInClass.kt") + public void testExtVarInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarInClass.kt"); + } + + @Test + @TestMetadata("ExtVarInt.kt") + public void testExtVarInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarInt.kt"); + } + + @Test + @TestMetadata("ExtVarIntTInClass.kt") + public void testExtVarIntTInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarIntTInClass.kt"); + } + + @Test + @TestMetadata("ExtVarIntTQInClass.kt") + public void testExtVarIntTQInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarIntTQInClass.kt"); + } + + @Test + @TestMetadata("ExtVarMapPQInt.kt") + public void testExtVarMapPQInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarMapPQInt.kt"); + } + + @Test + @TestMetadata("ExtVarTIntInClass.kt") + public void testExtVarTIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarTIntInClass.kt"); + } + + @Test + @TestMetadata("ExtVarTQIntInClass.kt") + public void testExtVarTQIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarTQIntInClass.kt"); + } + + @Test + @TestMetadata("ExtVarl.kt") + public void testExtVarl() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarl.kt"); + } + + @Test + @TestMetadata("nonConstValWithConstantValueAttribute.kt") + public void testNonConstValWithConstantValueAttribute() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/nonConstValWithConstantValueAttribute.kt"); + } + + @Test + @TestMetadata("NsVal.kt") + public void testNsVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/NsVal.kt"); + } + + @Test + @TestMetadata("NsVar.kt") + public void testNsVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/NsVar.kt"); + } + + @Test + @TestMetadata("OverrideClassVal.kt") + public void testOverrideClassVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/OverrideClassVal.kt"); + } + + @Test + @TestMetadata("OverrideTraitVal.kt") + public void testOverrideTraitVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/OverrideTraitVal.kt"); + } + + @Test + @TestMetadata("PropFromSuperclass.kt") + public void testPropFromSuperclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/PropFromSuperclass.kt"); + } + + @Test + @TestMetadata("TraitFinalVar.kt") + public void testTraitFinalVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/TraitFinalVar.kt"); + } + + @Test + @TestMetadata("TraitOpenVal.kt") + public void testTraitOpenVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/TraitOpenVal.kt"); + } + + @Test + @TestMetadata("VarDelegationToTraitImpl.kt") + public void testVarDelegationToTraitImpl() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/VarDelegationToTraitImpl.kt"); + } + + @Test + @TestMetadata("VarWithDelegated.kt") + public void testVarWithDelegated() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/VarWithDelegated.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors") + @TestDataPath("$PROJECT_ROOT") + public class DefaultAccessors { + @Test + public void testAllFilesPresentInDefaultAccessors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ClassVal.kt") + public void testClassVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVal.kt"); + } + + @Test + @TestMetadata("ClassValParams.kt") + public void testClassValParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassValParams.kt"); + } + + @Test + @TestMetadata("ClassValWithGet.kt") + public void testClassValWithGet() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassValWithGet.kt"); + } + + @Test + @TestMetadata("ClassVar.kt") + public void testClassVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVar.kt"); + } + + @Test + @TestMetadata("ClassVarModality.kt") + public void testClassVarModality() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarModality.kt"); + } + + @Test + @TestMetadata("ClassVarParams.kt") + public void testClassVarParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarParams.kt"); + } + + @Test + @TestMetadata("ClassVarWithGet.kt") + public void testClassVarWithGet() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithGet.kt"); + } + + @Test + @TestMetadata("ClassVarWithSet.kt") + public void testClassVarWithSet() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithSet.kt"); + } + + @Test + @TestMetadata("ExtValLong.kt") + public void testExtValLong() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtValLong.kt"); + } + + @Test + @TestMetadata("ExtVarLong.kt") + public void testExtVarLong() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtVarLong.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/type") + @TestDataPath("$PROJECT_ROOT") + public class Type { + @Test + public void testAllFilesPresentInType() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/type"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Any.kt") + public void testAny() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Any.kt"); + } + + @Test + @TestMetadata("AnyQ.kt") + public void testAnyQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/AnyQ.kt"); + } + + @Test + @TestMetadata("ArrayOfInNumber.kt") + public void testArrayOfInNumber() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInNumber.kt"); + } + + @Test + @TestMetadata("ArrayOfInt.kt") + public void testArrayOfInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInt.kt"); + } + + @Test + @TestMetadata("ArrayOfInteger.kt") + public void testArrayOfInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInteger.kt"); + } + + @Test + @TestMetadata("ArrayOfOutNumber.kt") + public void testArrayOfOutNumber() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfOutNumber.kt"); + } + + @Test + @TestMetadata("ArrayOfOutT.kt") + public void testArrayOfOutT() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfOutT.kt"); + } + + @Test + @TestMetadata("ArrayOfString.kt") + public void testArrayOfString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfString.kt"); + } + + @Test + @TestMetadata("Function1IntString.kt") + public void testFunction1IntString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Function1IntString.kt"); + } + + @Test + @TestMetadata("Int.kt") + public void testInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Int.kt"); + } + + @Test + @TestMetadata("IntArray.kt") + public void testIntArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/IntArray.kt"); + } + + @Test + @TestMetadata("IntQ.kt") + public void testIntQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/IntQ.kt"); + } + + @Test + @TestMetadata("jlInteger.kt") + public void testJlInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlInteger.kt"); + } + + @Test + @TestMetadata("jlIntegerQ.kt") + public void testJlIntegerQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlIntegerQ.kt"); + } + + @Test + @TestMetadata("jlNumber.kt") + public void testJlNumber() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlNumber.kt"); + } + + @Test + @TestMetadata("jlObject.kt") + public void testJlObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlObject.kt"); + } + + @Test + @TestMetadata("jlObjectQ.kt") + public void testJlObjectQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlObjectQ.kt"); + } + + @Test + @TestMetadata("jlString.kt") + public void testJlString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlString.kt"); + } + + @Test + @TestMetadata("jlStringQ.kt") + public void testJlStringQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlStringQ.kt"); + } + + @Test + @TestMetadata("ListOfAny.kt") + public void testListOfAny() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfAny.kt"); + } + + @Test + @TestMetadata("ListOfAnyQ.kt") + public void testListOfAnyQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfAnyQ.kt"); + } + + @Test + @TestMetadata("ListOfStar.kt") + public void testListOfStar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfStar.kt"); + } + + @Test + @TestMetadata("ListOfString.kt") + public void testListOfString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfString.kt"); + } + + @Test + @TestMetadata("ListOfjlString.kt") + public void testListOfjlString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfjlString.kt"); + } + + @Test + @TestMetadata("Nothing.kt") + public void testNothing() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Nothing.kt"); + } + + @Test + @TestMetadata("NothingQ.kt") + public void testNothingQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/NothingQ.kt"); + } + + @Test + @TestMetadata("platform.kt") + public void testPlatform() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/platform.kt"); + } + + @Test + @TestMetadata("String.kt") + public void testString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/String.kt"); + } + + @Test + @TestMetadata("StringQ.kt") + public void testStringQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/StringQ.kt"); + } + + @Test + @TestMetadata("SuspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/SuspendFunction.kt"); + } + + @Test + @TestMetadata("Unit.kt") + public void testUnit() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Unit.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/typealias") + @TestDataPath("$PROJECT_ROOT") + public class Typealias { + @Test + public void testAllFilesPresentInTypealias() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/typealias"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Annotations.kt") + public void testAnnotations() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/Annotations.kt"); + } + + @Test + @TestMetadata("Basic.kt") + public void testBasic() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/Basic.kt"); + } + + @Test + @TestMetadata("Generic.kt") + public void testGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/Generic.kt"); + } + + @Test + @TestMetadata("TypeAliasToExtension.kt") + public void testTypeAliasToExtension() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/TypeAliasToExtension.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/visibility") + @TestDataPath("$PROJECT_ROOT") + public class Visibility { + @Test + public void testAllFilesPresentInVisibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/visibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("InternalClass.kt") + public void testInternalClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalClass.kt"); + } + + @Test + @TestMetadata("InternalConstructor.kt") + public void testInternalConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalConstructor.kt"); + } + + @Test + @TestMetadata("InternalTopLevelMembers.kt") + public void testInternalTopLevelMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalTopLevelMembers.kt"); + } + + @Test + @TestMetadata("PrivateClass.kt") + public void testPrivateClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateClass.kt"); + } + + @Test + @TestMetadata("PrivateClassMembers.kt") + public void testPrivateClassMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateClassMembers.kt"); + } + + @Test + @TestMetadata("PrivateToThis.kt") + public void testPrivateToThis() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateToThis.kt"); + } + + @Test + @TestMetadata("PrivateTopLevelFun.kt") + public void testPrivateTopLevelFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateTopLevelFun.kt"); + } + + @Test + @TestMetadata("PrivateTopLevelVal.kt") + public void testPrivateTopLevelVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateTopLevelVal.kt"); + } + + @Test + @TestMetadata("PropertyInConstructor.kt") + public void testPropertyInConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PropertyInConstructor.kt"); + } + + @Test + @TestMetadata("PropertyInConstructorExplicitVisibility.kt") + public void testPropertyInConstructorExplicitVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PropertyInConstructorExplicitVisibility.kt"); + } + + @Test + @TestMetadata("TopLevelVarWithPrivateSetter.kt") + public void testTopLevelVarWithPrivateSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib") + @TestDataPath("$PROJECT_ROOT") + public class CompiledKotlinWithStdlib { + @Test + public void testAllFilesPresentInCompiledKotlinWithStdlib() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("AnnotationInAnnotationArguments.kt") + public void testAnnotationInAnnotationArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/AnnotationInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("ConstValInMultifileClass.kt") + public void testConstValInMultifileClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/ConstValInMultifileClass.kt"); + } + + @Test + @TestMetadata("EnumArgumentWithCustomToString.kt") + public void testEnumArgumentWithCustomToString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/EnumArgumentWithCustomToString.kt"); + } + + @Test + @TestMetadata("JvmFieldInInterfaceCompanion.kt") + public void testJvmFieldInInterfaceCompanion() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/JvmFieldInInterfaceCompanion.kt"); + } + + @Test + @TestMetadata("WithUnsignedTypeParameters.kt") + public void testWithUnsignedTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/WithUnsignedTypeParameters.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/classMembers") + @TestDataPath("$PROJECT_ROOT") + public class ClassMembers { + @Test + public void testAllFilesPresentInClassMembers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/classMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("EnumEntry.kt") + public void testEnumEntry() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/classMembers/EnumEntry.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/parameters") + @TestDataPath("$PROJECT_ROOT") + public class Parameters { + @Test + public void testAllFilesPresentInParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/parameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("EnumConstructor.kt") + public void testEnumConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/parameters/EnumConstructor.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/class") + @TestDataPath("$PROJECT_ROOT") + public class Class { + @Test + public void testAllFilesPresentInClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/class"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("EnumWithGenericConstructorParameter.kt") + public void testEnumWithGenericConstructorParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithGenericConstructorParameter.kt"); + } + + @Test + @TestMetadata("EnumWithPrimitiveConstructorParameter.kt") + public void testEnumWithPrimitiveConstructorParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithPrimitiveConstructorParameter.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts") + @TestDataPath("$PROJECT_ROOT") + public class Contracts { + @Test + public void testAllFilesPresentInContracts() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callsEffect.kt") + public void testCallsEffect() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/callsEffect.kt"); + } + + @Test + @TestMetadata("contractWithRefiedGeneric.kt") + public void testContractWithRefiedGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractWithRefiedGeneric.kt"); + } + + @Test + @TestMetadata("contractsOnMembers.kt") + public void testContractsOnMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractsOnMembers.kt"); + } + + @Test + @TestMetadata("deeplyNestedExpression.kt") + public void testDeeplyNestedExpression() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/deeplyNestedExpression.kt"); + } + + @Test + @TestMetadata("embedding.kt") + public void testEmbedding() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/embedding.kt"); + } + + @Test + @TestMetadata("fromStandardKt.kt") + public void testFromStandardKt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/fromStandardKt.kt"); + } + + @Test + @TestMetadata("isInstancePredicate.kt") + public void testIsInstancePredicate() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/isInstancePredicate.kt"); + } + + @Test + @TestMetadata("logicOperators.kt") + public void testLogicOperators() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/logicOperators.kt"); + } + + @Test + @TestMetadata("multieffectContracts.kt") + public void testMultieffectContracts() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/multieffectContracts.kt"); + } + + @Test + @TestMetadata("mutualRecursion.kt") + public void testMutualRecursion() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/mutualRecursion.kt"); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/recursion.kt"); + } + + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/withReceiver.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/coroutines") + @TestDataPath("$PROJECT_ROOT") + public class Coroutines { + @Test + public void testAllFilesPresentInCoroutines() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotatedSuspendFun.kt") + public void testAnnotatedSuspendFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/coroutines/annotatedSuspendFun.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/enum") + @TestDataPath("$PROJECT_ROOT") + public class Enum { + @Test + public void testAllFilesPresentInEnum() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("enumVisibility.kt") + public void testEnumVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumVisibility.kt"); + } + + @Test + @TestMetadata("enumWithConstuctor.kt") + public void testEnumWithConstuctor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumWithConstuctor.kt"); + } + + @Test + @TestMetadata("enumWithInnerClasses.kt") + public void testEnumWithInnerClasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumWithInnerClasses.kt"); + } + + @Test + @TestMetadata("innerEnum.kt") + public void testInnerEnum() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/innerEnum.kt"); + } + + @Test + @TestMetadata("innerEnumExistingClassObject.kt") + public void testInnerEnumExistingClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/innerEnumExistingClassObject.kt"); + } + + @Test + @TestMetadata("simpleEnum.kt") + public void testSimpleEnum() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/simpleEnum.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/fromLoadJava") + @TestDataPath("$PROJECT_ROOT") + public class FromLoadJava { + @Test + public void testAllFilesPresentInFromLoadJava() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/fromLoadJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/fromLoadJava/enum.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/memberOrder") + @TestDataPath("$PROJECT_ROOT") + public class MemberOrder { + @Test + public void testAllFilesPresentInMemberOrder() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/memberOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("enumEntries.kt") + public void testEnumEntries() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/memberOrder/enumEntries.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability") + @TestDataPath("$PROJECT_ROOT") + public class Mutability { + @Test + public void testAllFilesPresentInMutability() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("LoadIterable.kt") + public void testLoadIterable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterable.kt"); + } + + @Test + @TestMetadata("LoadIterableWithConflict.kt") + public void testLoadIterableWithConflict() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithConflict.kt"); + } + + @Test + @TestMetadata("LoadIterableWithNullability.kt") + public void testLoadIterableWithNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithNullability.kt"); + } + + @Test + @TestMetadata("LoadIterableWithPropagation.kt") + public void testLoadIterableWithPropagation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithPropagation.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames") + @TestDataPath("$PROJECT_ROOT") + public class PlatformNames { + @Test + public void testAllFilesPresentInPlatformNames() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("functionName.kt") + public void testFunctionName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames/functionName.kt"); + } + } + } +} diff --git a/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/util/StringUtils.kt b/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/util/StringUtils.kt index 9c56bab4713..8a76afeac80 100644 --- a/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/util/StringUtils.kt +++ b/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/util/StringUtils.kt @@ -16,6 +16,11 @@ fun String.trimTrailingWhitespacesAndAddNewlineAtEOF(): String = fun String.trimTrailingWhitespaces(): String = this.split('\n').joinToString(separator = "\n") { it.trimEnd() } +fun String.trimTrailingWhitespacesAndRemoveRedundantEmptyLinesAtTheEnd(): String { + val lines = this.split('\n').map { it.trimEnd() } + return lines.dropLastWhile { it.isBlank() }.joinToString("\n", postfix = "\n") +} + fun String.convertLineSeparators(separator: String = DEFAULT_LINE_SEPARATOR): String { return replace(Regex.fromLiteral("\r\n|\r|\n"), separator) } diff --git a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/services/DependencyProvider.kt b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/services/DependencyProvider.kt index 60090670f9a..3ee7693e606 100644 --- a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/services/DependencyProvider.kt +++ b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/services/DependencyProvider.kt @@ -12,6 +12,7 @@ abstract class DependencyProvider : TestService { abstract fun getTestModule(name: String): TestModule abstract fun > getArtifact(module: TestModule, kind: TestArtifactKind): A + abstract fun > getArtifactSafe(module: TestModule, kind: TestArtifactKind): A? abstract fun unregisterAllArtifacts(module: TestModule) abstract fun copy(): DependencyProvider @@ -26,7 +27,7 @@ class DependencyProviderImpl( private val assertions: Assertions get() = testServices.assertions - private val testModulesByName = testModules.map { it.name to it }.toMap() + private val testModulesByName = testModules.associateBy { it.name } private val artifactsByModule: MutableMap, ResultingArtifact<*>>> = mutableMapOf() @@ -34,11 +35,13 @@ class DependencyProviderImpl( return testModulesByName[name] ?: assertions.fail { "Module $name is not defined" } } - override fun > getArtifact(module: TestModule, kind: TestArtifactKind): A { - val artifact = artifactsByModule.getMap(module)[kind] - ?: error("Artifact with kind $kind is not registered for module ${module.name}") + override fun > getArtifactSafe(module: TestModule, kind: TestArtifactKind): A? { @Suppress("UNCHECKED_CAST") - return artifact as A + return artifactsByModule.getMap(module)[kind] as A? + } + + override fun > getArtifact(module: TestModule, kind: TestArtifactKind): A { + return getArtifactSafe(module, kind) ?: error("Artifact with kind $kind is not registered for module ${module.name}") } fun > registerArtifact(module: TestModule, artifact: ResultingArtifact) { diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.fir.txt b/compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.fir.k1.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.fir.txt rename to compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.fir.k1.txt index d9d25b8c42c..c75dd78d6e0 100644 --- a/compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.fir.k1.txt @@ -41,4 +41,3 @@ public final class Test : R|kotlin/Any| { public constructor(x: R|kotlin/Int|): R|test/Z| } - diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.fir.k2.txt new file mode 100644 index 00000000000..eb977207297 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.fir.k2.txt @@ -0,0 +1,43 @@ +public final annotation class Ann : R|kotlin/Annotation| { + public constructor(): R|test/Ann| + +} + +public sealed class Sealed : R|kotlin/Any| { + public final val z: R|test/Z| + public get(): R|test/Z| + + @R|test/Ann|() protected constructor(@R|test/Ann|() z: R|test/Z|): R|test/Sealed| + + public final class Derived : R|test/Sealed| { + @R|test/Ann|() public constructor(z: R|test/Z|): R|test/Sealed.Derived| + + } + +} + +public final class Test : R|kotlin/Any| { + public final val z: R|test/Z| + public get(): R|test/Z| + + @R|test/Ann|() public constructor(@R|test/Ann|() z: R|test/Z|): R|test/Test| + + @R|test/Ann|() public constructor(z: R|test/Z|, @R|test/Ann|() a: R|kotlin/Int|): R|test/Test| + + @R|test/Ann|() private constructor(z: R|test/Z|, @R|test/Ann|() s: R|kotlin/String|): R|test/Test| + +} + +@R|kotlin/jvm/JvmInline|() public final inline class Z : R|kotlin/Any| { + public open operator fun equals(other: R|kotlin/Any?|): R|kotlin/Boolean| + + public open fun hashCode(): R|kotlin/Int| + + public open fun toString(): R|kotlin/String| + + public final val x: R|kotlin/Int| + public get(): R|kotlin/Int| + + public constructor(x: R|kotlin/Int|): R|test/Z| + +} diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.fir.txt b/compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.fir.k1.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.fir.txt rename to compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.fir.k1.txt index 98a49efed39..54dea563f78 100644 --- a/compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.fir.k1.txt @@ -17,4 +17,3 @@ } } - diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.fir.k2.txt new file mode 100644 index 00000000000..6e5710001a9 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.fir.k2.txt @@ -0,0 +1,19 @@ +@R|kotlin/Deprecated|(message = String(Class)) public final class Class : R|kotlin/Any| { + public constructor(): R|test/Class| + + @R|kotlin/Deprecated|(message = String(Nested)) public final class Nested : R|kotlin/Any| { + public constructor(): R|test/Class.Nested| + + } + + @R|kotlin/Deprecated|(message = String(Inner)) public final inner class Inner : R|kotlin/Any| { + public test/Class.constructor(): R|test/Class.Inner| + + } + + @R|kotlin/Deprecated|(message = String(companion object)) public final companion object Companion : R|kotlin/Any| { + private constructor(): R|test/Class.Companion| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/classes/EnumArgument.fir.txt b/compiler/testData/loadJava/compiledKotlin/annotations/classes/EnumArgument.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/annotations/classes/EnumArgument.fir.txt rename to compiler/testData/loadJava/compiledKotlin/annotations/classes/EnumArgument.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/classes/EnumArgument.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/annotations/classes/EnumArgument.fir.k2.txt new file mode 100644 index 00000000000..1f1563301c2 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/annotations/classes/EnumArgument.fir.k2.txt @@ -0,0 +1,27 @@ +public final annotation class Anno : R|kotlin/Annotation| { + public final val t: R|java/lang/annotation/ElementType| + public get(): R|java/lang/annotation/ElementType| + + public constructor(t: R|java/lang/annotation/ElementType|): R|test/Anno| + +} + +@R|test/Anno|(t = R|java/lang/annotation/ElementType.METHOD|) public final class Class : R|kotlin/Any| { + public constructor(): R|test/Class| + + @R|test/Anno|(t = R|java/lang/annotation/ElementType.PARAMETER|) public final inner class Inner : R|kotlin/Any| { + public test/Class.constructor(): R|test/Class.Inner| + + } + + @R|test/Anno|(t = R|java/lang/annotation/ElementType.TYPE|) public final class Nested : R|kotlin/Any| { + public constructor(): R|test/Class.Nested| + + } + + @R|test/Anno|(t = R|java/lang/annotation/ElementType.ANNOTATION_TYPE|) public final companion object Companion : R|kotlin/Any| { + private constructor(): R|test/Class.Companion| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.fir.txt b/compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.fir.k1.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.fir.txt rename to compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.fir.k1.txt index 4c98760c3a9..42ff3baab3b 100644 --- a/compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.fir.k1.txt @@ -17,4 +17,3 @@ public final class Class : R|kotlin/Any| { } } - diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.fir.k2.txt new file mode 100644 index 00000000000..94c8cb78639 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.fir.k2.txt @@ -0,0 +1,19 @@ +public final annotation class Anno : R|kotlin/Annotation| { + public constructor(): R|test/Anno| + +} + +public final class Class : R|kotlin/Any| { + public constructor(): R|test/Class| + + @R|test/Anno|() public final class Nested : R|kotlin/Any| { + public constructor(): R|test/Class.Nested| + + } + + @R|test/Anno|() public final inner class Inner : R|kotlin/Any| { + public test/Class.constructor(): R|test/Class.Inner| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.fir.txt b/compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.fir.k1.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.fir.txt rename to compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.fir.k1.txt index 69c2ac152ea..30e79895f87 100644 --- a/compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.fir.k1.txt @@ -26,4 +26,3 @@ public final class Outer : R|kotlin/Any| { } } - diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.fir.k2.txt new file mode 100644 index 00000000000..5b7256ca0d0 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.fir.k2.txt @@ -0,0 +1,28 @@ +public final annotation class A : R|kotlin/Annotation| { + public final val s: R|kotlin/String| + public get(): R|kotlin/String| + + public constructor(s: R|kotlin/String|): R|test/A| + +} + +public final class Outer : R|kotlin/Any| { + public constructor(): R|test/Outer| + + public final class Nested : R|kotlin/Any| { + public final val x: R|kotlin/String| + public get(): R|kotlin/String| + + public constructor(@R|test/A|(s = String(nested)) x: R|kotlin/String|): R|test/Outer.Nested| + + } + + public final inner class Inner : R|kotlin/Any| { + public final val y: R|kotlin/String| + public get(): R|kotlin/String| + + public test/Outer.constructor(@R|test/A|(s = String(inner)) y: R|kotlin/String|): R|test/Outer.Inner| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.fir.txt b/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.fir.txt rename to compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.fir.k2.txt new file mode 100644 index 00000000000..d0c710015fd --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.fir.k2.txt @@ -0,0 +1,28 @@ +public final class Class : R|kotlin/Any| { + @PROPERTY:R|test/IntAnno|() public final val R|kotlin/Int|.extension: R|kotlin/Int| + public get(): R|kotlin/Int| + + @PROPERTY:R|test/DoubleAnno|() public final val R|kotlin/Double|.extension: R|kotlin/Int| + public get(): R|kotlin/Int| + + @PROPERTY:R|test/StringAnno|() public final val R|kotlin/String|.extension: R|kotlin/String| + public get(): R|kotlin/String| + + public constructor(): R|test/Class| + +} + +public final annotation class DoubleAnno : R|kotlin/Annotation| { + public constructor(): R|test/DoubleAnno| + +} + +public final annotation class IntAnno : R|kotlin/Annotation| { + public constructor(): R|test/IntAnno| + +} + +public final annotation class StringAnno : R|kotlin/Annotation| { + public constructor(): R|test/StringAnno| + +} diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.fir.txt b/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.fir.k1.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.fir.txt rename to compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.fir.k1.txt index fffaaa349ed..b9bfdfe4b74 100644 --- a/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.fir.k1.txt @@ -21,4 +21,3 @@ public final annotation class StringAnno : R|kotlin/Annotation| { public constructor(): R|test/StringAnno| } - diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.fir.k2.txt new file mode 100644 index 00000000000..00eef44ef72 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.fir.k2.txt @@ -0,0 +1,23 @@ +@PROPERTY:R|test/IntAnno|() public final val R|kotlin/Int|.extension: R|kotlin/Int| + public get(): R|kotlin/Int| + +@PROPERTY:R|test/StringAnno|() public final val R|kotlin/String|.extension: R|kotlin/String| + public get(): R|kotlin/String| + +@PROPERTY:R|test/DoubleAnno|() public final val R|kotlin/Double|.extension: R|kotlin/Int| + public get(): R|kotlin/Int| + +public final annotation class DoubleAnno : R|kotlin/Annotation| { + public constructor(): R|test/DoubleAnno| + +} + +public final annotation class IntAnno : R|kotlin/Annotation| { + public constructor(): R|test/IntAnno| + +} + +public final annotation class StringAnno : R|kotlin/Annotation| { + public constructor(): R|test/StringAnno| + +} diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.fir.txt b/compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.fir.txt rename to compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.fir.k2.txt new file mode 100644 index 00000000000..122cd659ba2 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.fir.k2.txt @@ -0,0 +1,30 @@ +public final annotation class A : R|kotlin/Annotation| { + public final val value: R|kotlin/String| + public get(): R|kotlin/String| + + public constructor(value: R|kotlin/String|): R|test/A| + +} + +public final annotation class B : R|kotlin/Annotation| { + public final val value: R|kotlin/Array| + public get(): R|kotlin/Array| + + public constructor(value: R|kotlin/Array|): R|test/B| + +} + +public abstract interface I : R|kotlin/Any| { + public abstract var getterAndSetter: R|kotlin/Int| + @R|test/A|(value = String(getter)) public get(): R|kotlin/Int| + @R|test/B|(value = (String(setter))) public set(value: R|kotlin/Int|): R|kotlin/Unit| + + @PROPERTY:R|test/A|(value = String(property)) public abstract var propertyAndGetter: R|kotlin/Int| + @R|test/B|(value = (String(getter))) public get(): R|kotlin/Int| + public set(value: R|kotlin/Int|): R|kotlin/Unit| + + @PROPERTY:R|test/A|(value = String(property)) public abstract var propertyAndSetter: R|kotlin/Int| + public get(): R|kotlin/Int| + @R|test/B|(value = (String(setter))) public set(value: R|kotlin/Int|): R|kotlin/Unit| + +} diff --git a/compiler/testData/loadJava/compiledKotlin/class/ClassMemberConflict.kt b/compiler/testData/loadJava/compiledKotlin/class/ClassMemberConflict.kt index 85c9cbb2ad2..6095cab77fd 100644 --- a/compiler/testData/loadJava/compiledKotlin/class/ClassMemberConflict.kt +++ b/compiler/testData/loadJava/compiledKotlin/class/ClassMemberConflict.kt @@ -1,4 +1,6 @@ //ALLOW_AST_ACCESS +// IGNORE_FIR_METADATA_LOADING_K2 +// Ignore reason: KT-58028 package test class ConstructorTypeParamClassObjectTypeConflict { @@ -42,4 +44,4 @@ class TestClassObjectAndClassConflict { val bla = { "More" }() val some = bla -} \ No newline at end of file +} diff --git a/compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.fir.txt b/compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.fir.k1.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.fir.txt rename to compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.fir.k1.txt index 9d76f2f6abd..56d248aacf1 100644 --- a/compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.fir.k1.txt @@ -72,4 +72,3 @@ public final class Pub : R|kotlin/Any| { } } - diff --git a/compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.fir.k2.txt new file mode 100644 index 00000000000..4f96218eb5b --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.fir.k2.txt @@ -0,0 +1,74 @@ +public final class Int : R|kotlin/Any| { + public constructor(): R|test/Int| + + public final companion object Companion : R|kotlin/Any| { + private constructor(): R|test/Int.Companion| + + } + +} + +public final class Outer : R|kotlin/Any| { + public constructor(): R|test/Outer| + + public final class Pub : R|kotlin/Any| { + public constructor(): R|test/Outer.Pub| + + public final companion object Companion : R|kotlin/Any| { + private constructor(): R|test/Outer.Pub.Companion| + + } + + } + + private final class Pri : R|kotlin/Any| { + public constructor(): R|test/Outer.Pri| + + public final companion object Companion : R|kotlin/Any| { + private constructor(): R|test/Outer.Pri.Companion| + + } + + } + + public final class Int : R|kotlin/Any| { + public constructor(): R|test/Outer.Int| + + public final companion object Companion : R|kotlin/Any| { + private constructor(): R|test/Outer.Int.Companion| + + } + + } + + protected final class Pro : R|kotlin/Any| { + public constructor(): R|test/Outer.Pro| + + public final companion object Companion : R|kotlin/Any| { + private constructor(): R|test/Outer.Pro.Companion| + + } + + } + +} + +private final class Pri : R|kotlin/Any| { + public constructor(): R|test/Pri| + + public final companion object Companion : R|kotlin/Any| { + private constructor(): R|test/Pri.Companion| + + } + +} + +public final class Pub : R|kotlin/Any| { + public constructor(): R|test/Pub| + + public final companion object Companion : R|kotlin/Any| { + private constructor(): R|test/Pub.Companion| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/classObject/ClassObjectInClassStaticFields.fir.txt b/compiler/testData/loadJava/compiledKotlin/classObject/classObjectInClassStaticFields.fir.k1.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/classObject/ClassObjectInClassStaticFields.fir.txt rename to compiler/testData/loadJava/compiledKotlin/classObject/classObjectInClassStaticFields.fir.k1.txt index 289d6ed1a6f..1d6cc2b758c 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/classObject/ClassObjectInClassStaticFields.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/classObject/classObjectInClassStaticFields.fir.k1.txt @@ -34,4 +34,3 @@ public final class Test : R|kotlin/Any| { } } - diff --git a/compiler/testData/loadJava/compiledKotlin/classObject/classObjectInClassStaticFields.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/classObject/classObjectInClassStaticFields.fir.k2.txt new file mode 100644 index 00000000000..0db53b016cd --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/classObject/classObjectInClassStaticFields.fir.k2.txt @@ -0,0 +1,36 @@ +public final class Test : R|kotlin/Any| { + public constructor(): R|test/Test| + + public final companion object Companion : R|kotlin/Any| { + public final fun incProp4(): R|kotlin/Unit| + + public final const val constProp8: R|kotlin/Int| = Int(80) + public get(): R|kotlin/Int| + + public final val prop1: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final var prop2: R|kotlin/Int| + public get(): R|kotlin/Int| + protected set(value: R|kotlin/Int|): R|kotlin/Unit| + + public final val prop3: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final var prop4: R|kotlin/Int| + public get(): R|kotlin/Int| + public set(value: R|kotlin/Int|): R|kotlin/Unit| + + public final var prop5: R|kotlin/Int| + public get(): R|kotlin/Int| + public set(value: R|kotlin/Int|): R|kotlin/Unit| + + public final var prop7: R|kotlin/Int| + public get(): R|kotlin/Int| + public set(i: R|kotlin/Int|): R|kotlin/Unit| + + private constructor(): R|test/Test.Companion| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/classObject/ClassObjectInTraitStaticFields.fir.txt b/compiler/testData/loadJava/compiledKotlin/classObject/classObjectInTraitStaticFields.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/classObject/ClassObjectInTraitStaticFields.fir.txt rename to compiler/testData/loadJava/compiledKotlin/classObject/classObjectInTraitStaticFields.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/classObject/classObjectInTraitStaticFields.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/classObject/classObjectInTraitStaticFields.fir.k2.txt new file mode 100644 index 00000000000..c5477e01290 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/classObject/classObjectInTraitStaticFields.fir.k2.txt @@ -0,0 +1,34 @@ +public abstract interface Test : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + public final fun incProp4(): R|kotlin/Unit| + + public final const val constProp8: R|kotlin/Int| = Int(80) + public get(): R|kotlin/Int| + + public final val prop1: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final var prop2: R|kotlin/Int| + public get(): R|kotlin/Int| + protected set(value: R|kotlin/Int|): R|kotlin/Unit| + + public final val prop3: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final var prop4: R|kotlin/Int| + public get(): R|kotlin/Int| + public set(value: R|kotlin/Int|): R|kotlin/Unit| + + public final var prop5: R|kotlin/Int| + public get(): R|kotlin/Int| + public set(value: R|kotlin/Int|): R|kotlin/Unit| + + public final var prop7: R|kotlin/Int| + public get(): R|kotlin/Int| + public set(i: R|kotlin/Int|): R|kotlin/Unit| + + private constructor(): R|test/Test.Companion| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.fir.k1.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.fir.k1.txt index 599b26e2dc5..81a46d7eaaa 100644 --- a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.fir.k1.txt @@ -19,4 +19,3 @@ public final class InheritMethodsDifferentReturnTypes : R|kotlin/Any| { } } - diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.fir.k2.txt new file mode 100644 index 00000000000..29f4cdb9e6e --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.fir.k2.txt @@ -0,0 +1,21 @@ +public final class InheritMethodsDifferentReturnTypes : R|kotlin/Any| { + public constructor(): R|test/InheritMethodsDifferentReturnTypes| + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun bar(): R|kotlin/String?| + + public abstract fun foo(): R|kotlin/CharSequence?| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun bar(): R|kotlin/CharSequence?| + + public abstract fun foo(): R|kotlin/String?| + + } + + public abstract interface Sub : R|test/InheritMethodsDifferentReturnTypes.Super1|, R|test/InheritMethodsDifferentReturnTypes.Super2| { + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.fir.k1.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.fir.k1.txt index 709d1f14bc2..dbedd16c582 100644 --- a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.fir.k1.txt @@ -19,4 +19,3 @@ public final class InheritMethodsDifferentReturnTypesGeneric : R|kotlin/Any| { } } - diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.fir.k2.txt new file mode 100644 index 00000000000..1b6b2e27103 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.fir.k2.txt @@ -0,0 +1,21 @@ +public final class InheritMethodsDifferentReturnTypesGeneric : R|kotlin/Any| { + public constructor(): R|test/InheritMethodsDifferentReturnTypesGeneric| + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun bar(): R|B?| + + public abstract fun foo(): R|F?| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun bar(): R|BB?| + + public abstract fun foo(): R|FF?| + + } + + public abstract interface Sub : R|test/InheritMethodsDifferentReturnTypesGeneric.Super1|, R|test/InheritMethodsDifferentReturnTypesGeneric.Super2| { + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.fir.k2.txt new file mode 100644 index 00000000000..ca64657fe29 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.fir.k2.txt @@ -0,0 +1,6 @@ +public abstract interface RemoveRedundantProjectionKind : R|kotlin/Any| { + public abstract fun f(p0: R|kotlin/collections/Collection?|): R|kotlin/Unit| + + public abstract fun f(p0: R|kotlin/Comparable?|): R|kotlin/Unit| + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/classObjectAnnotation.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/classObjectAnnotation.fir.txt new file mode 100644 index 00000000000..784affedb41 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/classObjectAnnotation.fir.txt @@ -0,0 +1,14 @@ +public final class Some : R|kotlin/Any| { + public constructor(): R|test/Some| + + public final companion object Companion : R|kotlin/Any| { + private constructor(): R|test/Some.Companion| + + public final annotation class TestAnnotation : R|kotlin/Annotation| { + public constructor(): R|test/Some.Companion.TestAnnotation| + + } + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/genericFunction.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/genericFunction.fir.txt new file mode 100644 index 00000000000..aa130e2f388 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/genericFunction.fir.txt @@ -0,0 +1 @@ +public final fun foo(t: R|T|): R|T| diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.fir.k2.txt new file mode 100644 index 00000000000..74229affefb --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.fir.k2.txt @@ -0,0 +1,32 @@ +public abstract interface PropagateTypeArgumentNullable : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun invOutR(): R|kotlin/collections/MutableList>| + + public abstract fun invOutS(p: R|kotlin/collections/MutableList>|): R|kotlin/Unit| + + public abstract fun invR(): R|kotlin/collections/MutableList| + + public abstract fun outOutS(p: R|kotlin/collections/List>|): R|kotlin/Unit| + + public abstract fun outR(): R|kotlin/collections/List| + + public abstract fun outS(p: R|kotlin/collections/List|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/PropagateTypeArgumentNullable.Super| { + public abstract fun invOutR(): R|kotlin/collections/MutableList>| + + public abstract fun invOutS(p: R|kotlin/collections/MutableList>|): R|kotlin/Unit| + + public abstract fun invR(): R|kotlin/collections/MutableList| + + public abstract fun outOutS(p: R|kotlin/collections/List>|): R|kotlin/Unit| + + public abstract fun outR(): R|kotlin/collections/List| + + public abstract fun outS(p: R|kotlin/collections/List|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.fir.k2.txt new file mode 100644 index 00000000000..90f519f285c --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface ChangeProjectionKind1 : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/ChangeProjectionKind1.Super| { + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.fir.k2.txt new file mode 100644 index 00000000000..433012aa513 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface ChangeProjectionKind2 : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/ChangeProjectionKind2.Super| { + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.fir.k2.txt new file mode 100644 index 00000000000..5c881f5165d --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.fir.k2.txt @@ -0,0 +1,19 @@ +public abstract interface DeeplySubstitutedClassParameter : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(t: R|T|): R|kotlin/Unit| + + } + + public abstract interface Middle : R|test/DeeplySubstitutedClassParameter.Super| { + public abstract fun foo(t: R|E|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/DeeplySubstitutedClassParameter.Middle| { + public abstract fun foo(t: R|kotlin/String|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.fir.k2.txt new file mode 100644 index 00000000000..6890da3153b --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.fir.k2.txt @@ -0,0 +1,17 @@ +public abstract interface DeeplySubstitutedClassParameter2 : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(t: R|T|): R|kotlin/Unit| + + } + + public abstract interface Middle : R|test/DeeplySubstitutedClassParameter2.Super| { + } + + public abstract interface Sub : R|test/DeeplySubstitutedClassParameter2.Middle| { + public abstract fun foo(t: R|kotlin/String|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.fir.k2.txt new file mode 100644 index 00000000000..7e85cf270cb --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritMutability : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritMutability.Super| { + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.fir.k2.txt new file mode 100644 index 00000000000..5174990a2ac --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNotVararg : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/Array?|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritNotVararg.Super| { + public abstract fun foo(p0: R|kotlin/Array?|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.fir.k2.txt new file mode 100644 index 00000000000..f459e9925ca --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNotVarargInteger : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/Array?|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritNotVarargInteger.Super| { + public abstract fun foo(p0: R|kotlin/Array?|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.fir.k2.txt new file mode 100644 index 00000000000..b191e014064 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNotVarargNotNull : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/Array|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritNotVarargNotNull.Super| { + public abstract fun foo(p: R|kotlin/Array|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.fir.k2.txt new file mode 100644 index 00000000000..14547b4f975 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNotVarargPrimitive : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/IntArray?|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritNotVarargPrimitive.Super| { + public abstract fun foo(p0: R|kotlin/IntArray?|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.fir.k2.txt new file mode 100644 index 00000000000..ac145d1578e --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNullability : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritNullability.Super| { + public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.fir.k2.txt new file mode 100644 index 00000000000..a28ca38b23c --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritProjectionKind : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritProjectionKind.Super| { + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.fir.k2.txt new file mode 100644 index 00000000000..1c89887b4ea --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritReadOnliness : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/List|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritReadOnliness.Super| { + public abstract fun foo(p: R|kotlin/collections/List|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.fir.k2.txt new file mode 100644 index 00000000000..5678204bb5b --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritVararg : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(vararg p0: R|kotlin/Array|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritVararg.Super| { + public abstract fun foo(vararg p0: R|kotlin/Array|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.fir.k2.txt new file mode 100644 index 00000000000..8b0b9027beb --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritVarargInteger : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(vararg p0: R|kotlin/Array|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritVarargInteger.Super| { + public abstract fun foo(vararg p0: R|kotlin/Array|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.fir.k2.txt new file mode 100644 index 00000000000..b3a71c3b0e6 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritVarargNotNull : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(vararg p: R|kotlin/Array|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritVarargNotNull.Super| { + public abstract fun foo(vararg p: R|kotlin/Array|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.fir.k2.txt new file mode 100644 index 00000000000..e6562b7a267 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritVarargPrimitive : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(vararg p0: R|kotlin/IntArray|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritVarargPrimitive.Super| { + public abstract fun foo(vararg p0: R|kotlin/IntArray|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.fir.k2.txt new file mode 100644 index 00000000000..53bd434f3d8 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.fir.k2.txt @@ -0,0 +1,21 @@ +public abstract interface Kt3302 : R|kotlin/Any| { + public abstract interface BSONObject : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun put(p0: R|kotlin/String|, p1: R|kotlin/Any|): R|kotlin/Any?| + + } + + public abstract interface LinkedHashMap : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun put(key: R|K|, value: R|V|): R|V?| + + } + + public abstract interface BasicBSONObject : R|test/Kt3302.LinkedHashMap|, R|test/Kt3302.BSONObject| { + public abstract fun put(key: R|kotlin/String|, value: R|kotlin/Any|): R|kotlin/Any?| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.fir.k2.txt new file mode 100644 index 00000000000..28eb68ef113 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface MutableToReadOnly : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/MutableToReadOnly.Super| { + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.fir.k2.txt new file mode 100644 index 00000000000..a85460d82f7 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface NotNullToNullable : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/NotNullToNullable.Super| { + public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.fir.k2.txt new file mode 100644 index 00000000000..3c5e9f6f747 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface NullableToNotNull : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/String?|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/NullableToNotNull.Super| { + public abstract fun foo(p0: R|kotlin/String?|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.fir.k2.txt new file mode 100644 index 00000000000..7fdbde8f066 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface NullableToNotNullKotlinSignature : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/String?|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/NullableToNotNullKotlinSignature.Super| { + public abstract fun foo(p: R|kotlin/String?|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.fir.k2.txt new file mode 100644 index 00000000000..635b196dedb --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface OverrideWithErasedParameter : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|T?|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/OverrideWithErasedParameter.Super| { + public abstract fun foo(p0: R|T?|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.fir.k2.txt new file mode 100644 index 00000000000..ee54154694b --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface ReadOnlyToMutable : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/List|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/ReadOnlyToMutable.Super| { + public abstract fun foo(p: R|kotlin/collections/List|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.fir.k2.txt new file mode 100644 index 00000000000..3eac9aa0b16 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.fir.k2.txt @@ -0,0 +1,21 @@ +public abstract interface SubclassFromGenericAndNot : R|kotlin/Any| { + public abstract interface NonGeneric : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit| + + } + + public abstract interface Generic : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(key: R|T|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/SubclassFromGenericAndNot.NonGeneric|, R|test/SubclassFromGenericAndNot.Generic| { + public abstract fun foo(key: R|kotlin/String|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.fir.k2.txt new file mode 100644 index 00000000000..adf9fb7ce43 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface SubstitutedClassParameter : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(t: R|T|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/SubstitutedClassParameter.Super| { + public abstract fun foo(t: R|kotlin/String|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.fir.k2.txt new file mode 100644 index 00000000000..ea4d777a3fc --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.fir.k2.txt @@ -0,0 +1,21 @@ +public abstract interface SubstitutedClassParameters : R|kotlin/Any| { + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(t: R|T|): R|kotlin/Unit| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(t: R|E|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/SubstitutedClassParameters.Super1|, R|test/SubstitutedClassParameters.Super2| { + public abstract fun foo(t: R|kotlin/String|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.fir.k2.txt new file mode 100644 index 00000000000..9e0a64a1ce3 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface AddNotNullJavaSubtype : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence?| + + } + + public abstract interface Sub : R|test/AddNotNullJavaSubtype.Super| { + public abstract fun foo(): R|kotlin/String| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.fir.k2.txt new file mode 100644 index 00000000000..27c11b8c32b --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface AddNotNullSameJavaType : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence?| + + } + + public abstract interface Sub : R|test/AddNotNullSameJavaType.Super| { + public abstract fun foo(): R|kotlin/CharSequence| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.fir.k2.txt new file mode 100644 index 00000000000..d938669dec0 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface AddNullabilityJavaSubtype : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + + public abstract interface Sub : R|test/AddNullabilityJavaSubtype.Super| { + public abstract fun foo(): R|kotlin/String| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.fir.k2.txt new file mode 100644 index 00000000000..76948493fca --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface AddNullabilitySameGenericType1 : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface Sub : R|test/AddNullabilitySameGenericType1.Super| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.fir.k2.txt new file mode 100644 index 00000000000..84fc8caadbc --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface AddNullabilitySameGenericType2 : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface Sub : R|test/AddNullabilitySameGenericType2.Super| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.fir.k2.txt new file mode 100644 index 00000000000..ee76e571395 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface AddNullabilitySameJavaType : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + + public abstract interface Sub : R|test/AddNullabilitySameJavaType.Super| { + public abstract fun foo(): R|kotlin/CharSequence| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.fir.k2.txt new file mode 100644 index 00000000000..c76d8abe726 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface CantMakeImmutableInSubclass : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + + public abstract interface Sub : R|test/CantMakeImmutableInSubclass.Super| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.fir.k2.txt new file mode 100644 index 00000000000..359a5170795 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.fir.k2.txt @@ -0,0 +1,19 @@ +public abstract interface DeeplySubstitutedClassParameter : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + + public abstract interface Middle : R|test/DeeplySubstitutedClassParameter.Super| { + public abstract fun foo(): R|E| + + } + + public abstract interface Sub : R|test/DeeplySubstitutedClassParameter.Middle| { + public abstract fun foo(): R|kotlin/String| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.fir.k2.txt new file mode 100644 index 00000000000..f43271b5993 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.fir.k2.txt @@ -0,0 +1,17 @@ +public abstract interface DeeplySubstitutedClassParameter2 : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + + public abstract interface Middle : R|test/DeeplySubstitutedClassParameter2.Super| { + } + + public abstract interface Sub : R|test/DeeplySubstitutedClassParameter2.Middle| { + public abstract fun foo(): R|kotlin/String| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.fir.k2.txt new file mode 100644 index 00000000000..9c23fa6fe30 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.fir.k2.txt @@ -0,0 +1,17 @@ +public abstract interface HalfSubstitutedTypeParameters : R|kotlin/Any| { + public abstract interface TrickyList : R|kotlin/collections/MutableList| { + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface Sub : R|test/HalfSubstitutedTypeParameters.Super| { + public abstract fun foo(): R|test/HalfSubstitutedTypeParameters.TrickyList| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.fir.k2.txt new file mode 100644 index 00000000000..e7eb8902e65 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNullabilityGenericSubclassSimple : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + + public abstract interface Sub : R|test/InheritNullabilityGenericSubclassSimple.Super| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.fir.k2.txt new file mode 100644 index 00000000000..2ac3896d204 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNullabilityJavaSubtype : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + + public abstract interface Sub : R|test/InheritNullabilityJavaSubtype.Super| { + public abstract fun foo(): R|kotlin/String| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.fir.k2.txt new file mode 100644 index 00000000000..02d00f176c8 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNullabilitySameGenericType : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface Sub : R|test/InheritNullabilitySameGenericType.Super| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.fir.k2.txt new file mode 100644 index 00000000000..fc13e7f66d0 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNullabilitySameJavaType : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + + public abstract interface Sub : R|test/InheritNullabilitySameJavaType.Super| { + public abstract fun foo(): R|kotlin/CharSequence| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.fir.k2.txt new file mode 100644 index 00000000000..811988492d5 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritProjectionKind : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + + public abstract interface Sub : R|test/InheritProjectionKind.Super| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.fir.k2.txt new file mode 100644 index 00000000000..ef64ef991be --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritReadOnlinessOfArgument : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List>| + + } + + public abstract interface Sub : R|test/InheritReadOnlinessOfArgument.Super| { + public abstract fun foo(): R|kotlin/collections/List>| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.fir.k2.txt new file mode 100644 index 00000000000..9294e096f23 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritReadOnlinessSameClass : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List| + + } + + public abstract interface Sub : R|test/InheritReadOnlinessSameClass.Super| { + public abstract fun foo(): R|kotlin/collections/List| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.fir.k2.txt new file mode 100644 index 00000000000..0532d3ec14b --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface InheritReadOnlinessSubclass : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/Collection| + + } + + public abstract interface Sub : R|test/InheritReadOnlinessSubclass.Super| { + public abstract fun foo(): R|kotlin/collections/List| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.fir.k2.txt new file mode 100644 index 00000000000..56267cc30cc --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface SameProjectionKind : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection?| + + } + + public abstract interface Sub : R|test/SameProjectionKind.Super| { + public abstract fun foo(): R|kotlin/collections/MutableCollection?| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.fir.k2.txt new file mode 100644 index 00000000000..9d543bb2585 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.fir.k2.txt @@ -0,0 +1,21 @@ +public abstract interface SubclassFromGenericAndNot : R|kotlin/Any| { + public abstract interface NonGeneric : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/String?| + + } + + public abstract interface Generic : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + + public abstract interface Sub : R|test/SubclassFromGenericAndNot.NonGeneric|, R|test/SubclassFromGenericAndNot.Generic| { + public abstract fun foo(): R|kotlin/String| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.fir.k2.txt new file mode 100644 index 00000000000..384d19bb694 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface SubstitutedClassParameter : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + + public abstract interface Sub : R|test/SubstitutedClassParameter.Super| { + public abstract fun foo(): R|kotlin/String| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.fir.k2.txt new file mode 100644 index 00000000000..a0733b7f45f --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.fir.k2.txt @@ -0,0 +1,21 @@ +public abstract interface SubstitutedClassParameters : R|kotlin/Any| { + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|E| + + } + + public abstract interface Sub : R|test/SubstitutedClassParameters.Super1|, R|test/SubstitutedClassParameters.Super2| { + public abstract fun foo(): R|kotlin/String| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.fir.k2.txt new file mode 100644 index 00000000000..9d34aebd896 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.fir.k2.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesConflictingProjectionKinds : R|kotlin/Any| { + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + + public abstract interface Sub : R|test/TwoSuperclassesConflictingProjectionKinds.Super1|, R|test/TwoSuperclassesConflictingProjectionKinds.Super2| { + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.fir.k2.txt new file mode 100644 index 00000000000..f6a5e73bc53 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.fir.k2.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesInvariantAndCovariantInferMutability : R|kotlin/Any| { + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List>| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableList>| + + } + + public abstract interface Sub : R|test/TwoSuperclassesInvariantAndCovariantInferMutability.Super1|, R|test/TwoSuperclassesInvariantAndCovariantInferMutability.Super2| { + public abstract fun foo(): R|kotlin/collections/MutableList>| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.fir.k2.txt new file mode 100644 index 00000000000..64642cdeaf9 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.fir.k2.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesInvariantAndCovariantInferNullability : R|kotlin/Any| { + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface Sub : R|test/TwoSuperclassesInvariantAndCovariantInferNullability.Super1|, R|test/TwoSuperclassesInvariantAndCovariantInferNullability.Super2| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.fir.k2.txt new file mode 100644 index 00000000000..cdf7d1ff983 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.fir.k2.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesMutableAndNot : R|kotlin/Any| { + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List| + + } + + public abstract interface Sub : R|test/TwoSuperclassesMutableAndNot.Super1|, R|test/TwoSuperclassesMutableAndNot.Super2| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.fir.k2.txt new file mode 100644 index 00000000000..6531d418218 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.fir.k2.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesReturnJavaSubtype : R|kotlin/Any| { + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence?| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + + public abstract interface Sub : R|test/TwoSuperclassesReturnJavaSubtype.Super1|, R|test/TwoSuperclassesReturnJavaSubtype.Super2| { + public abstract fun foo(): R|kotlin/String| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.fir.k2.txt new file mode 100644 index 00000000000..a4911fc5d2f --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.fir.k2.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesReturnSameJavaType : R|kotlin/Any| { + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence?| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + + public abstract interface Sub : R|test/TwoSuperclassesReturnSameJavaType.Super1|, R|test/TwoSuperclassesReturnSameJavaType.Super2| { + public abstract fun foo(): R|kotlin/CharSequence| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.fir.k2.txt new file mode 100644 index 00000000000..5b5aa9c8b56 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.fir.k2.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesSupplementNotNull : R|kotlin/Any| { + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List?| + + } + + public abstract interface Sub : R|test/TwoSuperclassesSupplementNotNull.Super1|, R|test/TwoSuperclassesSupplementNotNull.Super2| { + public abstract fun foo(): R|kotlin/collections/List| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.fir.k2.txt new file mode 100644 index 00000000000..0c385493ef9 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface TypeParamOfClass : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + + public abstract interface Sub : R|test/TypeParamOfClass.Super| { + public abstract fun foo(): R|T| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.fir.k2.txt new file mode 100644 index 00000000000..cc1020ac3c3 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface TypeParamOfClassSubstituted : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + + public abstract interface Sub : R|test/TypeParamOfClassSubstituted.Super| { + public abstract fun foo(): R|kotlin/String| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.fir.k2.txt new file mode 100644 index 00000000000..d3425e01469 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.fir.k2.txt @@ -0,0 +1,14 @@ +public abstract interface TypeParamOfFun : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + + public abstract interface Sub : R|test/TypeParamOfFun.Super| { + public abstract fun foo(): R|E| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.fir.k2.txt new file mode 100644 index 00000000000..d90beda714b --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.fir.k2.txt @@ -0,0 +1,12 @@ +public abstract interface InheritMutability : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun |> foo(a: R|A|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritMutability.Super| { + public abstract fun |> foo(a: R|B|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.fir.k2.txt new file mode 100644 index 00000000000..c4fa6420817 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.fir.k2.txt @@ -0,0 +1,12 @@ +public abstract interface InheritNullability : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun foo(a: R|A|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritNullability.Super| { + public abstract fun foo(a: R|B|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.fir.k2.txt new file mode 100644 index 00000000000..6d1f6582650 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.fir.k2.txt @@ -0,0 +1,12 @@ +public abstract interface InheritReadOnliness : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun |> foo(a: R|A|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/InheritReadOnliness.Super| { + public abstract fun |> foo(a: R|B|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.fir.k2.txt new file mode 100644 index 00000000000..d2d7396e4ed --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.fir.k2.txt @@ -0,0 +1,12 @@ +public abstract interface TwoBounds : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun foo(a: R|A|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/TwoBounds.Super| { + public abstract fun foo(a: R|B|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.fir.k2.txt new file mode 100644 index 00000000000..fd941e17e4c --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.fir.k2.txt @@ -0,0 +1,17 @@ +public abstract interface TwoSuperclasses : R|kotlin/Any| { + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun foo(a: R|A|): R|kotlin/Unit| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun foo(a: R|B|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/TwoSuperclasses.Super1|, R|test/TwoSuperclasses.Super2| { + public abstract fun foo(a: R|C|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.fir.k2.txt new file mode 100644 index 00000000000..f751fa9bcfc --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.fir.k2.txt @@ -0,0 +1,12 @@ +public abstract interface TwoTypeParameters : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun foo(a: R|A|, b: R|B|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/TwoTypeParameters.Super| { + public abstract fun foo(a: R|B|, b: R|A|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.fir.k2.txt new file mode 100644 index 00000000000..0b041e7af81 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.fir.k2.txt @@ -0,0 +1,12 @@ +public abstract interface UseParameterAsUpperBound : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun foo(a: R|A|, b: R|B|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/UseParameterAsUpperBound.Super| { + public abstract fun foo(a: R|B|, b: R|A|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.fir.k2.txt new file mode 100644 index 00000000000..0c755f8370e --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.fir.k2.txt @@ -0,0 +1,12 @@ +public abstract interface UseParameterInUpperBound : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun |> foo(a: R|A|, b: R|B|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/UseParameterInUpperBound.Super| { + public abstract fun |> foo(a: R|B|, b: R|A|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.fir.k2.txt new file mode 100644 index 00000000000..79607a80840 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.fir.k2.txt @@ -0,0 +1,12 @@ +public abstract interface UseParameterInUpperBoundWithKotlinSignature : R|kotlin/Any| { + public abstract interface Super : R|kotlin/Any| { + public abstract fun |> foo(a: R|A|, b: R|B|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/UseParameterInUpperBoundWithKotlinSignature.Super| { + public abstract fun |> foo(b: R|B|, a: R|A|): R|kotlin/Unit| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectInClass.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectInClass.fir.txt new file mode 100644 index 00000000000..f474a967506 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectInClass.fir.txt @@ -0,0 +1,11 @@ +public final class A : R|kotlin/Any| { + public constructor(): R|test/A| + + public final object B : R|kotlin/Any| { + public final fun foo(a: R|kotlin/Int|): R|kotlin/String| + + private constructor(): R|test/A.B| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectMembers.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectMembers.fir.txt new file mode 100644 index 00000000000..4fbdccc52fb --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectMembers.fir.txt @@ -0,0 +1,6 @@ +public final object SomeObject : R|kotlin/Any| { + public final fun test(a: R|kotlin/Int|): R|kotlin/Int| + + private constructor(): R|test/SomeObject| + +} diff --git a/compiler/testData/loadJava/compiledKotlin/fromLoadJava/packageLevelObject.fir.txt b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/packageLevelObject.fir.txt new file mode 100644 index 00000000000..77a618ba94f --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fromLoadJava/packageLevelObject.fir.txt @@ -0,0 +1,4 @@ +public final object Bar : R|kotlin/Any| { + private constructor(): R|test/Bar| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/fun/vararg/NonLastVararg.fir.txt b/compiler/testData/loadJava/compiledKotlin/fun/vararg/nonLastVararg.fir.k1.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/fun/vararg/NonLastVararg.fir.txt rename to compiler/testData/loadJava/compiledKotlin/fun/vararg/nonLastVararg.fir.k1.txt index f8628b0bdb5..40babdd81bc 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/fun/vararg/NonLastVararg.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/fun/vararg/nonLastVararg.fir.k1.txt @@ -1,4 +1,3 @@ public final fun f(vararg t: R|kotlin/Array|, f: R|() -> kotlin/Unit|): R|kotlin/Unit| public final fun f(vararg t: R|kotlin/IntArray|, f: R|() -> kotlin/Unit|): R|kotlin/Unit| - diff --git a/compiler/testData/loadJava/compiledKotlin/fun/vararg/nonLastVararg.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/fun/vararg/nonLastVararg.fir.k2.txt new file mode 100644 index 00000000000..9d70827a435 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/fun/vararg/nonLastVararg.fir.k2.txt @@ -0,0 +1,3 @@ +public final fun f(vararg t: R|kotlin/IntArray|, f: R|() -> kotlin/Unit|): R|kotlin/Unit| + +public final fun f(vararg t: R|kotlin/Array|, f: R|() -> kotlin/Unit|): R|kotlin/Unit| diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/inline/InlineFunction.fir.txt b/compiler/testData/loadJava/compiledKotlin/inline/inlineFunction.fir.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/inline/InlineFunction.fir.txt rename to compiler/testData/loadJava/compiledKotlin/inline/inlineFunction.fir.txt diff --git a/compiler/testData/loadJava/compiledKotlin/memberOrder/callablesNameClash.fir.txt b/compiler/testData/loadJava/compiledKotlin/memberOrder/callablesNameClash.fir.txt new file mode 100644 index 00000000000..cf9f96c5b95 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/memberOrder/callablesNameClash.fir.txt @@ -0,0 +1,28 @@ +public final fun a(): R|kotlin/Int| + +public final val a: R|kotlin/Int| + public get(): R|kotlin/Int| + +public final fun b(): R|kotlin/Int| + +public final fun c(): R|kotlin/Int| + +public final val c: R|kotlin/Int| + public get(): R|kotlin/Int| + +public final class A : R|kotlin/Any| { + public final fun a(): R|kotlin/Int| + + public final fun b(): R|kotlin/Int| + + public final fun c(): R|kotlin/Int| + + public final val a: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val c: R|kotlin/Int| + public get(): R|kotlin/Int| + + public constructor(): R|test/A| + +} diff --git a/compiler/testData/loadJava/compiledKotlin/memberOrder/extensionMembers.fir.k1.txt b/compiler/testData/loadJava/compiledKotlin/memberOrder/extensionMembers.fir.k1.txt new file mode 100644 index 00000000000..e738ee3a2fe --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/memberOrder/extensionMembers.fir.k1.txt @@ -0,0 +1,34 @@ +public final class A : R|kotlin/Any| { + public final fun f1(): R|kotlin/Unit| + + public final fun f2(): R|kotlin/Unit| + + public final fun f3(): R|kotlin/Unit| + + public final fun R|kotlin/Int|.f1(): R|kotlin/Unit| + + public final fun R|kotlin/String|.f1(): R|kotlin/Unit| + + public final fun R|kotlin/Int|.f2(): R|kotlin/Unit| + + public final fun R|kotlin/String|.f2(): R|kotlin/Unit| + + public final fun R|kotlin/Int|.f3(): R|kotlin/Unit| + + public final fun R|kotlin/String|.f3(): R|kotlin/Unit| + + public final val c: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val d: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val R|kotlin/Int|.c: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val R|kotlin/Int|.d: R|kotlin/Int| + public get(): R|kotlin/Int| + + public constructor(): R|test/A| + +} diff --git a/compiler/testData/loadJava/compiledKotlin/memberOrder/extensionMembers.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/memberOrder/extensionMembers.fir.k2.txt new file mode 100644 index 00000000000..4285f8de669 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/memberOrder/extensionMembers.fir.k2.txt @@ -0,0 +1,34 @@ +public final class A : R|kotlin/Any| { + public final fun f1(): R|kotlin/Unit| + + public final fun R|kotlin/String|.f1(): R|kotlin/Unit| + + public final fun R|kotlin/Int|.f1(): R|kotlin/Unit| + + public final fun f2(): R|kotlin/Unit| + + public final fun R|kotlin/String|.f2(): R|kotlin/Unit| + + public final fun R|kotlin/Int|.f2(): R|kotlin/Unit| + + public final fun f3(): R|kotlin/Unit| + + public final fun R|kotlin/String|.f3(): R|kotlin/Unit| + + public final fun R|kotlin/Int|.f3(): R|kotlin/Unit| + + public final val c: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val R|kotlin/Int|.c: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val d: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val R|kotlin/Int|.d: R|kotlin/Int| + public get(): R|kotlin/Int| + + public constructor(): R|test/A| + +} diff --git a/compiler/testData/loadJava/compiledKotlin/memberOrder/extensionPropertiesNameClash.fir.k1.txt b/compiler/testData/loadJava/compiledKotlin/memberOrder/extensionPropertiesNameClash.fir.k1.txt new file mode 100644 index 00000000000..75d8c5f1b97 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/memberOrder/extensionPropertiesNameClash.fir.k1.txt @@ -0,0 +1,19 @@ +public final class A : R|kotlin/Any| { + public final val a: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val c: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val R|kotlin/Int|.a: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val R|kotlin/Int|.b: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val R|kotlin/Int|.c: R|kotlin/Int| + public get(): R|kotlin/Int| + + public constructor(): R|test/A| + +} diff --git a/compiler/testData/loadJava/compiledKotlin/memberOrder/extensionPropertiesNameClash.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/memberOrder/extensionPropertiesNameClash.fir.k2.txt new file mode 100644 index 00000000000..d11bfe3c8d0 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/memberOrder/extensionPropertiesNameClash.fir.k2.txt @@ -0,0 +1,19 @@ +public final class A : R|kotlin/Any| { + public final val a: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val R|kotlin/Int|.a: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val R|kotlin/Int|.b: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val c: R|kotlin/Int| + public get(): R|kotlin/Int| + + public final val R|kotlin/Int|.c: R|kotlin/Int| + public get(): R|kotlin/Int| + + public constructor(): R|test/A| + +} diff --git a/compiler/testData/loadJava/compiledKotlin/memberOrder/innerClasses.fir.txt b/compiler/testData/loadJava/compiledKotlin/memberOrder/innerClasses.fir.txt new file mode 100644 index 00000000000..6da93f4a663 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/memberOrder/innerClasses.fir.txt @@ -0,0 +1,30 @@ +public final class O : R|kotlin/Any| { + public constructor(): R|test/O| + + public final class A1 : R|kotlin/Any| { + public constructor(): R|test/O.A1| + + } + + public final inner class A2 : R|kotlin/Any| { + public test/O.constructor(): R|test/O.A2| + + } + + public final class B1 : R|kotlin/Any| { + public constructor(): R|test/O.B1| + + } + + public final inner class B2 : R|kotlin/Any| { + public test/O.constructor(): R|test/O.B2| + + } + + public abstract interface C1 : R|kotlin/Any| { + } + + public abstract interface C2 : R|kotlin/Any| { + } + +} diff --git a/compiler/testData/loadJava/compiledKotlin/memberOrder/topLevelCallables.fir.txt b/compiler/testData/loadJava/compiledKotlin/memberOrder/topLevelCallables.fir.txt new file mode 100644 index 00000000000..7d0f37d77ab --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/memberOrder/topLevelCallables.fir.txt @@ -0,0 +1,14 @@ +public final val f1: R|kotlin/Int| + public get(): R|kotlin/Int| + +public final fun f2(): R|kotlin/Int| + +public final val f3: R|kotlin/Int| + public get(): R|kotlin/Int| + +public final fun f4(): R|kotlin/Int| + +public final fun f4(i: R|kotlin/Int|): R|kotlin/Int| + +public final val f5: R|kotlin/Int| + public get(): R|kotlin/Int| diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/nested/DeepInnerGeneric.fir.txt b/compiler/testData/loadJava/compiledKotlin/nestedClasses/deepInnerGeneric.fir.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/nested/DeepInnerGeneric.fir.txt rename to compiler/testData/loadJava/compiledKotlin/nestedClasses/deepInnerGeneric.fir.txt index e7737eb6413..384216ab72f 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/nested/DeepInnerGeneric.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/nestedClasses/deepInnerGeneric.fir.txt @@ -21,4 +21,3 @@ public final class A : R|kotlin/Any| { } } - diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/nested/InnerClassReferencesOuterTP.fir.txt b/compiler/testData/loadJava/compiledKotlin/nestedClasses/innerClassReferencesOuterTP.fir.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/nested/InnerClassReferencesOuterTP.fir.txt rename to compiler/testData/loadJava/compiledKotlin/nestedClasses/innerClassReferencesOuterTP.fir.txt index a980e7f7609..d42158d8a0e 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/nested/InnerClassReferencesOuterTP.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/nestedClasses/innerClassReferencesOuterTP.fir.txt @@ -7,4 +7,3 @@ public final class InnerClassReferencesOuterTP

: R|kotlin/Any| { } } - diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/nested/MembersReferenceOuterTP.fir.txt b/compiler/testData/loadJava/compiledKotlin/nestedClasses/membersReferenceOuterTP.fir.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/nested/MembersReferenceOuterTP.fir.txt rename to compiler/testData/loadJava/compiledKotlin/nestedClasses/membersReferenceOuterTP.fir.txt index b93f3c1b243..9329351d3d6 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/nested/MembersReferenceOuterTP.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/nestedClasses/membersReferenceOuterTP.fir.txt @@ -17,4 +17,3 @@ public final class MembersReferenceOuterTP

: R|kotlin/Any| { } } - diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/platformTypes/NotnullTypeArgument.fir.txt b/compiler/testData/loadJava/compiledKotlin/platformTypes/notnullTypeArgument.fir.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/platformTypes/NotnullTypeArgument.fir.txt rename to compiler/testData/loadJava/compiledKotlin/platformTypes/notnullTypeArgument.fir.txt diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/platformTypes/NullableTypeArgument.fir.txt b/compiler/testData/loadJava/compiledKotlin/platformTypes/nullableTypeArgument.fir.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/platformTypes/NullableTypeArgument.fir.txt rename to compiler/testData/loadJava/compiledKotlin/platformTypes/nullableTypeArgument.fir.txt diff --git a/compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarModality.fir.txt b/compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarModality.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarModality.fir.txt rename to compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarModality.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarModality.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarModality.fir.k2.txt new file mode 100644 index 00000000000..e9a9b1d9dd5 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarModality.fir.k2.txt @@ -0,0 +1,29 @@ +public open class ClassVarModality : R|kotlin/Any| { + public open var property1: R|kotlin/Int| + public get(): R|kotlin/Int| + public set(value: R|kotlin/Int|): R|kotlin/Unit| + + internal final var property2: R|kotlin/Int| + internal get(): R|kotlin/Int| + internal set(value: R|kotlin/Int|): R|kotlin/Unit| + + public open var property3: R|kotlin/Int| + public get(): R|kotlin/Int| + public set(value: R|kotlin/Int|): R|kotlin/Unit| + + internal final var property4: R|kotlin/Int| + internal get(): R|kotlin/Int| + private set(value: R|kotlin/Int|): R|kotlin/Unit| + + public constructor(): R|test/ClassVarModality| + +} + +public abstract class ClassVarModalityAbstract : R|kotlin/Any| { + public abstract var property1: R|java/util/Date| + public get(): R|java/util/Date| + public set(value: R|java/util/Date|): R|kotlin/Unit| + + public constructor(): R|test/ClassVarModalityAbstract| + +} diff --git a/compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithSet.fir.txt b/compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithSet.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithSet.fir.txt rename to compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithSet.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithSet.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithSet.fir.k2.txt new file mode 100644 index 00000000000..6a157da5f2d --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithSet.fir.k2.txt @@ -0,0 +1,40 @@ +public final class ClassVal : R|kotlin/Any| { + public final var property1: R|kotlin/Int| + public get(): R|kotlin/Int| + public set(value: R|kotlin/Int|): R|kotlin/Unit| + + public final var property10: R|kotlin/Int| + public get(): R|kotlin/Int| + protected set(value: R|kotlin/Int|): R|kotlin/Unit| + + public final var property11: R|kotlin/Int| + public get(): R|kotlin/Int| + internal set(value: R|kotlin/Int|): R|kotlin/Unit| + + public final var property2: R|java/lang/Object| + public get(): R|java/lang/Object| + protected set(value: R|java/lang/Object|): R|kotlin/Unit| + + public final var property3: R|java/lang/Object| + public get(): R|java/lang/Object| + private set(value: R|java/lang/Object|): R|kotlin/Unit| + + protected final var property4: R|kotlin/String| + protected get(): R|kotlin/String| + protected set(value: R|kotlin/String|): R|kotlin/Unit| + + protected final var property5: R|kotlin/String| + protected get(): R|kotlin/String| + private set(value: R|kotlin/String|): R|kotlin/Unit| + + public final var property8: R|kotlin/Int| + public get(): R|kotlin/Int| + public set(value: R|kotlin/Int|): R|kotlin/Unit| + + public final var property9: R|kotlin/Int| + public get(): R|kotlin/Int| + private set(value: R|kotlin/Int|): R|kotlin/Unit| + + public constructor(): R|test/ClassVal| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/prop/NonConstValWithConstantValueAttribute.fir.txt b/compiler/testData/loadJava/compiledKotlin/prop/nonConstValWithConstantValueAttribute.fir.txt similarity index 76% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/prop/NonConstValWithConstantValueAttribute.fir.txt rename to compiler/testData/loadJava/compiledKotlin/prop/nonConstValWithConstantValueAttribute.fir.txt index 7baddd3ace8..5387b275946 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/prop/NonConstValWithConstantValueAttribute.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/prop/nonConstValWithConstantValueAttribute.fir.txt @@ -1,14 +1,14 @@ -public final val nonConstVal1: R|kotlin/Int| = Int(1) +public final val nonConstVal1: R|kotlin/Int| public get(): R|kotlin/Int| public final class C : R|kotlin/Any| { - public final val nonConstVal2: R|kotlin/Int| = Int(2) + public final val nonConstVal2: R|kotlin/Int| public get(): R|kotlin/Int| public constructor(): R|test/C| public final companion object Companion : R|kotlin/Any| { - public final val nonConstVal3: R|kotlin/Int| = Int(3) + public final val nonConstVal3: R|kotlin/Int| public get(): R|kotlin/Int| private constructor(): R|test/C.Companion| @@ -27,4 +27,3 @@ public abstract interface I : R|kotlin/Any| { } } - diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlInteger.fir.txt b/compiler/testData/loadJava/compiledKotlin/type/jlInteger.fir.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlInteger.fir.txt rename to compiler/testData/loadJava/compiledKotlin/type/jlInteger.fir.txt diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlIntegerQ.fir.txt b/compiler/testData/loadJava/compiledKotlin/type/jlIntegerQ.fir.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlIntegerQ.fir.txt rename to compiler/testData/loadJava/compiledKotlin/type/jlIntegerQ.fir.txt diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlNumber.fir.txt b/compiler/testData/loadJava/compiledKotlin/type/jlNumber.fir.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlNumber.fir.txt rename to compiler/testData/loadJava/compiledKotlin/type/jlNumber.fir.txt diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlObject.fir.txt b/compiler/testData/loadJava/compiledKotlin/type/jlObject.fir.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlObject.fir.txt rename to compiler/testData/loadJava/compiledKotlin/type/jlObject.fir.txt diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlObjectQ.fir.txt b/compiler/testData/loadJava/compiledKotlin/type/jlObjectQ.fir.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlObjectQ.fir.txt rename to compiler/testData/loadJava/compiledKotlin/type/jlObjectQ.fir.txt diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlString.fir.txt b/compiler/testData/loadJava/compiledKotlin/type/jlString.fir.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlString.fir.txt rename to compiler/testData/loadJava/compiledKotlin/type/jlString.fir.txt diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlStringQ.fir.txt b/compiler/testData/loadJava/compiledKotlin/type/jlStringQ.fir.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/type/JlStringQ.fir.txt rename to compiler/testData/loadJava/compiledKotlin/type/jlStringQ.fir.txt diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/type/Platform.fir.txt b/compiler/testData/loadJava/compiledKotlin/type/platform.fir.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlinWithStdlib/type/Platform.fir.txt rename to compiler/testData/loadJava/compiledKotlin/type/platform.fir.txt index 9a73287ac08..e9d1b80ba14 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/type/Platform.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/type/platform.fir.txt @@ -3,4 +3,3 @@ public final fun array(a: R|kotlin/Array|): R|ft, kotlin/collections/List?>| public final fun printStream(): R|java/io/PrintStream!| - diff --git a/compiler/testData/loadJava/compiledKotlin/visibility/PrivateClassMembers.fir.txt b/compiler/testData/loadJava/compiledKotlin/visibility/PrivateClassMembers.fir.k1.txt similarity index 100% rename from compiler/testData/loadJava/compiledKotlin/visibility/PrivateClassMembers.fir.txt rename to compiler/testData/loadJava/compiledKotlin/visibility/PrivateClassMembers.fir.k1.txt diff --git a/compiler/testData/loadJava/compiledKotlin/visibility/PrivateClassMembers.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/visibility/PrivateClassMembers.fir.k2.txt new file mode 100644 index 00000000000..9b9a1d3dfb2 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/visibility/PrivateClassMembers.fir.k2.txt @@ -0,0 +1,16 @@ +public final class PrivateClassMembers : R|kotlin/Any| { + private final fun f(): R|kotlin/Int| + + internal final val internal: R|kotlin/Int| + internal get(): R|kotlin/Int| + + private final var r: R|kotlin/Int| + private get(): R|kotlin/Int| + private set(value: R|kotlin/Int|): R|kotlin/Unit| + + private final val v: R|kotlin/Int| + private get(): R|kotlin/Int| + + public constructor(): R|test/PrivateClassMembers| + +} diff --git a/compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.fir.txt b/compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.fir.k1.txt similarity index 99% rename from compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.fir.txt rename to compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.fir.k1.txt index 7fd29611dae..e769b0bf01a 100644 --- a/compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.fir.txt +++ b/compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.fir.k1.txt @@ -1,4 +1,3 @@ internal final var topLevelVar: R|kotlin/Int| internal get(): R|kotlin/Int| private set(: R|kotlin/Int|): R|kotlin/Unit| - diff --git a/compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.fir.k2.txt b/compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.fir.k2.txt new file mode 100644 index 00000000000..4f39bb050b2 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.fir.k2.txt @@ -0,0 +1,3 @@ +internal final var topLevelVar: R|kotlin/Int| + internal get(): R|kotlin/Int| + private set(value: R|kotlin/Int|): R|kotlin/Unit| diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/AnnotationInAnnotationArguments.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/AnnotationInAnnotationArguments.fir.txt index f68a86e16ef..5cb215b3a86 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/AnnotationInAnnotationArguments.fir.txt +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/AnnotationInAnnotationArguments.fir.txt @@ -1,21 +1,21 @@ -@R|test/OptionGroups|(o1 = @R|test/StringOptions|(option = (String(abc), String(d), String(ef))) , o2 = @R|test/EnumOption|(option = R|test/E.ENTRY|()) ) public final class AnnotationInAnnotationArguments : R|kotlin/Any| { +@R|test/OptionGroups|(o1 = @R|test/StringOptions|(option = (String(abc), String(d), String(ef))) , o2 = @R|test/EnumOption|(option = R|test/E.ENTRY|) ) public final class AnnotationInAnnotationArguments : R|kotlin/Any| { public constructor(): R|test/AnnotationInAnnotationArguments| } public final enum class E : R|kotlin/Enum| { - public final static fun valueOf(value: R|kotlin/String|): R|test/E| { + private constructor(): R|test/E| + + public final static enum entry ENTRY: R|test/E| + public final static fun values(): R|kotlin/Array| { } - public final static fun values(): R|kotlin/Array| { + public final static fun valueOf(value: R|kotlin/String|): R|test/E| { } public final static val entries: R|kotlin/enums/EnumEntries| public get(): R|kotlin/enums/EnumEntries| - private constructor(): R|test/E| - - public final static enum entry ENTRY: R|test/E| } public final annotation class EnumOption : R|kotlin/Annotation| { @@ -44,4 +44,3 @@ public final annotation class StringOptions : R|kotlin/Annotation| { public constructor(vararg option: R|kotlin/Array|): R|test/StringOptions| } - diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/ConstValInMultifileClass.fir.k1.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/ConstValInMultifileClass.fir.k1.txt new file mode 100644 index 00000000000..880164f87d2 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/ConstValInMultifileClass.fir.k1.txt @@ -0,0 +1,10 @@ +@PROPERTY:R|test/Anno|(value = String(OK)) public final const val constant: R|kotlin/String| = String(OK) + public get(): R|kotlin/String| + +public final annotation class Anno : R|kotlin/Annotation| { + public final val value: R|kotlin/String| + public get(): R|kotlin/String| + + public constructor(value: R|kotlin/String|): R|test/Anno| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/ConstValInMultifileClass.kt b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/ConstValInMultifileClass.kt index ab2913b0a3d..f20c5079a17 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/ConstValInMultifileClass.kt +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/ConstValInMultifileClass.kt @@ -1,3 +1,6 @@ +// IGNORE_FIR_METADATA_LOADING_K2 +// Ignore reason: KT-58080 + @file:JvmMultifileClass @file:JvmName("Test") package test diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/EnumArgumentWithCustomToString.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/EnumArgumentWithCustomToString.fir.txt index 316c9079e8d..1d588066a07 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/EnumArgumentWithCustomToString.fir.txt +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/EnumArgumentWithCustomToString.fir.txt @@ -1,16 +1,16 @@ public final enum class E : R|kotlin/Enum| { - public final static fun valueOf(value: R|kotlin/String|): R|test/E| { + private constructor(): R|test/E| + + public final static enum entry CAKE: R|test/E| + public final static fun values(): R|kotlin/Array| { } - public final static fun values(): R|kotlin/Array| { + public final static fun valueOf(value: R|kotlin/String|): R|test/E| { } public final static val entries: R|kotlin/enums/EnumEntries| public get(): R|kotlin/enums/EnumEntries| - private constructor(): R|test/E| - - public final static enum entry CAKE: R|test/E| } public final annotation class EnumAnno : R|kotlin/Annotation| { @@ -22,7 +22,7 @@ public final annotation class EnumAnno : R|kotlin/Annotation| { } public final class EnumArgumentWithCustomToString : R|kotlin/Any| { - @R|test/EnumAnno|(value = R|test/E.CAKE|()) @R|test/EnumArrayAnno|(value = (R|test/E.CAKE|(), R|test/E.CAKE|())) public final fun annotated(): R|kotlin/Unit| + @R|test/EnumAnno|(value = R|test/E.CAKE|) @R|test/EnumArrayAnno|(value = (R|test/E.CAKE|, R|test/E.CAKE|)) public final fun annotated(): R|kotlin/Unit| public constructor(): R|test/EnumArgumentWithCustomToString| @@ -35,4 +35,3 @@ public final annotation class EnumArrayAnno : R|kotlin/Annotation| { public constructor(vararg value: R|kotlin/Array|): R|test/EnumArrayAnno| } - diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/JvmFieldInInterfaceCompanion.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/JvmFieldInInterfaceCompanion.fir.txt new file mode 100644 index 00000000000..6d787dc6688 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/JvmFieldInInterfaceCompanion.fir.txt @@ -0,0 +1,13 @@ +public abstract interface I : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + @FIELD:R|kotlin/jvm/JvmField|() public final val x: R|kotlin/String| + public get(): R|kotlin/String| + + @FIELD:R|kotlin/jvm/JvmField|() public final val y: R|kotlin/String| + public get(): R|kotlin/String| + + private constructor(): R|test/I.Companion| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/WithUnsignedTypeParameters.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/WithUnsignedTypeParameters.fir.txt new file mode 100644 index 00000000000..cf6b4681e67 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/WithUnsignedTypeParameters.fir.txt @@ -0,0 +1,39 @@ +public final const val ubyteConst: R|kotlin/UByte| = Byte(10) + public get(): R|kotlin/UByte| + +public final const val uintConst: R|kotlin/UInt| = Int(30) + public get(): R|kotlin/UInt| + +public final const val ulongConst: R|kotlin/ULong| = Long(40) + public get(): R|kotlin/ULong| + +public final const val ushortConst: R|kotlin/UShort| = Short(20) + public get(): R|kotlin/UShort| + +public final class A : R|kotlin/Any| { + public final fun <@R|test/Ann|(ubyte = UByte(-1), ushort = UShort(-1), uint = UInt(-1), ulong = ULong(-1)) T> typeParam(): R|kotlin/Unit| + + public final fun unsigned(s: R|@R|test/Ann|(ubyte = UByte(1), ushort = UShort(2), uint = UInt(3), ulong = ULong(4)) kotlin/String|): R|kotlin/Unit| + + public final fun unsignedConsts(s: R|@R|test/Ann|(ubyte = UByte(10), ushort = UShort(20), uint = UInt(30), ulong = ULong(40)) kotlin/String|): R|kotlin/Unit| + + public constructor(): R|test/A| + +} + +@R|kotlin/annotation/Target|(allowedTargets = (R|kotlin/annotation/AnnotationTarget.TYPE|, R|kotlin/annotation/AnnotationTarget.TYPE_PARAMETER|)) public final annotation class Ann : R|kotlin/Annotation| { + public final val ubyte: R|kotlin/UByte| + public get(): R|kotlin/UByte| + + public final val uint: R|kotlin/UInt| + public get(): R|kotlin/UInt| + + public final val ulong: R|kotlin/ULong| + public get(): R|kotlin/ULong| + + public final val ushort: R|kotlin/UShort| + public get(): R|kotlin/UShort| + + public constructor(ubyte: R|kotlin/UByte|, ushort: R|kotlin/UShort|, uint: R|kotlin/UInt|, ulong: R|kotlin/ULong|): R|test/Ann| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/classMembers/EnumEntry.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/classMembers/EnumEntry.fir.txt index a5f48025a9b..030696e1e5a 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/classMembers/EnumEntry.fir.txt +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/classMembers/EnumEntry.fir.txt @@ -15,20 +15,19 @@ public final annotation class Bnno : R|kotlin/Annotation| { } public final enum class Eee : R|kotlin/Enum| { - public final static fun valueOf(value: R|kotlin/String|): R|test/Eee| { - } - - public final static fun values(): R|kotlin/Array| { - } - - public final static val entries: R|kotlin/enums/EnumEntries| - public get(): R|kotlin/enums/EnumEntries| - private constructor(): R|test/Eee| public final static enum entry Entry1: R|test/Eee| public final static enum entry Entry2: R|test/Eee| public final static enum entry Entry3: R|test/Eee| public final static enum entry Entry4: R|test/Eee| -} + public final static fun values(): R|kotlin/Array| { + } + public final static fun valueOf(value: R|kotlin/String|): R|test/Eee| { + } + + public final static val entries: R|kotlin/enums/EnumEntries| + public get(): R|kotlin/enums/EnumEntries| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/parameters/EnumConstructor.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/parameters/EnumConstructor.fir.txt index b0f7f2afa3d..af6e49798f2 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/parameters/EnumConstructor.fir.txt +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/parameters/EnumConstructor.fir.txt @@ -9,15 +9,6 @@ public final annotation class B : R|kotlin/Annotation| { } public final enum class E : R|kotlin/Enum| { - public final static fun valueOf(value: R|kotlin/String|): R|test/E| { - } - - public final static fun values(): R|kotlin/Array| { - } - - public final static val entries: R|kotlin/enums/EnumEntries| - public get(): R|kotlin/enums/EnumEntries| - public final val x: R|kotlin/String| public get(): R|kotlin/String| @@ -26,5 +17,13 @@ public final enum class E : R|kotlin/Enum| { private constructor(@R|test/A|() x: R|kotlin/String|, @R|test/B|() y: R|kotlin/Int|): R|test/E| -} + public final static fun values(): R|kotlin/Array| { + } + public final static fun valueOf(value: R|kotlin/String|): R|test/E| { + } + + public final static val entries: R|kotlin/enums/EnumEntries| + public get(): R|kotlin/enums/EnumEntries| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithGenericConstructorParameter.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithGenericConstructorParameter.fir.txt index 7bdbd814549..1adb16494a6 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithGenericConstructorParameter.fir.txt +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithGenericConstructorParameter.fir.txt @@ -1,14 +1,13 @@ public final enum class EnumWithGenericConstructorParameter : R|kotlin/Enum| { - public final static fun valueOf(value: R|kotlin/String|): R|test/EnumWithGenericConstructorParameter| { - } + private constructor(list: R|kotlin/collections/List?|): R|test/EnumWithGenericConstructorParameter| public final static fun values(): R|kotlin/Array| { } + public final static fun valueOf(value: R|kotlin/String|): R|test/EnumWithGenericConstructorParameter| { + } + public final static val entries: R|kotlin/enums/EnumEntries| public get(): R|kotlin/enums/EnumEntries| - private constructor(list: R|kotlin/collections/List?|): R|test/EnumWithGenericConstructorParameter| - } - diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithPrimitiveConstructorParameter.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithPrimitiveConstructorParameter.fir.txt index 5bb285fb021..2c600189d1d 100644 --- a/compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithPrimitiveConstructorParameter.fir.txt +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithPrimitiveConstructorParameter.fir.txt @@ -1,14 +1,13 @@ public final enum class EnumWithPrimitiveConstructorParameter : R|kotlin/Enum| { - public final static fun valueOf(value: R|kotlin/String|): R|test/EnumWithPrimitiveConstructorParameter| { - } + private constructor(b: R|kotlin/Boolean|): R|test/EnumWithPrimitiveConstructorParameter| public final static fun values(): R|kotlin/Array| { } + public final static fun valueOf(value: R|kotlin/String|): R|test/EnumWithPrimitiveConstructorParameter| { + } + public final static val entries: R|kotlin/enums/EnumEntries| public get(): R|kotlin/enums/EnumEntries| - private constructor(b: R|kotlin/Boolean|): R|test/EnumWithPrimitiveConstructorParameter| - } - diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/callsEffect.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/callsEffect.fir.txt new file mode 100644 index 00000000000..6378e5fa25e --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/callsEffect.fir.txt @@ -0,0 +1,19 @@ +public final inline fun callsEffectExplicitUnknown(x: R|kotlin/Int|, block: R|() -> kotlin/Unit|): R|kotlin/Unit| + [R|Contract description] + < + CallsInPlace(block, UNKNOWN) + > + + +public final inline fun callsEffectImplicitUnknown(x: R|kotlin/Int|, y: R|kotlin/Int|, block: R|() -> kotlin/Unit|): R|kotlin/Unit| + [R|Contract description] + < + CallsInPlace(block, UNKNOWN) + > + + +public final fun callsEffectWithKind(block: R|(X, Y, Z) -> R|): R|kotlin/Unit| + [R|Contract description] + < + CallsInPlace(block, EXACTLY_ONCE) + > diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractWithRefiedGeneric.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractWithRefiedGeneric.fir.txt new file mode 100644 index 00000000000..ca518dc3a20 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractWithRefiedGeneric.fir.txt @@ -0,0 +1,12 @@ +public final inline fun cast(value: R|kotlin/Any?|, z: R|U|): R|T| + [R|Contract description] + < + Returns(WILDCARD) -> value is T + > + + +public final inline fun requireIsInstance(value: R|kotlin/Any?|): R|kotlin/Unit| + [R|Contract description] + < + Returns(WILDCARD) -> value is T + > diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractsOnMembers.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractsOnMembers.fir.txt new file mode 100644 index 00000000000..319b0494f0c --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractsOnMembers.fir.txt @@ -0,0 +1,18 @@ +public final class Foo : R|kotlin/Any| { + public final fun callsEffectWithKind(block: R|(X, Y, Z) -> R|): R|kotlin/Unit| + [R|Contract description] + < + CallsInPlace(block, EXACTLY_ONCE) + > + + + public final fun returnsImplies(x: R|kotlin/Boolean|): R|kotlin/Unit| + [R|Contract description] + < + Returns(WILDCARD) -> x + > + + + public constructor(): R|test/Foo| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/deeplyNestedExpression.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/deeplyNestedExpression.fir.txt new file mode 100644 index 00000000000..7e5bdfbeb8f --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/deeplyNestedExpression.fir.txt @@ -0,0 +1,11 @@ +public final fun deeplyNested(x: R|kotlin/Any?|, y: R|kotlin/Any?|, b: R|kotlin/Boolean|, s: R|kotlin/String?|): R|kotlin/Unit| + [R|Contract description] + < + Returns(TRUE) -> x is kotlin/Int && x is kotlin/String || x is kotlin/Int && y is test/A || b || (!b) && s != null && y is test/A || x is kotlin/String + > + + +public final class A : R|kotlin/Any| { + public constructor(): R|test/A| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/embedding.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/embedding.fir.txt new file mode 100644 index 00000000000..d62e681dac5 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/embedding.fir.txt @@ -0,0 +1,26 @@ +public final fun embedInstancePredicate(x: R|kotlin/Any|, y: R|kotlin/Any?|): R|kotlin/Unit| + [R|Contract description] + < + Returns(WILDCARD) -> x is kotlin/String && y is kotlin/String + > + + +public final fun embedNullCheckPredicate(x: R|kotlin/Any?|, y: R|kotlin/Int?|): R|kotlin/Unit| + [R|Contract description] + < + Returns(WILDCARD) -> y != null && x is kotlin/String + > + + +public final fun R|kotlin/Boolean|.embedReceiverReference(b: R|kotlin/Boolean|): R|kotlin/Unit| + [R|Contract description] + < + Returns(WILDCARD) -> (!this) && b + > + + +public final fun embedVariable(x: R|kotlin/Any|, b: R|kotlin/Boolean|): R|kotlin/Unit| + [R|Contract description] + < + Returns(WILDCARD) -> b && x is kotlin/String + > diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/fromStandardKt.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/fromStandardKt.fir.txt new file mode 100644 index 00000000000..8f767ae9ce5 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/fromStandardKt.fir.txt @@ -0,0 +1,54 @@ +public final inline fun R|T|.also(block: R|(T) -> kotlin/Unit|): R|T| + [R|Contract description] + < + CallsInPlace(block, EXACTLY_ONCE) + > + + +public final inline fun R|T|.apply(block: R|T.() -> kotlin/Unit|): R|T| + [R|Contract description] + < + CallsInPlace(block, EXACTLY_ONCE) + > + + +public final inline fun R|T|.let(block: R|(T) -> R|): R|R| + [R|Contract description] + < + CallsInPlace(block, EXACTLY_ONCE) + > + + +public final inline fun repeat(times: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit| + [R|Contract description] + < + CallsInPlace(action, UNKNOWN) + > + + +public final inline fun run(block: R|() -> R|): R|R| + [R|Contract description] + < + CallsInPlace(block, EXACTLY_ONCE) + > + + +public final inline fun R|T|.run(block: R|T.() -> R|): R|R| + [R|Contract description] + < + CallsInPlace(block, EXACTLY_ONCE) + > + + +public final inline fun R|T|.takeIf(predicate: R|(T) -> kotlin/Boolean|): R|T?| + [R|Contract description] + < + CallsInPlace(predicate, EXACTLY_ONCE) + > + + +public final inline fun with(receiver: R|T|, block: R|T.() -> R|): R|R| + [R|Contract description] + < + CallsInPlace(block, EXACTLY_ONCE) + > diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/isInstancePredicate.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/isInstancePredicate.fir.txt new file mode 100644 index 00000000000..bd76096b044 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/isInstancePredicate.fir.txt @@ -0,0 +1,18 @@ +public final fun R|kotlin/Any?|.receiverIsInstance(): R|kotlin/Unit| + [R|Contract description] + < + Returns(TRUE) -> this is test/A + > + + +public final fun simpleIsInstace(x: R|kotlin/Any?|): R|kotlin/Unit| + [R|Contract description] + < + Returns(TRUE) -> x is test/A + > + + +public final class A : R|kotlin/Any| { + public constructor(): R|test/A| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/logicOperators.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/logicOperators.fir.txt new file mode 100644 index 00000000000..3e5e67f0050 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/logicOperators.fir.txt @@ -0,0 +1,23 @@ +public final fun andSequence(x: R|kotlin/Any?|, y: R|kotlin/Any?|, b: R|kotlin/Boolean|): R|kotlin/Unit| + [R|Contract description] + < + Returns(WILDCARD) -> x is test/A && x is test/B && y is test/A && b + > + + +public final fun orSequence(x: R|kotlin/Any?|, y: R|kotlin/Any?|, b: R|kotlin/Boolean|): R|kotlin/Unit| + [R|Contract description] + < + Returns(WILDCARD) -> x is kotlin/String || y is kotlin/Int || (!b) + > + + +public final class A : R|kotlin/Any| { + public constructor(): R|test/A| + +} + +public final class B : R|kotlin/Any| { + public constructor(): R|test/B| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/multieffectContracts.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/multieffectContracts.fir.txt new file mode 100644 index 00000000000..9f729f985ad --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/multieffectContracts.fir.txt @@ -0,0 +1,41 @@ +public final fun returnsAndCalls(b: R|kotlin/Boolean|, block: R|() -> kotlin/Unit|): R|kotlin/Unit| + [R|Contract description] + < + Returns(FALSE) -> !b + CallsInPlace(block, UNKNOWN) + Returns(TRUE) -> b + > + + +public final fun returnsAndFinished(b: R|kotlin/Boolean|): R|kotlin/Unit| + [R|Contract description] + < + Returns(TRUE) -> b + Returns(WILDCARD) -> b != null + Returns(FALSE) -> !b + > + + +public final fun severalCalls(x: R|() -> kotlin/Unit|, y: R|() -> kotlin/Unit|): R|kotlin/Unit| + [R|Contract description] + < + CallsInPlace(x, AT_MOST_ONCE) + CallsInPlace(y, AT_LEAST_ONCE) + > + + +public final fun threeReturnsValue(b: R|kotlin/Boolean|): R|kotlin/Unit| + [R|Contract description] + < + Returns(NOT_NULL) -> b != null + Returns(TRUE) -> b + Returns(FALSE) -> !b + > + + +public final fun twoReturnsValue(b: R|kotlin/Boolean|): R|kotlin/Unit| + [R|Contract description] + < + Returns(TRUE) -> b + Returns(FALSE) -> !b + > diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/mutualRecursion.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/mutualRecursion.fir.txt new file mode 100644 index 00000000000..343ec934320 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/mutualRecursion.fir.txt @@ -0,0 +1,12 @@ +public final fun bar(x: R|kotlin/Any?|): R|kotlin/Boolean| + [R|Contract description] + < + Returns(WILDCARD) -> x is kotlin/Int + > + + +public final fun foo(x: R|kotlin/Any?|): R|kotlin/Boolean| + [R|Contract description] + < + Returns(WILDCARD) -> x is kotlin/String + > diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/recursion.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/recursion.fir.txt new file mode 100644 index 00000000000..7402a47c962 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/recursion.fir.txt @@ -0,0 +1,5 @@ +public final fun foo(n: R|kotlin/Int|, x: R|kotlin/Any?|): R|kotlin/Boolean| + [R|Contract description] + < + Returns(TRUE) -> x is kotlin/String + > diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/withReceiver.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/withReceiver.fir.txt new file mode 100644 index 00000000000..5dddf48b8cd --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/withReceiver.fir.txt @@ -0,0 +1,5 @@ +public final fun R|kotlin/Any?|.isNotNull(): R|kotlin/Boolean| + [R|Contract description] + < + Returns(TRUE) -> this != null + > diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/coroutines/annotatedSuspendFun.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/coroutines/annotatedSuspendFun.fir.txt new file mode 100644 index 00000000000..b7a5126676f --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/coroutines/annotatedSuspendFun.fir.txt @@ -0,0 +1,9 @@ +@R|test/Anno|(t = String(foo)) public final suspend fun foo(): R|kotlin/Unit| + +public final annotation class Anno : R|kotlin/Annotation| { + public final val t: R|kotlin/String| + public get(): R|kotlin/String| + + public constructor(t: R|kotlin/String|): R|test/Anno| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumVisibility.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumVisibility.fir.txt new file mode 100644 index 00000000000..c203bffff30 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumVisibility.fir.txt @@ -0,0 +1,44 @@ +internal final enum class In : R|kotlin/Enum| { + private constructor(): R|test/In| + + public final static enum entry A: R|test/In| + public final static fun values(): R|kotlin/Array| { + } + + public final static fun valueOf(value: R|kotlin/String|): R|test/In| { + } + + public final static val entries: R|kotlin/enums/EnumEntries| + public get(): R|kotlin/enums/EnumEntries| + +} + +private final enum class Pr : R|kotlin/Enum| { + private constructor(): R|test/Pr| + + public final static enum entry A: R|test/Pr| + public final static fun values(): R|kotlin/Array| { + } + + public final static fun valueOf(value: R|kotlin/String|): R|test/Pr| { + } + + public final static val entries: R|kotlin/enums/EnumEntries| + public get(): R|kotlin/enums/EnumEntries| + +} + +public final enum class Pu : R|kotlin/Enum| { + private constructor(): R|test/Pu| + + public final static enum entry A: R|test/Pu| + public final static fun values(): R|kotlin/Array| { + } + + public final static fun valueOf(value: R|kotlin/String|): R|test/Pu| { + } + + public final static val entries: R|kotlin/enums/EnumEntries| + public get(): R|kotlin/enums/EnumEntries| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumWithConstuctor.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumWithConstuctor.fir.txt new file mode 100644 index 00000000000..a43bac4bcd4 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumWithConstuctor.fir.txt @@ -0,0 +1,22 @@ +public final enum class En : R|kotlin/Enum| { + public final val b: R|kotlin/Boolean| + public get(): R|kotlin/Boolean| + + public final val i: R|kotlin/Int| + public get(): R|kotlin/Int| + + private constructor(b: R|kotlin/Boolean| = STUB, i: R|kotlin/Int| = STUB): R|test/En| + + public final static enum entry E1: R|test/En| + public final static enum entry E2: R|test/En| + public final static enum entry E3: R|test/En| + public final static fun values(): R|kotlin/Array| { + } + + public final static fun valueOf(value: R|kotlin/String|): R|test/En| { + } + + public final static val entries: R|kotlin/enums/EnumEntries| + public get(): R|kotlin/enums/EnumEntries| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumWithInnerClasses.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumWithInnerClasses.fir.txt new file mode 100644 index 00000000000..151027cd629 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumWithInnerClasses.fir.txt @@ -0,0 +1,33 @@ +public final enum class Enum : R|kotlin/Enum| { + public final fun f(): R|kotlin/Int| + + public final val c: R|kotlin/Int| + public get(): R|kotlin/Int| + + private constructor(): R|test/Enum| + + public final inner class Inner : R|kotlin/Any| { + public test/Enum.constructor(): R|test/Enum.Inner| + + } + + public final class Nested : R|kotlin/Any| { + public constructor(): R|test/Enum.Nested| + + } + + public abstract interface Trait : R|kotlin/Any| { + } + + public final static enum entry ENTRY1: R|test/Enum| + public final static enum entry ENTRY2: R|test/Enum| + public final static fun values(): R|kotlin/Array| { + } + + public final static fun valueOf(value: R|kotlin/String|): R|test/Enum| { + } + + public final static val entries: R|kotlin/enums/EnumEntries| + public get(): R|kotlin/enums/EnumEntries| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/innerEnum.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/innerEnum.fir.txt new file mode 100644 index 00000000000..16555f78b92 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/innerEnum.fir.txt @@ -0,0 +1,19 @@ +public final class A : R|kotlin/Any| { + public constructor(): R|test/A| + + public final enum class E : R|kotlin/Enum| { + private constructor(): R|test/A.E| + + public final static enum entry ENTRY: R|test/A.E| + public final static fun values(): R|kotlin/Array| { + } + + public final static fun valueOf(value: R|kotlin/String|): R|test/A.E| { + } + + public final static val entries: R|kotlin/enums/EnumEntries| + public get(): R|kotlin/enums/EnumEntries| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/innerEnumExistingClassObject.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/innerEnumExistingClassObject.fir.txt new file mode 100644 index 00000000000..539ab964d7d --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/innerEnumExistingClassObject.fir.txt @@ -0,0 +1,24 @@ +public final class A : R|kotlin/Any| { + public constructor(): R|test/A| + + public final companion object Companion : R|kotlin/Any| { + private constructor(): R|test/A.Companion| + + } + + public final enum class E : R|kotlin/Enum| { + private constructor(): R|test/A.E| + + public final static enum entry ENTRY: R|test/A.E| + public final static fun values(): R|kotlin/Array| { + } + + public final static fun valueOf(value: R|kotlin/String|): R|test/A.E| { + } + + public final static val entries: R|kotlin/enums/EnumEntries| + public get(): R|kotlin/enums/EnumEntries| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/simpleEnum.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/simpleEnum.fir.txt new file mode 100644 index 00000000000..7504a4f45c1 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/enum/simpleEnum.fir.txt @@ -0,0 +1,14 @@ +public final enum class MyEnum : R|kotlin/Enum| { + private constructor(): R|test/MyEnum| + + public final static enum entry ENTRY: R|test/MyEnum| + public final static fun values(): R|kotlin/Array| { + } + + public final static fun valueOf(value: R|kotlin/String|): R|test/MyEnum| { + } + + public final static val entries: R|kotlin/enums/EnumEntries| + public get(): R|kotlin/enums/EnumEntries| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/fromLoadJava/enum.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/fromLoadJava/enum.fir.txt new file mode 100644 index 00000000000..2fdfc16490c --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/fromLoadJava/enum.fir.txt @@ -0,0 +1,15 @@ +public final enum class Test : R|kotlin/Enum| { + private constructor(a: R|kotlin/Int|): R|test/Test| + + public final static enum entry A: R|test/Test| + public final static enum entry B: R|test/Test| + public final static fun values(): R|kotlin/Array| { + } + + public final static fun valueOf(value: R|kotlin/String|): R|test/Test| { + } + + public final static val entries: R|kotlin/enums/EnumEntries| + public get(): R|kotlin/enums/EnumEntries| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/memberOrder/enumEntries.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/memberOrder/enumEntries.fir.txt new file mode 100644 index 00000000000..dbfaac9d7d2 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/memberOrder/enumEntries.fir.txt @@ -0,0 +1,21 @@ +public final enum class E : R|kotlin/Enum| { + private constructor(): R|test/E| + + public final static enum entry ONE: R|test/E| + public final static enum entry TWO: R|test/E| + public final static enum entry THREE: R|test/E| + public final static enum entry FOUR: R|test/E| + public final static enum entry FIVE: R|test/E| + public final static enum entry SIX: R|test/E| + public final static enum entry SEVEN: R|test/E| + public final static enum entry EIGHT: R|test/E| + public final static fun values(): R|kotlin/Array| { + } + + public final static fun valueOf(value: R|kotlin/String|): R|test/E| { + } + + public final static val entries: R|kotlin/enums/EnumEntries| + public get(): R|kotlin/enums/EnumEntries| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterable.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterable.fir.txt new file mode 100644 index 00000000000..39085132e9a --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterable.fir.txt @@ -0,0 +1,10 @@ +public abstract interface LoadIterable : R|kotlin/Any| { + public abstract fun getIterable(): R|kotlin/collections/MutableIterable?| + + public abstract fun getReadOnlyIterable(): R|kotlin/collections/Iterable?| + + public abstract fun setIterable(p0: R|kotlin/collections/MutableIterable?|): R|kotlin/Unit| + + public abstract fun setReadOnlyIterable(p0: R|kotlin/collections/Iterable?|): R|kotlin/Unit| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithConflict.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithConflict.fir.txt new file mode 100644 index 00000000000..1f00fbb1742 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithConflict.fir.txt @@ -0,0 +1,6 @@ +public abstract interface LoadIterableWithConflict : R|kotlin/Any| { + public abstract fun getIterable(): R|kotlin/collections/MutableIterable?| + + public abstract fun setIterable(p0: R|kotlin/collections/MutableIterable?|): R|kotlin/Unit| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithNullability.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithNullability.fir.txt new file mode 100644 index 00000000000..088f5baf364 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithNullability.fir.txt @@ -0,0 +1,10 @@ +public abstract interface LoadIterableWithNullability : R|kotlin/Any| { + public abstract fun getIterable(): R|kotlin/collections/MutableIterable| + + public abstract fun getReadOnlyIterable(): R|kotlin/collections/Iterable| + + public abstract fun setIterable(p0: R|kotlin/collections/MutableIterable|): R|kotlin/Unit| + + public abstract fun setReadOnlyIterable(p0: R|kotlin/collections/Iterable|): R|kotlin/Unit| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithPropagation.fir.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithPropagation.fir.txt new file mode 100644 index 00000000000..6e8ebdb3da2 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithPropagation.fir.txt @@ -0,0 +1,26 @@ +public abstract interface LoadIterableWithPropagation : R|kotlin/Any| { + public abstract interface LoadIterable : R|kotlin/Any| { + public abstract fun getIterable(): R|kotlin/collections/MutableIterable?| + + public abstract fun getReadOnlyIterable(): R|kotlin/collections/Iterable?| + + public abstract fun setIterable(p0: R|kotlin/collections/MutableIterable?|): R|kotlin/Unit| + + public abstract fun setReadOnlyIterable(p0: R|kotlin/collections/Iterable?|): R|kotlin/Unit| + + } + + public open class LoadIterableImpl : R|test/LoadIterableWithPropagation.LoadIterable| { + public open fun getIterable(): R|kotlin/collections/MutableIterable?| + + public open fun getReadOnlyIterable(): R|kotlin/collections/Iterable?| + + public open fun setIterable(p0: R|kotlin/collections/MutableIterable?|): R|kotlin/Unit| + + public open fun setReadOnlyIterable(p0: R|kotlin/collections/Iterable?|): R|kotlin/Unit| + + public constructor(): R|test/LoadIterableWithPropagation.LoadIterableImpl| + + } + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames/functionName.fir.k1.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames/functionName.fir.k1.txt new file mode 100644 index 00000000000..b24a177df13 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames/functionName.fir.k1.txt @@ -0,0 +1,13 @@ +@R|test/A|(s = String(1)) @R|kotlin/jvm/JvmName|(name = String(bar)) public final fun foo(): R|kotlin/String| + +@FIELD:R|test/A|(s = String(2)) public final var v: R|kotlin/Int| + @R|test/A|(s = String(3)) @R|kotlin/jvm/JvmName|(name = String(vget)) public get(): R|kotlin/Int| + @R|test/A|(s = String(4)) @R|kotlin/jvm/JvmName|(name = String(vset)) public set(: R|kotlin/Int|): R|kotlin/Unit| + +public final annotation class A : R|kotlin/Annotation| { + public final val s: R|kotlin/String| + public get(): R|kotlin/String| + + public constructor(s: R|kotlin/String|): R|test/A| + +} diff --git a/compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames/functionName.fir.k2.txt b/compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames/functionName.fir.k2.txt new file mode 100644 index 00000000000..f2b02b534c3 --- /dev/null +++ b/compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames/functionName.fir.k2.txt @@ -0,0 +1,13 @@ +@R|test/A|(s = String(1)) @R|kotlin/jvm/JvmName|(name = String(bar)) public final fun foo(): R|kotlin/String| + +@FIELD:R|test/A|(s = String(2)) public final var v: R|kotlin/Int| + @R|test/A|(s = String(3)) @R|kotlin/jvm/JvmName|(name = String(vget)) public get(): R|kotlin/Int| + @R|test/A|(s = String(4)) @R|kotlin/jvm/JvmName|(name = String(vset)) public set(value: R|kotlin/Int|): R|kotlin/Unit| + +public final annotation class A : R|kotlin/Annotation| { + public final val s: R|kotlin/String| + public get(): R|kotlin/String| + + public constructor(s: R|kotlin/String|): R|test/A| + +} diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt index bc6054effc6..a64f9713752 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt @@ -218,6 +218,18 @@ object CodegenTestDirectives : SimpleDirectivesContainer() { Ignore FIR2IR exceptions if FIR reported some diagnostics with ERROR severity """.trimIndent() ) + + val IGNORE_FIR_METADATA_LOADING_K1 by directive( + description = """ + Ignore exceptions in AbstractFirLoadK1CompiledKotlin tests + """.trimIndent() + ) + + val IGNORE_FIR_METADATA_LOADING_K2 by directive( + description = """ + Ignore exceptions in AbstractFirLoadK2CompiledKotlin tests + """.trimIndent() + ) } fun extractIgnoredDirectivesForTargetBackend( diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/AbstractKotlinCompilerTest.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/AbstractKotlinCompilerTest.kt index a5d75c2b405..28815309793 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/AbstractKotlinCompilerTest.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/AbstractKotlinCompilerTest.kt @@ -69,15 +69,8 @@ abstract class AbstractKotlinCompilerTest { } @BeforeEach - @OptIn(ExperimentalStdlibApi::class) fun initTestInfo(testInfo: TestInfo) { - initTestInfo( - KotlinTestInfo( - className = testInfo.testClass.getOrNull()?.name ?: "_undefined_", - methodName = testInfo.testMethod.getOrNull()?.name ?: "_testUndefined_", - tags = testInfo.tags - ) - ) + initTestInfo(testInfo.toKotlinTestInfo()) } fun initTestInfo(testInfo: KotlinTestInfo) { @@ -109,3 +102,11 @@ abstract class AbstractKotlinCompilerTest { }.runTest(filePath) } } + +fun TestInfo.toKotlinTestInfo(): KotlinTestInfo { + return KotlinTestInfo( + className = this.testClass.getOrNull()?.name ?: "_undefined_", + methodName = this.testMethod.getOrNull()?.name ?: "_testUndefined_", + tags = this.tags + ) +} diff --git a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt index 47e674444d2..de5f2345db4 100644 --- a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt +++ b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt @@ -15,7 +15,6 @@ import org.jetbrains.kotlin.codegen.* import org.jetbrains.kotlin.codegen.defaultConstructor.AbstractDefaultArgumentsReflectionTest import org.jetbrains.kotlin.codegen.flags.AbstractWriteFlagsTest import org.jetbrains.kotlin.codegen.ir.* -import org.jetbrains.kotlin.fir.AbstractFirLoadCompiledKotlin import org.jetbrains.kotlin.fir.AbstractLazyBodyIsNotTouchedTest import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderLazyBodiesTestCase import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderSourceElementMappingTestCase @@ -425,12 +424,6 @@ fun generateJUnit3CompilerTests(args: Array) { } } - testGroup("compiler/fir/analysis-tests/legacy-fir-tests/tests-gen", "compiler/testData") { - testClass { - model("loadJava/compiledKotlin", extension = "kt") - } - } - testGroup("compiler/fir/analysis-tests/legacy-fir-tests/tests-gen", "compiler/testData") { testClass { model("loadJava/compiledJava", extension = "java") diff --git a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt index b89f113ac79..79dea7c89c3 100644 --- a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt +++ b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt @@ -265,6 +265,18 @@ fun generateJUnit5CompilerTests(args: Array) { } } + testGroup("compiler/fir/analysis-tests/tests-gen", "compiler/testData") { + testClass { + model("loadJava/compiledKotlin", extension = "kt") + model("loadJava/compiledKotlinWithStdlib", extension = "kt") + } + + testClass { + model("loadJava/compiledKotlin", extension = "kt") + model("loadJava/compiledKotlinWithStdlib", extension = "kt") + } + } + testGroup(testsRoot = "compiler/fir/fir2ir/tests-gen", testDataRoot = "compiler/testData") { testClass { model("codegen/box")