Files
kotlin/compiler/testData/codegen/boxMultiFile/kt1515/1.kt
2016-01-22 05:54:38 +03:00

18 lines
341 B
Kotlin
Vendored

package thispackage
import otherpackage.*
fun box(): String {
if (!localUse()) {
return "local use failed"
}
if (!fromOtherPackage()) {
return "use from other package failed"
}
return "OK"
}
fun localUse(): Boolean {
val c = Runnable::class.java
return (c.getName()!! == "java.lang.Runnable")
}