Files
kotlin-fork/js/js.translator/testData/box/multiFile/classOfTheSameNameInAnotherPackage.kt
T
2018-09-12 09:49:25 +03:00

20 lines
269 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1288
// FILE: A.kt
package foo
open class A() {
fun f() = 3
}
fun box(): String {
return if ((A().f() + bar.A().f()) == 9) "OK" else "fail"
}
// FILE: B.kt
package bar
open class A() {
fun f() = 6
}