mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
10 lines
133 B
Kotlin
10 lines
133 B
Kotlin
class Foo {
|
|
fun isOk() = true
|
|
}
|
|
|
|
fun box(): String {
|
|
val foo: Foo? = Foo()
|
|
if (foo?.isOk()!!) return "OK"
|
|
return "fail"
|
|
}
|