Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt10805.kt
T
2017-11-29 02:53:49 +03:00

12 lines
258 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
// 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!!
}