mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
12 lines
232 B
Kotlin
12 lines
232 B
Kotlin
class KotlinClass {
|
|
companion object {
|
|
val FOO_INT: Int = 10
|
|
val FOO_STRING: String = "OK"
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
val test = JavaClass().test()
|
|
return if (test == "OK10") "OK" else "fail : $test"
|
|
}
|