[ObjCInterop] Implement @ObjCSignatureOverride
This annotation leads to conflicting overloads error supression,
in case where several function with the same argument types,
but different argument names are inherited from ObjC class.
We need to implement it in both K1 and K2 to make the IDE experience
better.
But the annotation itself wouldn't be available in K1.
^KT-61323
This commit is contained in:
committed by
Space Team
parent
77eee0d3fc
commit
6e8a7d4662
+18
@@ -68,6 +68,18 @@ public class LLFirNativeTestGenerated extends AbstractLLFirNativeTest {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/nativeProtectedFunCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noObjcOverrideConflictingOverloadsDisabled.kt")
|
||||
public void testNoObjcOverrideConflictingOverloadsDisabled() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/noObjcOverrideConflictingOverloadsDisabled.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noObjcOverrideConflictingOverloadsEnabled.kt")
|
||||
public void testNoObjcOverrideConflictingOverloadsEnabled() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/noObjcOverrideConflictingOverloadsEnabled.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName.kt")
|
||||
public void testObjCName() throws Exception {
|
||||
@@ -104,6 +116,12 @@ public class LLFirNativeTestGenerated extends AbstractLLFirNativeTest {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCRefinement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objcOverrideApplicability.kt")
|
||||
public void testObjcOverrideApplicability() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objcOverrideApplicability.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("resolveToDelegatedProperty.kt")
|
||||
public void testResolveToDelegatedProperty() throws Exception {
|
||||
|
||||
+18
@@ -68,6 +68,18 @@ public class LLFirReversedNativeTestGenerated extends AbstractLLFirReversedNativ
|
||||
runTest("compiler/testData/diagnostics/nativeTests/nativeProtectedFunCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noObjcOverrideConflictingOverloadsDisabled.kt")
|
||||
public void testNoObjcOverrideConflictingOverloadsDisabled() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/noObjcOverrideConflictingOverloadsDisabled.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noObjcOverrideConflictingOverloadsEnabled.kt")
|
||||
public void testNoObjcOverrideConflictingOverloadsEnabled() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/noObjcOverrideConflictingOverloadsEnabled.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName.kt")
|
||||
public void testObjCName() throws Exception {
|
||||
@@ -104,6 +116,12 @@ public class LLFirReversedNativeTestGenerated extends AbstractLLFirReversedNativ
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCRefinement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objcOverrideApplicability.kt")
|
||||
public void testObjcOverrideApplicability() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objcOverrideApplicability.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("resolveToDelegatedProperty.kt")
|
||||
public void testResolveToDelegatedProperty() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user