3652ac9354
Looks like both tests are failing because now only classes from 'kotlin.*' are considered "external" and generated with declarations.
15 lines
257 B
Kotlin
Vendored
15 lines
257 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
|
|
// 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
|
|
}
|