19 lines
290 B
Kotlin
Vendored
19 lines
290 B
Kotlin
Vendored
|
|
class A {
|
|
private lateinit var str: String
|
|
|
|
public fun getMyStr(): String {
|
|
try {
|
|
val a = str
|
|
} catch (e: RuntimeException) {
|
|
return "OK"
|
|
}
|
|
|
|
return "FAIL"
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
val a = A()
|
|
return a.getMyStr()
|
|
} |