Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt
T
2016-01-27 22:44:52 +03:00

11 lines
235 B
Kotlin
Vendored

// AssertionError for nested ifs with lambdas and Nothing as results
val <!IMPLICIT_NOTHING_PROPERTY_TYPE!>fn<!> = if (true) {
<!TYPE_MISMATCH!>{ true }<!>
}
else if (true) {
<!TYPE_MISMATCH!>{ true }<!>
}
else {
null!!
}