Tests: remove duplicateJvmSignature diagnostic tests
All of these tests were actually copied to `testsWithJvmBackend` in
866f188120, but it's unclear why they were copied instead of moved. The
test runner for `testsWithJvmBackend` correctly runs the compiler
pipeline and obtains errors reported by the backend, as opposed to the
common diagnostic tests which have a very custom code, using parts of
the old JVM backend, to obtain these diagnostics.
This commit is contained in:
committed by
Space Team
parent
6ed06f4dac
commit
dca6c21d7f
-556
@@ -11863,562 +11863,6 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class DuplicateJvmSignature {
|
||||
@Test
|
||||
public void testAllFilesPresentInDuplicateJvmSignature() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("caseInProperties.kt")
|
||||
public void testCaseInProperties() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/caseInProperties.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("vararg.kt")
|
||||
public void testVararg() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/vararg.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class AccidentalOverrides {
|
||||
@Test
|
||||
@TestMetadata("accidentalOverrideFromGrandparent.kt")
|
||||
public void testAccidentalOverrideFromGrandparent() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/accidentalOverrideFromGrandparent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInAccidentalOverrides() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classFunctionOverriddenByProperty.kt")
|
||||
public void testClassFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classFunctionOverriddenByPropertyInConstructor.kt")
|
||||
public void testClassFunctionOverriddenByPropertyInConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classFunctionOverriddenByPropertyNoGetter.kt")
|
||||
public void testClassFunctionOverriddenByPropertyNoGetter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyNoGetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classPropertyOverriddenByFunction.kt")
|
||||
public void testClassPropertyOverriddenByFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classPropertyOverriddenByFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultFunction.kt")
|
||||
public void testDefaultFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/defaultFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedFunctionOverriddenByProperty.kt")
|
||||
public void testDelegatedFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/delegatedFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericClassFunction.kt")
|
||||
public void testGenericClassFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/genericClassFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overridesNothing.kt")
|
||||
public void testOverridesNothing() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/overridesNothing.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateClassFunctionOverriddenByProperty.kt")
|
||||
public void testPrivateClassFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
||||
public void testTraitFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitFunctionOverriddenByPropertyNoImpl.kt")
|
||||
public void testTraitFunctionOverriddenByPropertyNoImpl() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByPropertyNoImpl.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitPropertyOverriddenByFunction.kt")
|
||||
public void testTraitPropertyOverriddenByFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitPropertyOverriddenByFunctionNoImpl.kt")
|
||||
public void testTraitPropertyOverriddenByFunctionNoImpl() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunctionNoImpl.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Bridges {
|
||||
@Test
|
||||
public void testAllFilesPresentInBridges() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("class.kt")
|
||||
public void testClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges/class.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fakeOverrideTrait.kt")
|
||||
public void testFakeOverrideTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges/fakeOverrideTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("trait.kt")
|
||||
public void testTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges/trait.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Erasure {
|
||||
@Test
|
||||
public void testAllFilesPresentInErasure() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clashFromInterfaceAndSuperClass.kt")
|
||||
public void testClashFromInterfaceAndSuperClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/clashFromInterfaceAndSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("collections.kt")
|
||||
public void testCollections() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/collections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegateToTwoTraits.kt")
|
||||
public void testDelegateToTwoTraits() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/delegateToTwoTraits.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationAndOwnMethod.kt")
|
||||
public void testDelegationAndOwnMethod() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/delegationAndOwnMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationToTraitImplAndOwnMethod.kt")
|
||||
public void testDelegationToTraitImplAndOwnMethod() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/delegationToTraitImplAndOwnMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionProperties.kt")
|
||||
public void testExtensionProperties() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/extensionProperties.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericType.kt")
|
||||
public void testGenericType() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/genericType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritFromTwoTraits.kt")
|
||||
public void testInheritFromTwoTraits() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/inheritFromTwoTraits.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinAndJavaCollections.kt")
|
||||
public void testKotlinAndJavaCollections() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/kotlinAndJavaCollections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableType.kt")
|
||||
public void testNullableType() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/nullableType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superTraitAndDelegationToTraitImpl.kt")
|
||||
public void testSuperTraitAndDelegationToTraitImpl() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/superTraitAndDelegationToTraitImpl.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("twoTraitsAndOwnFunction.kt")
|
||||
public void testTwoTraitsAndOwnFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/twoTraitsAndOwnFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeMappedToJava.kt")
|
||||
public void testTypeMappedToJava() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeMappedToJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameter.kt")
|
||||
public void testTypeParameter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterWithBound.kt")
|
||||
public void testTypeParameterWithBound() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameterWithBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterWithTwoBounds.kt")
|
||||
public void testTypeParameterWithTwoBounds() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameterWithTwoBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterWithTwoBoundsInWhere.kt")
|
||||
public void testTypeParameterWithTwoBoundsInWhere() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameterWithTwoBoundsInWhere.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FinalMembersFromBuiltIns {
|
||||
@Test
|
||||
public void testAllFilesPresentInFinalMembersFromBuiltIns() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumMembers.kt")
|
||||
public void testEnumMembers() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns/enumMembers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("waitNotifyGetClass.kt")
|
||||
public void testWaitNotifyGetClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns/waitNotifyGetClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FunctionAndProperty {
|
||||
@Test
|
||||
public void testAllFilesPresentInFunctionAndProperty() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("class.kt")
|
||||
public void testClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/class.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/classObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classPropertyInConstructor.kt")
|
||||
public void testClassPropertyInConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/classPropertyInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionFunctionAndNormalFunction.kt")
|
||||
public void testExtensionFunctionAndNormalFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/extensionFunctionAndNormalFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionPropertyAndFunction.kt")
|
||||
public void testExtensionPropertyAndFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/extensionPropertyAndFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionAndSetter.kt")
|
||||
public void testFunctionAndSetter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/functionAndSetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionAndVar.kt")
|
||||
public void testFunctionAndVar() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/functionAndVar.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/localClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClassInClass.kt")
|
||||
public void testLocalClassInClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/localClassInClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClass.kt")
|
||||
public void testNestedClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/nestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("object.kt")
|
||||
public void testObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/object.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objectExpression.kt")
|
||||
public void testObjectExpression() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/objectExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objectExpressionInConstructor.kt")
|
||||
public void testObjectExpressionInConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/objectExpressionInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateClassPropertyNoClash.kt")
|
||||
public void testPrivateClassPropertyNoClash() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/privateClassPropertyNoClash.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevel.kt")
|
||||
public void testTopLevel() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevel.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevelDifferentFiles.kt")
|
||||
public void testTopLevelDifferentFiles() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevelGetter.kt")
|
||||
public void testTopLevelGetter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevelGetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("trait.kt")
|
||||
public void testTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class SpecialNames {
|
||||
@Test
|
||||
public void testAllFilesPresentInSpecialNames() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/classObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObjectCopiedField.kt")
|
||||
public void testClassObjectCopiedField() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/classObjectCopiedField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObjectCopiedFieldObject.kt")
|
||||
public void testClassObjectCopiedFieldObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/classObjectCopiedFieldObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dataClassCopy.kt")
|
||||
public void testDataClassCopy() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/dataClassCopy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationBy.kt")
|
||||
public void testDelegationBy() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/delegationBy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/enum.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("innerClassField.kt")
|
||||
public void testInnerClassField() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/innerClassField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("instance.kt")
|
||||
public void testInstance() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/instance.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadataCache.kt")
|
||||
public void testPropertyMetadataCache() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/propertyMetadataCache.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Statics {
|
||||
@Test
|
||||
public void testAllFilesPresentInStatics() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jkjk.kt")
|
||||
public void testJkjk() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/jkjk.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassExtendsJavaClass.kt")
|
||||
public void testKotlinClassExtendsJavaClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassExtendsJavaClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassExtendsJavaClassExtendsJavaClass.kt")
|
||||
public void testKotlinClassExtendsJavaClassExtendsJavaClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassExtendsJavaClassExtendsJavaClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassImplementsJavaInterface.kt")
|
||||
public void testKotlinClassImplementsJavaInterface() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassImplementsJavaInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassImplementsJavaInterfaceExtendsJavaInteface.kt")
|
||||
public void testKotlinClassImplementsJavaInterfaceExtendsJavaInteface() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassImplementsJavaInterfaceExtendsJavaInteface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinMembersVsJavaNonVisibleStatics.kt")
|
||||
public void testKotlinMembersVsJavaNonVisibleStatics() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinMembersVsJavaNonVisibleStatics.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Synthesized {
|
||||
@Test
|
||||
public void testAllFilesPresentInSynthesized() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumValuesValueOf.kt")
|
||||
public void testEnumValuesValueOf() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized/enumValuesValueOf.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TraitImpl {
|
||||
@Test
|
||||
public void testAllFilesPresentInTraitImpl() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("oneTrait.kt")
|
||||
public void testOneTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/oneTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitFunctionOverriddenByPropertyInTrait.kt")
|
||||
public void testTraitFunctionOverriddenByPropertyInTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/traitFunctionOverriddenByPropertyInTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitPropertyOverriddenByFunctionInTrait.kt")
|
||||
public void testTraitPropertyOverriddenByFunctionInTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/traitPropertyOverriddenByFunctionInTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("twoTraits.kt")
|
||||
public void testTwoTraits() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/twoTraits.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/dynamicTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
-556
@@ -11863,562 +11863,6 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class DuplicateJvmSignature {
|
||||
@Test
|
||||
public void testAllFilesPresentInDuplicateJvmSignature() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("caseInProperties.kt")
|
||||
public void testCaseInProperties() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/caseInProperties.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("vararg.kt")
|
||||
public void testVararg() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/vararg.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class AccidentalOverrides {
|
||||
@Test
|
||||
@TestMetadata("accidentalOverrideFromGrandparent.kt")
|
||||
public void testAccidentalOverrideFromGrandparent() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/accidentalOverrideFromGrandparent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInAccidentalOverrides() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classFunctionOverriddenByProperty.kt")
|
||||
public void testClassFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classFunctionOverriddenByPropertyInConstructor.kt")
|
||||
public void testClassFunctionOverriddenByPropertyInConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classFunctionOverriddenByPropertyNoGetter.kt")
|
||||
public void testClassFunctionOverriddenByPropertyNoGetter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyNoGetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classPropertyOverriddenByFunction.kt")
|
||||
public void testClassPropertyOverriddenByFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classPropertyOverriddenByFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultFunction.kt")
|
||||
public void testDefaultFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/defaultFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedFunctionOverriddenByProperty.kt")
|
||||
public void testDelegatedFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/delegatedFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericClassFunction.kt")
|
||||
public void testGenericClassFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/genericClassFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overridesNothing.kt")
|
||||
public void testOverridesNothing() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/overridesNothing.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateClassFunctionOverriddenByProperty.kt")
|
||||
public void testPrivateClassFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
||||
public void testTraitFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitFunctionOverriddenByPropertyNoImpl.kt")
|
||||
public void testTraitFunctionOverriddenByPropertyNoImpl() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByPropertyNoImpl.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitPropertyOverriddenByFunction.kt")
|
||||
public void testTraitPropertyOverriddenByFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitPropertyOverriddenByFunctionNoImpl.kt")
|
||||
public void testTraitPropertyOverriddenByFunctionNoImpl() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunctionNoImpl.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Bridges {
|
||||
@Test
|
||||
public void testAllFilesPresentInBridges() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("class.kt")
|
||||
public void testClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges/class.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fakeOverrideTrait.kt")
|
||||
public void testFakeOverrideTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges/fakeOverrideTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("trait.kt")
|
||||
public void testTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges/trait.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Erasure {
|
||||
@Test
|
||||
public void testAllFilesPresentInErasure() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clashFromInterfaceAndSuperClass.kt")
|
||||
public void testClashFromInterfaceAndSuperClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/clashFromInterfaceAndSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("collections.kt")
|
||||
public void testCollections() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/collections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegateToTwoTraits.kt")
|
||||
public void testDelegateToTwoTraits() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/delegateToTwoTraits.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationAndOwnMethod.kt")
|
||||
public void testDelegationAndOwnMethod() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/delegationAndOwnMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationToTraitImplAndOwnMethod.kt")
|
||||
public void testDelegationToTraitImplAndOwnMethod() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/delegationToTraitImplAndOwnMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionProperties.kt")
|
||||
public void testExtensionProperties() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/extensionProperties.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericType.kt")
|
||||
public void testGenericType() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/genericType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritFromTwoTraits.kt")
|
||||
public void testInheritFromTwoTraits() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/inheritFromTwoTraits.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinAndJavaCollections.kt")
|
||||
public void testKotlinAndJavaCollections() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/kotlinAndJavaCollections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableType.kt")
|
||||
public void testNullableType() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/nullableType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superTraitAndDelegationToTraitImpl.kt")
|
||||
public void testSuperTraitAndDelegationToTraitImpl() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/superTraitAndDelegationToTraitImpl.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("twoTraitsAndOwnFunction.kt")
|
||||
public void testTwoTraitsAndOwnFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/twoTraitsAndOwnFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeMappedToJava.kt")
|
||||
public void testTypeMappedToJava() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeMappedToJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameter.kt")
|
||||
public void testTypeParameter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterWithBound.kt")
|
||||
public void testTypeParameterWithBound() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameterWithBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterWithTwoBounds.kt")
|
||||
public void testTypeParameterWithTwoBounds() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameterWithTwoBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterWithTwoBoundsInWhere.kt")
|
||||
public void testTypeParameterWithTwoBoundsInWhere() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameterWithTwoBoundsInWhere.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FinalMembersFromBuiltIns {
|
||||
@Test
|
||||
public void testAllFilesPresentInFinalMembersFromBuiltIns() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumMembers.kt")
|
||||
public void testEnumMembers() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns/enumMembers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("waitNotifyGetClass.kt")
|
||||
public void testWaitNotifyGetClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns/waitNotifyGetClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FunctionAndProperty {
|
||||
@Test
|
||||
public void testAllFilesPresentInFunctionAndProperty() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("class.kt")
|
||||
public void testClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/class.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/classObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classPropertyInConstructor.kt")
|
||||
public void testClassPropertyInConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/classPropertyInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionFunctionAndNormalFunction.kt")
|
||||
public void testExtensionFunctionAndNormalFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/extensionFunctionAndNormalFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionPropertyAndFunction.kt")
|
||||
public void testExtensionPropertyAndFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/extensionPropertyAndFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionAndSetter.kt")
|
||||
public void testFunctionAndSetter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/functionAndSetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionAndVar.kt")
|
||||
public void testFunctionAndVar() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/functionAndVar.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/localClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClassInClass.kt")
|
||||
public void testLocalClassInClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/localClassInClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClass.kt")
|
||||
public void testNestedClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/nestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("object.kt")
|
||||
public void testObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/object.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objectExpression.kt")
|
||||
public void testObjectExpression() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/objectExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objectExpressionInConstructor.kt")
|
||||
public void testObjectExpressionInConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/objectExpressionInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateClassPropertyNoClash.kt")
|
||||
public void testPrivateClassPropertyNoClash() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/privateClassPropertyNoClash.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevel.kt")
|
||||
public void testTopLevel() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevel.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevelDifferentFiles.kt")
|
||||
public void testTopLevelDifferentFiles() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevelGetter.kt")
|
||||
public void testTopLevelGetter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevelGetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("trait.kt")
|
||||
public void testTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class SpecialNames {
|
||||
@Test
|
||||
public void testAllFilesPresentInSpecialNames() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/classObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObjectCopiedField.kt")
|
||||
public void testClassObjectCopiedField() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/classObjectCopiedField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObjectCopiedFieldObject.kt")
|
||||
public void testClassObjectCopiedFieldObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/classObjectCopiedFieldObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dataClassCopy.kt")
|
||||
public void testDataClassCopy() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/dataClassCopy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationBy.kt")
|
||||
public void testDelegationBy() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/delegationBy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/enum.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("innerClassField.kt")
|
||||
public void testInnerClassField() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/innerClassField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("instance.kt")
|
||||
public void testInstance() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/instance.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadataCache.kt")
|
||||
public void testPropertyMetadataCache() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/propertyMetadataCache.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Statics {
|
||||
@Test
|
||||
public void testAllFilesPresentInStatics() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jkjk.kt")
|
||||
public void testJkjk() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/jkjk.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassExtendsJavaClass.kt")
|
||||
public void testKotlinClassExtendsJavaClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassExtendsJavaClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassExtendsJavaClassExtendsJavaClass.kt")
|
||||
public void testKotlinClassExtendsJavaClassExtendsJavaClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassExtendsJavaClassExtendsJavaClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassImplementsJavaInterface.kt")
|
||||
public void testKotlinClassImplementsJavaInterface() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassImplementsJavaInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassImplementsJavaInterfaceExtendsJavaInteface.kt")
|
||||
public void testKotlinClassImplementsJavaInterfaceExtendsJavaInteface() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassImplementsJavaInterfaceExtendsJavaInteface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinMembersVsJavaNonVisibleStatics.kt")
|
||||
public void testKotlinMembersVsJavaNonVisibleStatics() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinMembersVsJavaNonVisibleStatics.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Synthesized {
|
||||
@Test
|
||||
public void testAllFilesPresentInSynthesized() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumValuesValueOf.kt")
|
||||
public void testEnumValuesValueOf() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized/enumValuesValueOf.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TraitImpl {
|
||||
@Test
|
||||
public void testAllFilesPresentInTraitImpl() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("oneTrait.kt")
|
||||
public void testOneTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/oneTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitFunctionOverriddenByPropertyInTrait.kt")
|
||||
public void testTraitFunctionOverriddenByPropertyInTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/traitFunctionOverriddenByPropertyInTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitPropertyOverriddenByFunctionInTrait.kt")
|
||||
public void testTraitPropertyOverriddenByFunctionInTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/traitPropertyOverriddenByFunctionInTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("twoTraits.kt")
|
||||
public void testTwoTraits() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/twoTraits.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/dynamicTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
-556
@@ -11857,562 +11857,6 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class DuplicateJvmSignature {
|
||||
@Test
|
||||
public void testAllFilesPresentInDuplicateJvmSignature() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("caseInProperties.kt")
|
||||
public void testCaseInProperties() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/caseInProperties.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("vararg.kt")
|
||||
public void testVararg() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/vararg.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class AccidentalOverrides {
|
||||
@Test
|
||||
@TestMetadata("accidentalOverrideFromGrandparent.kt")
|
||||
public void testAccidentalOverrideFromGrandparent() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/accidentalOverrideFromGrandparent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInAccidentalOverrides() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classFunctionOverriddenByProperty.kt")
|
||||
public void testClassFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classFunctionOverriddenByPropertyInConstructor.kt")
|
||||
public void testClassFunctionOverriddenByPropertyInConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classFunctionOverriddenByPropertyNoGetter.kt")
|
||||
public void testClassFunctionOverriddenByPropertyNoGetter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyNoGetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classPropertyOverriddenByFunction.kt")
|
||||
public void testClassPropertyOverriddenByFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classPropertyOverriddenByFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultFunction.kt")
|
||||
public void testDefaultFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/defaultFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedFunctionOverriddenByProperty.kt")
|
||||
public void testDelegatedFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/delegatedFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericClassFunction.kt")
|
||||
public void testGenericClassFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/genericClassFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overridesNothing.kt")
|
||||
public void testOverridesNothing() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/overridesNothing.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateClassFunctionOverriddenByProperty.kt")
|
||||
public void testPrivateClassFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
||||
public void testTraitFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitFunctionOverriddenByPropertyNoImpl.kt")
|
||||
public void testTraitFunctionOverriddenByPropertyNoImpl() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByPropertyNoImpl.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitPropertyOverriddenByFunction.kt")
|
||||
public void testTraitPropertyOverriddenByFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitPropertyOverriddenByFunctionNoImpl.kt")
|
||||
public void testTraitPropertyOverriddenByFunctionNoImpl() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunctionNoImpl.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Bridges {
|
||||
@Test
|
||||
public void testAllFilesPresentInBridges() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("class.kt")
|
||||
public void testClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges/class.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fakeOverrideTrait.kt")
|
||||
public void testFakeOverrideTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges/fakeOverrideTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("trait.kt")
|
||||
public void testTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges/trait.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Erasure {
|
||||
@Test
|
||||
public void testAllFilesPresentInErasure() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clashFromInterfaceAndSuperClass.kt")
|
||||
public void testClashFromInterfaceAndSuperClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/clashFromInterfaceAndSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("collections.kt")
|
||||
public void testCollections() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/collections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegateToTwoTraits.kt")
|
||||
public void testDelegateToTwoTraits() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/delegateToTwoTraits.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationAndOwnMethod.kt")
|
||||
public void testDelegationAndOwnMethod() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/delegationAndOwnMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationToTraitImplAndOwnMethod.kt")
|
||||
public void testDelegationToTraitImplAndOwnMethod() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/delegationToTraitImplAndOwnMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionProperties.kt")
|
||||
public void testExtensionProperties() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/extensionProperties.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericType.kt")
|
||||
public void testGenericType() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/genericType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritFromTwoTraits.kt")
|
||||
public void testInheritFromTwoTraits() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/inheritFromTwoTraits.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinAndJavaCollections.kt")
|
||||
public void testKotlinAndJavaCollections() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/kotlinAndJavaCollections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableType.kt")
|
||||
public void testNullableType() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/nullableType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superTraitAndDelegationToTraitImpl.kt")
|
||||
public void testSuperTraitAndDelegationToTraitImpl() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/superTraitAndDelegationToTraitImpl.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("twoTraitsAndOwnFunction.kt")
|
||||
public void testTwoTraitsAndOwnFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/twoTraitsAndOwnFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeMappedToJava.kt")
|
||||
public void testTypeMappedToJava() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeMappedToJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameter.kt")
|
||||
public void testTypeParameter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterWithBound.kt")
|
||||
public void testTypeParameterWithBound() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameterWithBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterWithTwoBounds.kt")
|
||||
public void testTypeParameterWithTwoBounds() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameterWithTwoBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterWithTwoBoundsInWhere.kt")
|
||||
public void testTypeParameterWithTwoBoundsInWhere() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameterWithTwoBoundsInWhere.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FinalMembersFromBuiltIns {
|
||||
@Test
|
||||
public void testAllFilesPresentInFinalMembersFromBuiltIns() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumMembers.kt")
|
||||
public void testEnumMembers() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns/enumMembers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("waitNotifyGetClass.kt")
|
||||
public void testWaitNotifyGetClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns/waitNotifyGetClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FunctionAndProperty {
|
||||
@Test
|
||||
public void testAllFilesPresentInFunctionAndProperty() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("class.kt")
|
||||
public void testClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/class.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/classObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classPropertyInConstructor.kt")
|
||||
public void testClassPropertyInConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/classPropertyInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionFunctionAndNormalFunction.kt")
|
||||
public void testExtensionFunctionAndNormalFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/extensionFunctionAndNormalFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionPropertyAndFunction.kt")
|
||||
public void testExtensionPropertyAndFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/extensionPropertyAndFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionAndSetter.kt")
|
||||
public void testFunctionAndSetter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/functionAndSetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionAndVar.kt")
|
||||
public void testFunctionAndVar() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/functionAndVar.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/localClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClassInClass.kt")
|
||||
public void testLocalClassInClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/localClassInClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClass.kt")
|
||||
public void testNestedClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/nestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("object.kt")
|
||||
public void testObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/object.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objectExpression.kt")
|
||||
public void testObjectExpression() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/objectExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objectExpressionInConstructor.kt")
|
||||
public void testObjectExpressionInConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/objectExpressionInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateClassPropertyNoClash.kt")
|
||||
public void testPrivateClassPropertyNoClash() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/privateClassPropertyNoClash.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevel.kt")
|
||||
public void testTopLevel() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevel.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevelDifferentFiles.kt")
|
||||
public void testTopLevelDifferentFiles() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevelGetter.kt")
|
||||
public void testTopLevelGetter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevelGetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("trait.kt")
|
||||
public void testTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class SpecialNames {
|
||||
@Test
|
||||
public void testAllFilesPresentInSpecialNames() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/classObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObjectCopiedField.kt")
|
||||
public void testClassObjectCopiedField() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/classObjectCopiedField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObjectCopiedFieldObject.kt")
|
||||
public void testClassObjectCopiedFieldObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/classObjectCopiedFieldObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dataClassCopy.kt")
|
||||
public void testDataClassCopy() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/dataClassCopy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationBy.kt")
|
||||
public void testDelegationBy() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/delegationBy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/enum.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("innerClassField.kt")
|
||||
public void testInnerClassField() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/innerClassField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("instance.kt")
|
||||
public void testInstance() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/instance.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadataCache.kt")
|
||||
public void testPropertyMetadataCache() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/propertyMetadataCache.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Statics {
|
||||
@Test
|
||||
public void testAllFilesPresentInStatics() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jkjk.kt")
|
||||
public void testJkjk() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/jkjk.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassExtendsJavaClass.kt")
|
||||
public void testKotlinClassExtendsJavaClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassExtendsJavaClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassExtendsJavaClassExtendsJavaClass.kt")
|
||||
public void testKotlinClassExtendsJavaClassExtendsJavaClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassExtendsJavaClassExtendsJavaClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassImplementsJavaInterface.kt")
|
||||
public void testKotlinClassImplementsJavaInterface() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassImplementsJavaInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassImplementsJavaInterfaceExtendsJavaInteface.kt")
|
||||
public void testKotlinClassImplementsJavaInterfaceExtendsJavaInteface() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassImplementsJavaInterfaceExtendsJavaInteface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinMembersVsJavaNonVisibleStatics.kt")
|
||||
public void testKotlinMembersVsJavaNonVisibleStatics() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinMembersVsJavaNonVisibleStatics.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Synthesized {
|
||||
@Test
|
||||
public void testAllFilesPresentInSynthesized() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumValuesValueOf.kt")
|
||||
public void testEnumValuesValueOf() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized/enumValuesValueOf.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TraitImpl {
|
||||
@Test
|
||||
public void testAllFilesPresentInTraitImpl() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("oneTrait.kt")
|
||||
public void testOneTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/oneTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitFunctionOverriddenByPropertyInTrait.kt")
|
||||
public void testTraitFunctionOverriddenByPropertyInTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/traitFunctionOverriddenByPropertyInTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitPropertyOverriddenByFunctionInTrait.kt")
|
||||
public void testTraitPropertyOverriddenByFunctionInTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/traitPropertyOverriddenByFunctionInTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("twoTraits.kt")
|
||||
public void testTwoTraits() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/twoTraits.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/dynamicTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
-556
@@ -11863,562 +11863,6 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class DuplicateJvmSignature {
|
||||
@Test
|
||||
public void testAllFilesPresentInDuplicateJvmSignature() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("caseInProperties.kt")
|
||||
public void testCaseInProperties() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/caseInProperties.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("vararg.kt")
|
||||
public void testVararg() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/vararg.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class AccidentalOverrides {
|
||||
@Test
|
||||
@TestMetadata("accidentalOverrideFromGrandparent.kt")
|
||||
public void testAccidentalOverrideFromGrandparent() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/accidentalOverrideFromGrandparent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInAccidentalOverrides() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classFunctionOverriddenByProperty.kt")
|
||||
public void testClassFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classFunctionOverriddenByPropertyInConstructor.kt")
|
||||
public void testClassFunctionOverriddenByPropertyInConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classFunctionOverriddenByPropertyNoGetter.kt")
|
||||
public void testClassFunctionOverriddenByPropertyNoGetter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyNoGetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classPropertyOverriddenByFunction.kt")
|
||||
public void testClassPropertyOverriddenByFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/classPropertyOverriddenByFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultFunction.kt")
|
||||
public void testDefaultFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/defaultFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedFunctionOverriddenByProperty.kt")
|
||||
public void testDelegatedFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/delegatedFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericClassFunction.kt")
|
||||
public void testGenericClassFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/genericClassFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overridesNothing.kt")
|
||||
public void testOverridesNothing() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/overridesNothing.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateClassFunctionOverriddenByProperty.kt")
|
||||
public void testPrivateClassFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
||||
public void testTraitFunctionOverriddenByProperty() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitFunctionOverriddenByPropertyNoImpl.kt")
|
||||
public void testTraitFunctionOverriddenByPropertyNoImpl() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByPropertyNoImpl.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitPropertyOverriddenByFunction.kt")
|
||||
public void testTraitPropertyOverriddenByFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitPropertyOverriddenByFunctionNoImpl.kt")
|
||||
public void testTraitPropertyOverriddenByFunctionNoImpl() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunctionNoImpl.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Bridges {
|
||||
@Test
|
||||
public void testAllFilesPresentInBridges() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("class.kt")
|
||||
public void testClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges/class.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fakeOverrideTrait.kt")
|
||||
public void testFakeOverrideTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges/fakeOverrideTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("trait.kt")
|
||||
public void testTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges/trait.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Erasure {
|
||||
@Test
|
||||
public void testAllFilesPresentInErasure() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clashFromInterfaceAndSuperClass.kt")
|
||||
public void testClashFromInterfaceAndSuperClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/clashFromInterfaceAndSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("collections.kt")
|
||||
public void testCollections() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/collections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegateToTwoTraits.kt")
|
||||
public void testDelegateToTwoTraits() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/delegateToTwoTraits.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationAndOwnMethod.kt")
|
||||
public void testDelegationAndOwnMethod() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/delegationAndOwnMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationToTraitImplAndOwnMethod.kt")
|
||||
public void testDelegationToTraitImplAndOwnMethod() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/delegationToTraitImplAndOwnMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionProperties.kt")
|
||||
public void testExtensionProperties() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/extensionProperties.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericType.kt")
|
||||
public void testGenericType() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/genericType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritFromTwoTraits.kt")
|
||||
public void testInheritFromTwoTraits() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/inheritFromTwoTraits.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinAndJavaCollections.kt")
|
||||
public void testKotlinAndJavaCollections() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/kotlinAndJavaCollections.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableType.kt")
|
||||
public void testNullableType() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/nullableType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superTraitAndDelegationToTraitImpl.kt")
|
||||
public void testSuperTraitAndDelegationToTraitImpl() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/superTraitAndDelegationToTraitImpl.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("twoTraitsAndOwnFunction.kt")
|
||||
public void testTwoTraitsAndOwnFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/twoTraitsAndOwnFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeMappedToJava.kt")
|
||||
public void testTypeMappedToJava() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeMappedToJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameter.kt")
|
||||
public void testTypeParameter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterWithBound.kt")
|
||||
public void testTypeParameterWithBound() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameterWithBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterWithTwoBounds.kt")
|
||||
public void testTypeParameterWithTwoBounds() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameterWithTwoBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterWithTwoBoundsInWhere.kt")
|
||||
public void testTypeParameterWithTwoBoundsInWhere() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/typeParameterWithTwoBoundsInWhere.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FinalMembersFromBuiltIns {
|
||||
@Test
|
||||
public void testAllFilesPresentInFinalMembersFromBuiltIns() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumMembers.kt")
|
||||
public void testEnumMembers() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns/enumMembers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("waitNotifyGetClass.kt")
|
||||
public void testWaitNotifyGetClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns/waitNotifyGetClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FunctionAndProperty {
|
||||
@Test
|
||||
public void testAllFilesPresentInFunctionAndProperty() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("class.kt")
|
||||
public void testClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/class.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/classObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classPropertyInConstructor.kt")
|
||||
public void testClassPropertyInConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/classPropertyInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionFunctionAndNormalFunction.kt")
|
||||
public void testExtensionFunctionAndNormalFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/extensionFunctionAndNormalFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionPropertyAndFunction.kt")
|
||||
public void testExtensionPropertyAndFunction() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/extensionPropertyAndFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionAndSetter.kt")
|
||||
public void testFunctionAndSetter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/functionAndSetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionAndVar.kt")
|
||||
public void testFunctionAndVar() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/functionAndVar.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/localClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClassInClass.kt")
|
||||
public void testLocalClassInClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/localClassInClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClass.kt")
|
||||
public void testNestedClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/nestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("object.kt")
|
||||
public void testObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/object.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objectExpression.kt")
|
||||
public void testObjectExpression() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/objectExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objectExpressionInConstructor.kt")
|
||||
public void testObjectExpressionInConstructor() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/objectExpressionInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateClassPropertyNoClash.kt")
|
||||
public void testPrivateClassPropertyNoClash() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/privateClassPropertyNoClash.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevel.kt")
|
||||
public void testTopLevel() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevel.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevelDifferentFiles.kt")
|
||||
public void testTopLevelDifferentFiles() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevelGetter.kt")
|
||||
public void testTopLevelGetter() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevelGetter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("trait.kt")
|
||||
public void testTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class SpecialNames {
|
||||
@Test
|
||||
public void testAllFilesPresentInSpecialNames() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/classObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObjectCopiedField.kt")
|
||||
public void testClassObjectCopiedField() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/classObjectCopiedField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObjectCopiedFieldObject.kt")
|
||||
public void testClassObjectCopiedFieldObject() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/classObjectCopiedFieldObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dataClassCopy.kt")
|
||||
public void testDataClassCopy() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/dataClassCopy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationBy.kt")
|
||||
public void testDelegationBy() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/delegationBy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/enum.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("innerClassField.kt")
|
||||
public void testInnerClassField() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/innerClassField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("instance.kt")
|
||||
public void testInstance() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/instance.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadataCache.kt")
|
||||
public void testPropertyMetadataCache() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames/propertyMetadataCache.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Statics {
|
||||
@Test
|
||||
public void testAllFilesPresentInStatics() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jkjk.kt")
|
||||
public void testJkjk() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/jkjk.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassExtendsJavaClass.kt")
|
||||
public void testKotlinClassExtendsJavaClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassExtendsJavaClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassExtendsJavaClassExtendsJavaClass.kt")
|
||||
public void testKotlinClassExtendsJavaClassExtendsJavaClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassExtendsJavaClassExtendsJavaClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassImplementsJavaInterface.kt")
|
||||
public void testKotlinClassImplementsJavaInterface() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassImplementsJavaInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinClassImplementsJavaInterfaceExtendsJavaInteface.kt")
|
||||
public void testKotlinClassImplementsJavaInterfaceExtendsJavaInteface() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinClassImplementsJavaInterfaceExtendsJavaInteface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinMembersVsJavaNonVisibleStatics.kt")
|
||||
public void testKotlinMembersVsJavaNonVisibleStatics() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics/kotlinMembersVsJavaNonVisibleStatics.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Synthesized {
|
||||
@Test
|
||||
public void testAllFilesPresentInSynthesized() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumValuesValueOf.kt")
|
||||
public void testEnumValuesValueOf() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized/enumValuesValueOf.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TraitImpl {
|
||||
@Test
|
||||
public void testAllFilesPresentInTraitImpl() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("oneTrait.kt")
|
||||
public void testOneTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/oneTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitFunctionOverriddenByPropertyInTrait.kt")
|
||||
public void testTraitFunctionOverriddenByPropertyInTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/traitFunctionOverriddenByPropertyInTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitPropertyOverriddenByFunctionInTrait.kt")
|
||||
public void testTraitPropertyOverriddenByFunctionInTrait() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/traitPropertyOverriddenByFunctionInTrait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("twoTraits.kt")
|
||||
public void testTwoTraits() {
|
||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/twoTraits.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/dynamicTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
interface Foo<X> {
|
||||
fun foo(x: X)
|
||||
}
|
||||
|
||||
open class FooImpl : Foo<String> {
|
||||
override fun foo(x: String) {
|
||||
}
|
||||
}
|
||||
|
||||
open class FooImpl2 : FooImpl() {
|
||||
fun foo(x: Any) {
|
||||
}
|
||||
}
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
interface Foo<X> {
|
||||
fun foo(x: X)
|
||||
}
|
||||
|
||||
open class FooImpl : Foo<String> {
|
||||
override fun foo(x: String) {
|
||||
}
|
||||
}
|
||||
|
||||
open class FooImpl2 : FooImpl() {
|
||||
<!ACCIDENTAL_OVERRIDE!>fun foo(x: Any)<!> {
|
||||
}
|
||||
}
|
||||
-25
@@ -1,25 +0,0 @@
|
||||
package
|
||||
|
||||
public interface Foo</*0*/ X> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract fun foo(/*0*/ x: X): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public open class FooImpl : Foo<kotlin.String> {
|
||||
public constructor FooImpl()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ fun foo(/*0*/ x: kotlin.String): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public open class FooImpl2 : FooImpl {
|
||||
public constructor FooImpl2()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun foo(/*0*/ x: kotlin.Any): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun foo(/*0*/ x: kotlin.String): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
open class B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
class C : B() {
|
||||
val x: Int
|
||||
get() = 1
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
open class B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
class C : B() {
|
||||
val x: Int
|
||||
<!ACCIDENTAL_OVERRIDE!>get()<!> = 1
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
package
|
||||
|
||||
public open class B {
|
||||
public constructor B()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class C : B {
|
||||
public constructor C()
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final override /*1*/ /*fake_override*/ fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
open class B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
class C(val x: Int) : B()
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
open class B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
class C(<!ACCIDENTAL_OVERRIDE!>val x: Int<!>) : B()
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
package
|
||||
|
||||
public open class B {
|
||||
public constructor B()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class C : B {
|
||||
public constructor C(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final override /*1*/ /*fake_override*/ fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
open class B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
class C : B() {
|
||||
val x: Int = 1
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
open class B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
class C : B() {
|
||||
<!ACCIDENTAL_OVERRIDE!>val x: Int<!> = 1
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
package
|
||||
|
||||
public open class B {
|
||||
public constructor B()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class C : B {
|
||||
public constructor C()
|
||||
public final val x: kotlin.Int = 1
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final override /*1*/ /*fake_override*/ fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
open class B {
|
||||
val x: Int
|
||||
get() = 1
|
||||
}
|
||||
|
||||
class C : B() {
|
||||
fun getX() = 1
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
open class B {
|
||||
val x: Int
|
||||
get() = 1
|
||||
}
|
||||
|
||||
class C : B() {
|
||||
<!ACCIDENTAL_OVERRIDE!>fun getX()<!> = 1
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
package
|
||||
|
||||
public open class B {
|
||||
public constructor B()
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class C : B {
|
||||
public constructor C()
|
||||
public final override /*1*/ /*fake_override*/ val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/defaultFunction.fir.kt
Vendored
-9
@@ -1,9 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
open class Base {
|
||||
open fun `foo$default`(d: Derived, i: Int, mask: Int, mh: Any) {}
|
||||
}
|
||||
|
||||
class Derived : Base() {
|
||||
fun foo(i: Int = 0) {}
|
||||
}
|
||||
Vendored
-9
@@ -1,9 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
open class Base {
|
||||
open fun `foo$default`(d: Derived, i: Int, mask: Int, mh: Any) {}
|
||||
}
|
||||
|
||||
class Derived : Base() {
|
||||
<!ACCIDENTAL_OVERRIDE!>fun foo(i: Int = 0)<!> {}
|
||||
}
|
||||
Vendored
-18
@@ -1,18 +0,0 @@
|
||||
package
|
||||
|
||||
public open class Base {
|
||||
public constructor Base()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun `foo$default`(/*0*/ d: Derived, /*1*/ i: kotlin.Int, /*2*/ mask: kotlin.Int, /*3*/ mh: kotlin.Any): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class Derived : Base {
|
||||
public constructor Derived()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun foo(/*0*/ i: kotlin.Int = ...): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun `foo$default`(/*0*/ d: Derived, /*1*/ i: kotlin.Int, /*2*/ mask: kotlin.Int, /*3*/ mh: kotlin.Any): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
interface B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
interface D {
|
||||
val x: Int
|
||||
}
|
||||
|
||||
class C(d: D) : D by d, B {
|
||||
}
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
interface B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
interface D {
|
||||
val x: Int
|
||||
}
|
||||
|
||||
class <!CONFLICTING_JVM_DECLARATIONS!>C(d: D)<!> : D by d, B {
|
||||
}
|
||||
-24
@@ -1,24 +0,0 @@
|
||||
package
|
||||
|
||||
public interface B {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class C : D, B {
|
||||
public constructor C(/*0*/ d: D)
|
||||
public open override /*1*/ /*delegation*/ val x: kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun getX(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface D {
|
||||
public abstract val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
open class B {
|
||||
fun foo(l: List<String>) {}
|
||||
}
|
||||
|
||||
class C : B() {
|
||||
fun foo(l: List<Int>) {}
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
open class B {
|
||||
fun foo(l: List<String>) {}
|
||||
}
|
||||
|
||||
class C : B() {
|
||||
<!ACCIDENTAL_OVERRIDE!>fun foo(l: List<Int>)<!> {}
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
package
|
||||
|
||||
public open class B {
|
||||
public constructor B()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun foo(/*0*/ l: kotlin.collections.List<kotlin.String>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class C : B {
|
||||
public constructor C()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun foo(/*0*/ l: kotlin.collections.List<kotlin.Int>): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun foo(/*0*/ l: kotlin.collections.List<kotlin.String>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
interface B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
class C : B {
|
||||
<!NOTHING_TO_OVERRIDE!>override<!> val x = 1
|
||||
}
|
||||
Vendored
-7
@@ -1,7 +0,0 @@
|
||||
interface B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
class <!CONFLICTING_JVM_DECLARATIONS!>C<!> : B {
|
||||
<!NOTHING_TO_OVERRIDE!>override<!> val x = 1
|
||||
}
|
||||
Vendored
-17
@@ -1,17 +0,0 @@
|
||||
package
|
||||
|
||||
public interface B {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class C : B {
|
||||
public constructor C()
|
||||
public open val x: kotlin.Int = 1
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
// FIR_IDENTICAL
|
||||
open class B {
|
||||
private fun getX() = 1
|
||||
}
|
||||
|
||||
class C : B() {
|
||||
val x: Int
|
||||
get() = 1
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
package
|
||||
|
||||
public open class B {
|
||||
public constructor B()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
private final fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class C : B {
|
||||
public constructor C()
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
interface T {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
class C : T {
|
||||
val x: Int
|
||||
get() = 1
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
interface T {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
class <!CONFLICTING_JVM_DECLARATIONS!>C<!> : T {
|
||||
val x: Int
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>get()<!> = 1
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
package
|
||||
|
||||
public final class C : T {
|
||||
public constructor C()
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface T {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
interface T {
|
||||
fun getX(): Int
|
||||
}
|
||||
|
||||
abstract class C : T {
|
||||
val x: Int
|
||||
get() = 1
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
interface T {
|
||||
fun getX(): Int
|
||||
}
|
||||
|
||||
abstract class C : T {
|
||||
val x: Int
|
||||
<!ACCIDENTAL_OVERRIDE!>get()<!> = 1
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
package
|
||||
|
||||
public abstract class C : T {
|
||||
public constructor C()
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface T {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
interface T {
|
||||
val x: Int
|
||||
get() = 1
|
||||
}
|
||||
|
||||
class C : T {
|
||||
fun getX() = 1
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
interface T {
|
||||
val x: Int
|
||||
get() = 1
|
||||
}
|
||||
|
||||
class <!CONFLICTING_JVM_DECLARATIONS!>C<!> : T {
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun getX()<!> = 1
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
package
|
||||
|
||||
public final class C : T {
|
||||
public constructor C()
|
||||
public open override /*1*/ /*fake_override*/ val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface T {
|
||||
public open val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
interface T {
|
||||
val x: Int
|
||||
}
|
||||
|
||||
abstract class C : T {
|
||||
fun getX() = 1
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
interface T {
|
||||
val x: Int
|
||||
}
|
||||
|
||||
abstract class C : T {
|
||||
<!ACCIDENTAL_OVERRIDE!>fun getX()<!> = 1
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
package
|
||||
|
||||
public abstract class C : T {
|
||||
public constructor C()
|
||||
public abstract override /*1*/ /*fake_override*/ val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface T {
|
||||
public abstract val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
open class B<T> {
|
||||
open fun foo(t: T) {}
|
||||
}
|
||||
|
||||
class C : B<String>() {
|
||||
override fun foo(t: String) {}
|
||||
|
||||
fun foo(o: Any) {}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
open class B<T> {
|
||||
open fun foo(t: T) {}
|
||||
}
|
||||
|
||||
class <!CONFLICTING_JVM_DECLARATIONS!>C<!> : B<String>() {
|
||||
override fun foo(t: String) {}
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(o: Any)<!> {}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
package
|
||||
|
||||
public open class B</*0*/ T> {
|
||||
public constructor B</*0*/ T>()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun foo(/*0*/ t: T): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class C : B<kotlin.String> {
|
||||
public constructor C()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun foo(/*0*/ o: kotlin.Any): kotlin.Unit
|
||||
public open override /*1*/ fun foo(/*0*/ t: kotlin.String): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface B<T> {
|
||||
fun foo(t: T) {}
|
||||
}
|
||||
|
||||
class C : B<String> {
|
||||
fun foo(o: Any) {}
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface B<T> {
|
||||
fun foo(t: T) {}
|
||||
}
|
||||
|
||||
class <!CONFLICTING_JVM_DECLARATIONS!>C<!> : B<String> {
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(o: Any)<!> {}
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
package
|
||||
|
||||
public interface B</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun foo(/*0*/ t: T): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class C : B<kotlin.String> {
|
||||
public constructor C()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun foo(/*0*/ o: kotlin.Any): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun foo(/*0*/ t: kotlin.String): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface B<T> {
|
||||
fun foo(t: T) {}
|
||||
}
|
||||
|
||||
class C : B<String> {
|
||||
override fun foo(t: String) {}
|
||||
|
||||
fun foo(o: Any) {}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface B<T> {
|
||||
fun foo(t: T) {}
|
||||
}
|
||||
|
||||
class <!CONFLICTING_JVM_DECLARATIONS!>C<!> : B<String> {
|
||||
override fun foo(t: String) {}
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(o: Any)<!> {}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package
|
||||
|
||||
public interface B</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun foo(/*0*/ t: T): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class C : B<kotlin.String> {
|
||||
public constructor C()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun foo(/*0*/ o: kotlin.Any): kotlin.Unit
|
||||
public open override /*1*/ fun foo(/*0*/ t: kotlin.String): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
val aa = 1
|
||||
val Aa = 1
|
||||
@@ -1,2 +0,0 @@
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>val aa<!> = 1
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>val Aa<!> = 1
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
package
|
||||
|
||||
public val Aa: kotlin.Int = 1
|
||||
public val aa: kotlin.Int = 1
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
public open class A<T> {
|
||||
fun foo(x: T) = "O"
|
||||
fun foo(x: A<T>) = "K"
|
||||
}
|
||||
|
||||
interface C<E> {
|
||||
fun foo(x: E): String
|
||||
fun foo(x: A<E>): String
|
||||
}
|
||||
|
||||
interface D {
|
||||
fun foo(x: A<String>): String
|
||||
}
|
||||
|
||||
class B1 : A<A<String>>(), D
|
||||
|
||||
interface B2 : C<A<String>>, D
|
||||
compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure/clashFromInterfaceAndSuperClass.kt
Vendored
-19
@@ -1,19 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
public open class A<T> {
|
||||
fun foo(x: T) = "O"
|
||||
fun foo(x: A<T>) = "K"
|
||||
}
|
||||
|
||||
interface C<E> {
|
||||
fun foo(x: E): String
|
||||
fun foo(x: A<E>): String
|
||||
}
|
||||
|
||||
interface D {
|
||||
fun foo(x: A<String>): String
|
||||
}
|
||||
|
||||
class <!CONFLICTING_INHERITED_JVM_DECLARATIONS!>B1<!> : A<A<String>>(), D
|
||||
|
||||
interface <!CONFLICTING_INHERITED_JVM_DECLARATIONS!>B2<!> : C<A<String>>, D
|
||||
-42
@@ -1,42 +0,0 @@
|
||||
package
|
||||
|
||||
public open class A</*0*/ T> {
|
||||
public constructor A</*0*/ T>()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun foo(/*0*/ x: A<T>): kotlin.String
|
||||
public final fun foo(/*0*/ x: T): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class B1 : A<A<kotlin.String>>, D {
|
||||
public constructor B1()
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final override /*1*/ /*fake_override*/ fun foo(/*0*/ x: A<A<kotlin.String>>): kotlin.String
|
||||
public final override /*2*/ /*fake_override*/ fun foo(/*0*/ x: A<kotlin.String>): kotlin.String
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface B2 : C<A<kotlin.String>>, D {
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract override /*1*/ /*fake_override*/ fun foo(/*0*/ x: A<A<kotlin.String>>): kotlin.String
|
||||
public abstract override /*2*/ /*fake_override*/ fun foo(/*0*/ x: A<kotlin.String>): kotlin.String
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface C</*0*/ E> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract fun foo(/*0*/ x: A<E>): kotlin.String
|
||||
public abstract fun foo(/*0*/ x: E): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface D {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract fun foo(/*0*/ x: A<kotlin.String>): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun foo(s: List<String>) {}
|
||||
fun foo(s: MutableList<String>) {}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(s: List<String>)<!> {}
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(s: MutableList<String>)<!> {}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
package
|
||||
|
||||
public fun foo(/*0*/ s: kotlin.collections.List<kotlin.String>): kotlin.Unit
|
||||
public fun foo(/*0*/ s: kotlin.collections.MutableList<kotlin.String>): kotlin.Unit
|
||||
Vendored
-12
@@ -1,12 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface Foo<T> {
|
||||
fun foo(l: List<T>)
|
||||
}
|
||||
|
||||
interface Bar<T> {
|
||||
fun foo(l: List<T>)
|
||||
}
|
||||
|
||||
class Baz(f: Foo<String>, b: Bar<Int>): Foo<String> by f, Bar<Int> by b {
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface Foo<T> {
|
||||
fun foo(l: List<T>)
|
||||
}
|
||||
|
||||
interface Bar<T> {
|
||||
fun foo(l: List<T>)
|
||||
}
|
||||
|
||||
class <!CONFLICTING_JVM_DECLARATIONS!>Baz(f: Foo<String>, b: Bar<Int>)<!>: Foo<String> by f, Bar<Int> by b {
|
||||
}
|
||||
-24
@@ -1,24 +0,0 @@
|
||||
package
|
||||
|
||||
public interface Bar</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract fun foo(/*0*/ l: kotlin.collections.List<T>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class Baz : Foo<kotlin.String>, Bar<kotlin.Int> {
|
||||
public constructor Baz(/*0*/ f: Foo<kotlin.String>, /*1*/ b: Bar<kotlin.Int>)
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*delegation*/ fun foo(/*0*/ l: kotlin.collections.List<kotlin.Int>): kotlin.Unit
|
||||
public open override /*1*/ /*delegation*/ fun foo(/*0*/ l: kotlin.collections.List<kotlin.String>): kotlin.Unit
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface Foo</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract fun foo(/*0*/ l: kotlin.collections.List<T>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Vendored
-9
@@ -1,9 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface Foo<T> {
|
||||
fun foo(l: List<T>)
|
||||
}
|
||||
|
||||
class Bar(f: Foo<String>): Foo<String> by f {
|
||||
fun foo(l: List<Int>) {}
|
||||
}
|
||||
Vendored
-9
@@ -1,9 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface Foo<T> {
|
||||
fun foo(l: List<T>)
|
||||
}
|
||||
|
||||
class <!CONFLICTING_JVM_DECLARATIONS!>Bar(f: Foo<String>)<!>: Foo<String> by f {
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(l: List<Int>)<!> {}
|
||||
}
|
||||
Vendored
-17
@@ -1,17 +0,0 @@
|
||||
package
|
||||
|
||||
public final class Bar : Foo<kotlin.String> {
|
||||
public constructor Bar(/*0*/ f: Foo<kotlin.String>)
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun foo(/*0*/ l: kotlin.collections.List<kotlin.Int>): kotlin.Unit
|
||||
public open override /*1*/ /*delegation*/ fun foo(/*0*/ l: kotlin.collections.List<kotlin.String>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface Foo</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract fun foo(/*0*/ l: kotlin.collections.List<T>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface Foo<T> {
|
||||
fun foo(l: List<T>) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Bar(f: Foo<String>): Foo<String> by f {
|
||||
fun foo(l: List<Int>) {}
|
||||
}
|
||||
|
||||
class BarOther(f: Foo<String>): Foo<String> by f {
|
||||
override fun foo(l: List<String>) {}
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface Foo<T> {
|
||||
fun foo(l: List<T>) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class <!CONFLICTING_JVM_DECLARATIONS!>Bar(f: Foo<String>)<!>: Foo<String> by f {
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(l: List<Int>)<!> {}
|
||||
}
|
||||
|
||||
class BarOther(f: Foo<String>): Foo<String> by f {
|
||||
override fun foo(l: List<String>) {}
|
||||
}
|
||||
-25
@@ -1,25 +0,0 @@
|
||||
package
|
||||
|
||||
public final class Bar : Foo<kotlin.String> {
|
||||
public constructor Bar(/*0*/ f: Foo<kotlin.String>)
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun foo(/*0*/ l: kotlin.collections.List<kotlin.Int>): kotlin.Unit
|
||||
public open override /*1*/ /*delegation*/ fun foo(/*0*/ l: kotlin.collections.List<kotlin.String>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class BarOther : Foo<kotlin.String> {
|
||||
public constructor BarOther(/*0*/ f: Foo<kotlin.String>)
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ fun foo(/*0*/ l: kotlin.collections.List<kotlin.String>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface Foo</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun foo(/*0*/ l: kotlin.collections.List<T>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Vendored
-7
@@ -1,7 +0,0 @@
|
||||
class G<T>
|
||||
|
||||
val <T> G<T>.foo: Int
|
||||
get() = 1
|
||||
|
||||
val G<String>.foo: Int
|
||||
get() = 1
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
class G<T>
|
||||
|
||||
val <T> G<T>.foo: Int
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>get()<!> = 1
|
||||
|
||||
val G<String>.foo: Int
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>get()<!> = 1
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package
|
||||
|
||||
public val </*0*/ T> G<T>.foo: kotlin.Int
|
||||
public val G<kotlin.String>.foo: kotlin.Int
|
||||
|
||||
public final class G</*0*/ T> {
|
||||
public constructor G</*0*/ T>()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
class G<T>
|
||||
|
||||
fun foo(x: G<String>): G<Int> {null!!}
|
||||
fun foo(x: G<Int>): G<String> {null!!}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
class G<T>
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(x: G<String>): G<Int><!> {null!!}
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(x: G<Int>): G<String><!> {null!!}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package
|
||||
|
||||
public fun foo(/*0*/ x: G<kotlin.Int>): G<kotlin.String>
|
||||
public fun foo(/*0*/ x: G<kotlin.String>): G<kotlin.Int>
|
||||
|
||||
public final class G</*0*/ T> {
|
||||
public constructor G</*0*/ T>()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Vendored
-12
@@ -1,12 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface Foo<T> {
|
||||
fun foo(l: List<T>) {}
|
||||
}
|
||||
|
||||
interface Bar<T> {
|
||||
fun foo(l: List<T>) {}
|
||||
}
|
||||
|
||||
class Baz(): Foo<String>, Bar<Int> {
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface Foo<T> {
|
||||
fun foo(l: List<T>) {}
|
||||
}
|
||||
|
||||
interface Bar<T> {
|
||||
fun foo(l: List<T>) {}
|
||||
}
|
||||
|
||||
class <!CONFLICTING_JVM_DECLARATIONS!>Baz()<!>: Foo<String>, Bar<Int> {
|
||||
}
|
||||
-24
@@ -1,24 +0,0 @@
|
||||
package
|
||||
|
||||
public interface Bar</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun foo(/*0*/ l: kotlin.collections.List<T>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class Baz : Foo<kotlin.String>, Bar<kotlin.Int> {
|
||||
public constructor Baz()
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun foo(/*0*/ l: kotlin.collections.List<kotlin.Int>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun foo(/*0*/ l: kotlin.collections.List<kotlin.String>): kotlin.Unit
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface Foo</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun foo(/*0*/ l: kotlin.collections.List<T>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Vendored
-4
@@ -1,4 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -PLATFORM_CLASS_MAPPED_TO_KOTLIN
|
||||
|
||||
fun foo(s: List<String>) {}
|
||||
fun foo(s: java.util.List<String>) {}
|
||||
Vendored
-4
@@ -1,4 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -PLATFORM_CLASS_MAPPED_TO_KOTLIN
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(s: List<String>)<!> {}
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(s: java.util.List<String>)<!> {}
|
||||
Vendored
-4
@@ -1,4 +0,0 @@
|
||||
package
|
||||
|
||||
public fun foo(/*0*/ s: java.util.List<kotlin.String>): kotlin.Unit
|
||||
public fun foo(/*0*/ s: kotlin.collections.List<kotlin.String>): kotlin.Unit
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun foo(x: String) {}
|
||||
fun foo(x: String?) {}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(x: String)<!> {}
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(x: String?)<!> {}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
package
|
||||
|
||||
public fun foo(/*0*/ x: kotlin.String): kotlin.Unit
|
||||
public fun foo(/*0*/ x: kotlin.String?): kotlin.Unit
|
||||
-13
@@ -1,13 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface A<T> {
|
||||
fun foo(l: List<T>)
|
||||
}
|
||||
|
||||
interface B {
|
||||
fun foo(l: List<Int>) {}
|
||||
}
|
||||
|
||||
class C(f: A<String>): A<String> by f, B
|
||||
|
||||
<!DELEGATED_MEMBER_HIDES_SUPERTYPE_OVERRIDE!>class D<!>(f: A<Int>): A<Int> by f, B
|
||||
-13
@@ -1,13 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface A<T> {
|
||||
fun foo(l: List<T>)
|
||||
}
|
||||
|
||||
interface B {
|
||||
fun foo(l: List<Int>) {}
|
||||
}
|
||||
|
||||
class <!CONFLICTING_JVM_DECLARATIONS!>C(f: A<String>)<!>: A<String> by f, B
|
||||
|
||||
<!DELEGATED_MEMBER_HIDES_SUPERTYPE_OVERRIDE!>class D<!>(f: A<Int>): A<Int> by f, B
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
package
|
||||
|
||||
public interface A</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract fun foo(/*0*/ l: kotlin.collections.List<T>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface B {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun foo(/*0*/ l: kotlin.collections.List<kotlin.Int>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class C : A<kotlin.String>, B {
|
||||
public constructor C(/*0*/ f: A<kotlin.String>)
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun foo(/*0*/ l: kotlin.collections.List<kotlin.Int>): kotlin.Unit
|
||||
public open override /*1*/ /*delegation*/ fun foo(/*0*/ l: kotlin.collections.List<kotlin.String>): kotlin.Unit
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class D : A<kotlin.Int>, B {
|
||||
public constructor D(/*0*/ f: A<kotlin.Int>)
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*2*/ /*delegation*/ fun foo(/*0*/ l: kotlin.collections.List<kotlin.Int>): kotlin.Unit
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Vendored
-13
@@ -1,13 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface Foo<T> {
|
||||
fun foo(l: List<T>) {}
|
||||
}
|
||||
|
||||
interface Bar<T> {
|
||||
fun foo(l: List<T>) {}
|
||||
}
|
||||
|
||||
class Baz(): Foo<String>, Bar<Int> {
|
||||
fun foo(l: List<Long>) {}
|
||||
}
|
||||
Vendored
-13
@@ -1,13 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface Foo<T> {
|
||||
fun foo(l: List<T>) {}
|
||||
}
|
||||
|
||||
interface Bar<T> {
|
||||
fun foo(l: List<T>) {}
|
||||
}
|
||||
|
||||
class <!CONFLICTING_JVM_DECLARATIONS!>Baz()<!>: Foo<String>, Bar<Int> {
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(l: List<Long>)<!> {}
|
||||
}
|
||||
Vendored
-25
@@ -1,25 +0,0 @@
|
||||
package
|
||||
|
||||
public interface Bar</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun foo(/*0*/ l: kotlin.collections.List<T>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class Baz : Foo<kotlin.String>, Bar<kotlin.Int> {
|
||||
public constructor Baz()
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun foo(/*0*/ l: kotlin.collections.List<kotlin.Int>): kotlin.Unit
|
||||
public final fun foo(/*0*/ l: kotlin.collections.List<kotlin.Long>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun foo(/*0*/ l: kotlin.collections.List<kotlin.String>): kotlin.Unit
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface Foo</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun foo(/*0*/ l: kotlin.collections.List<T>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -PLATFORM_CLASS_MAPPED_TO_KOTLIN
|
||||
|
||||
fun foo(s: java.lang.String) {}
|
||||
fun foo(s: String) {}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -PLATFORM_CLASS_MAPPED_TO_KOTLIN
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(s: java.lang.String)<!> {}
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(s: String)<!> {}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
package
|
||||
|
||||
public fun foo(/*0*/ s: java.lang.String): kotlin.Unit
|
||||
public fun foo(/*0*/ s: kotlin.String): kotlin.Unit
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun <T> foo(x: T): T {null!!}
|
||||
fun foo(x: Any): Any {null!!}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun <T> foo(x: T): T<!> {null!!}
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(x: Any): Any<!> {null!!}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
package
|
||||
|
||||
public fun </*0*/ T> foo(/*0*/ x: T): T
|
||||
public fun foo(/*0*/ x: kotlin.Any): kotlin.Any
|
||||
Vendored
-6
@@ -1,6 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface Foo
|
||||
|
||||
fun <T: Foo> foo(x: T): T {null!!}
|
||||
fun foo(x: Foo): Foo {null!!}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user