Files
kotlin-fork/compiler/testData/codegen/boxKlib/properties.kt
T
Georgy Bronnikov fe009ac695 IR: restore reading common Klib from JVM
Adapt to changes in linker
2020-02-23 14:55:29 +03:00

20 lines
320 B
Kotlin
Vendored

// FILE: klib.kt
package fromKlib
class C {
val inClass = "O"
}
val toplevel get() = "K"
fun referByDescriptor(s: String) = s.length
// FILE: test.kt
import fromKlib.C
import fromKlib.referByDescriptor
import fromKlib.toplevel
fun box(): String {
referByDescriptor("heh")
return C().inClass + toplevel
}