mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
16 lines
180 B
Kotlin
Vendored
16 lines
180 B
Kotlin
Vendored
// FILE: klib.kt
|
|
package fromKlib
|
|
|
|
class C {
|
|
val x = "OK"
|
|
}
|
|
fun foo(): String {
|
|
return C().x
|
|
}
|
|
|
|
// FILE: test.kt
|
|
import fromKlib.foo
|
|
|
|
fun box(): String {
|
|
return foo()
|
|
} |