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

13 lines
287 B
Kotlin
Vendored

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