Files
kotlin/compiler/testData/codegen/boxMultiFile/kt1515/1.kt
Alexander Udalov a61b3ec461 Move multi-file codegen testData to boxMultiFile/
There'll be an auto-generated test over this directory
2013-02-11 02:01:42 +04:00

18 lines
342 B
Kotlin

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 = javaClass<Runnable>()
return (c.getName()!! == "java.lang.Runnable")
}