13 lines
246 B
Kotlin
Vendored
13 lines
246 B
Kotlin
Vendored
|
|
fun test(): () -> Throwable {
|
|
return try {
|
|
TODO()
|
|
} catch (e: Throwable) {
|
|
{ -> e }
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
val exception = test()()
|
|
return if (exception is NotImplementedError) "OK" else "fail: $exception"
|
|
} |