[K/N][K2] K2 behavioral difference with inconsistent inheritance of ObjCName
When a declaration with an ObjC annotation is stored in a different module, the annotation arguments are not resolved by default. This leads to a bug in the checker. Before attempting to find the objCName, it is necessary to resolve the annotation first. #KT-64276
This commit is contained in:
committed by
Space Team
parent
700432e111
commit
bb8c7dd04c
+6
@@ -108,6 +108,12 @@ public class DiagnosticsNativeTestGenerated extends AbstractDiagnosticsNativeTes
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCNameWithTwoModules.kt")
|
||||
public void testObjCNameWithTwoModules() {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCNameWithTwoModules.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCRefinement.kt")
|
||||
public void testObjCRefinement() {
|
||||
|
||||
+6
@@ -112,6 +112,12 @@ public class FirLightTreeOldFrontendNativeDiagnosticsTestGenerated extends Abstr
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCNameWithTwoModules.kt")
|
||||
public void testObjCNameWithTwoModules() {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCNameWithTwoModules.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCRefinement.kt")
|
||||
public void testObjCRefinement() {
|
||||
|
||||
+6
@@ -112,6 +112,12 @@ public class FirPsiOldFrontendNativeDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCNameWithTwoModules.kt")
|
||||
public void testObjCNameWithTwoModules() {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCNameWithTwoModules.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCRefinement.kt")
|
||||
public void testObjCRefinement() {
|
||||
|
||||
Reference in New Issue
Block a user