Files
kotlin-fork/compiler/testData/codegen/box/jdk/noStringToCharArray.kt
T
Denis.Zharkov e4480a1c52 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
2023-05-30 10:44:41 +00:00

5 lines
125 B
Kotlin
Vendored

// WITH_STDLIB
internal val wildcardChars = "OK".toCharArray()
fun box(): String = "${wildcardChars[0]}${wildcardChars[1]}"