mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
20 lines
253 B
Kotlin
Vendored
20 lines
253 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
// FILE: 1.kt
|
|
|
|
package test
|
|
|
|
class Foo(@JvmField val a: String)
|
|
|
|
inline fun test(s: (Foo) -> String): String {
|
|
return s(Foo("OK"))
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return test(Foo::a)
|
|
}
|