12533a383e
The tests fail currently because Klibs are generated by the JS backend, and signatures differ between JVM and JS (on JVM, return types are included in mangles for simple functions). This leads to linkage errors. Once signatures are reworked and harmonized between backends, the tests will repair themselves.
17 lines
206 B
Kotlin
Vendored
17 lines
206 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// 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()
|
|
} |