Files
kotlin-fork/compiler/testData/diagnostics/tests/controlStructures/kt10322.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
206 B
Kotlin
Vendored

fun test1() {
run {
if (true) {
<!INVALID_IF_AS_EXPRESSION, IMPLICIT_CAST_TO_ANY!>if (true) {}<!>
}
else {
<!IMPLICIT_CAST_TO_ANY!>1<!>
}
}
}