K2: Refine mapping of primitive arrays to JVM descriptor

Earlier, it wasn't really important but after the previous commit
when JvmMappedScope semantics has been changed, we erroneously
started loading `toCharArray` as a member to String because
its jvmDescriptor was computed to "toCharArray()Lkotlin/CharArray",
while hardcoded information that prevents it from loading expect
"toCharArray()[C" there.

^KT-57694 In progress
This commit is contained in:
Denis.Zharkov
2023-04-13 14:31:50 +02:00
committed by Space Team
parent 2e5b783cc6
commit e4480a1c52
17 changed files with 100 additions and 1 deletions
@@ -24093,6 +24093,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/jdk/kt1397.kt");
}
@TestMetadata("noStringToCharArray.kt")
public void testNoStringToCharArray() throws Exception {
runTest("compiler/testData/codegen/box/jdk/noStringToCharArray.kt");
}
@TestMetadata("removeIf.kt")
public void testRemoveIf() throws Exception {
runTest("compiler/testData/codegen/box/jdk/removeIf.kt");