mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
23 lines
348 B
Kotlin
Vendored
23 lines
348 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// WITH_RUNTIME
|
|
// MODULE: lib
|
|
// FILE: common.kt
|
|
|
|
enum class FooEnum(val s: String) {
|
|
O("O"),
|
|
FAIL("FAIL"),
|
|
K("K");
|
|
}
|
|
|
|
|
|
// MODULE: bar(lib)
|
|
// FILE: second.kt
|
|
|
|
fun bar(): String = FooEnum.valueOf("O").s + FooEnum.values()[2].s
|
|
|
|
// MODULE: main(bar)
|
|
// FILE: main.kt
|
|
|
|
fun box(): String {
|
|
return bar()
|
|
} |