Files
kotlin-fork/js/js.translator/testData/box/multiFile/importedDeclarationMangling.kt
T
2018-04-19 13:17:28 +03:00

29 lines
436 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1120
// FILE: a.kt
package foo
import bar.*
import bar.Some.importedFunc
fun box(): String {
Some.justFunc()
importedFunc()
assertEquals("justFunc();importedFunc();", log)
return "OK"
}
// FILE: b.kt
package bar
var log = ""
object Some {
fun justFunc() {
log += "justFunc();"
}
fun importedFunc() {
log += "importedFunc();"
}
}