22e26d0756
* Also cleanup tests to avoid using obsolete WITH_RUNTIME
28 lines
361 B
Kotlin
Vendored
28 lines
361 B
Kotlin
Vendored
// TARGET_BACKEND: JVM_IR
|
|
// WITH_STDLIB
|
|
|
|
// MODULE: lib
|
|
// FILE: 1.kt
|
|
|
|
package test
|
|
|
|
enum class X {
|
|
O,
|
|
K
|
|
}
|
|
|
|
// MODULE: caller(lib)
|
|
// !LANGUAGE: +EnumEntries
|
|
|
|
// FILE: 2.kt
|
|
import test.*
|
|
|
|
@OptIn(ExperimentalStdlibApi::class)
|
|
inline fun test(idx: Int): String {
|
|
return X.entries[idx].toString()
|
|
}
|
|
|
|
fun box(): String {
|
|
return test(0) + test(1)
|
|
}
|