Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/doubleLambdaArgument.kt
T
Stanislav Erokhin 298a075381 Minor. removed functions which declared in Standard.kt from diagnostic testdata.
Removed declaration for functions: TODO, run, with, apply, let.
2016-01-25 19:13:31 +03:00

11 lines
177 B
Kotlin
Vendored

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