Files
kotlin-fork/compiler/testData/codegen/box/fullJdk/charBuffer.kt
T
Dmitriy Novozhilov 3f2e996803 [FIR2IR] Load builtin classes instead of creating them on the fly
This change uncovered KT-61282, which was hidden because of incorrect
  module fragments used as parent for builtin classes
2023-08-22 18:36:20 +00:00

15 lines
284 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// IGNORE_BACKEND_K2: JVM_IR
// Ignore reason: KT-61282
// FULL_JDK
import java.nio.CharBuffer
fun box(): String {
val cb = CharBuffer.wrap("OK")
cb.position(1)
val o = cb[0]
val k = (cb as CharSequence).get(0)
return o.toString() + k
}