Files

11 lines
150 B
Kotlin
Vendored

interface Foo
fun foo(): Foo? = null
val foo: Foo = run {
run {
val x = foo()
if (x == null) throw Exception()
x
}
}