mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
21 lines
334 B
Kotlin
Vendored
21 lines
334 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// IGNORE_LIGHT_ANALYSIS
|
|
// WITH_RUNTIME
|
|
// !INHERIT_MULTIFILE_PARTS
|
|
|
|
// FILE: test.kt
|
|
|
|
@file:JvmMultifileClass
|
|
@file:JvmName("Test")
|
|
|
|
internal fun <T> List<T>.first(): T = get(0)
|
|
|
|
fun test(): String {
|
|
return listOf("OK").first()
|
|
}
|
|
|
|
// FILE: box.kt
|
|
|
|
fun box(): String = test()
|