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