[K/N][K2]: K2 behavioral difference with inconsistent inheritance of ObjCName
The problem arises when retrieveDirectOverriddenOf returns a substitution override member. For such members, it is impossible to get the first base member. For a correct result, it is required to find originalForSubstitutionOverride for all substitutionOverrides. #KT-64276 Fixed
This commit is contained in:
committed by
Space Team
parent
5525a6829a
commit
434470a4f5
+24
@@ -72,6 +72,30 @@ public class DiagnosticsNativeTestGenerated extends AbstractDiagnosticsNativeTes
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName2.kt")
|
||||
public void testObjCName2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName3.kt")
|
||||
public void testObjCName3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName4.kt")
|
||||
public void testObjCName4() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName4.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName5.kt")
|
||||
public void testObjCName5() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCRefinement.kt")
|
||||
public void testObjCRefinement() throws Exception {
|
||||
|
||||
+24
@@ -76,6 +76,30 @@ public class FirLightTreeOldFrontendNativeDiagnosticsTestGenerated extends Abstr
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName2.kt")
|
||||
public void testObjCName2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName3.kt")
|
||||
public void testObjCName3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName4.kt")
|
||||
public void testObjCName4() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName4.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName5.kt")
|
||||
public void testObjCName5() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCRefinement.kt")
|
||||
public void testObjCRefinement() throws Exception {
|
||||
|
||||
+24
@@ -76,6 +76,30 @@ public class FirPsiOldFrontendNativeDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName2.kt")
|
||||
public void testObjCName2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName3.kt")
|
||||
public void testObjCName3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName4.kt")
|
||||
public void testObjCName4() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName4.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCName5.kt")
|
||||
public void testObjCName5() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/objCName5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("objCRefinement.kt")
|
||||
public void testObjCRefinement() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user