mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
18 lines
342 B
Kotlin
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")
|
|
} |