mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
14 lines
184 B
Kotlin
14 lines
184 B
Kotlin
fun box(): String {
|
|
|
|
fun local():Int {
|
|
return 10;
|
|
}
|
|
|
|
class A {
|
|
fun test(): Int {
|
|
return local()
|
|
}
|
|
}
|
|
|
|
return if (A().test() == 10) "OK" else "fail"
|
|
} |