IR: restore reading common Klib from JVM

Adapt to changes in linker
This commit is contained in:
Georgy Bronnikov
2020-02-20 09:40:36 +03:00
parent d54a35ef56
commit fe009ac695
14 changed files with 179 additions and 170 deletions
+20
View File
@@ -0,0 +1,20 @@
// 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
}
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// FILE: klib.kt
package fromKlib