One non-processed branch is now allowed for if statement #KT-10805 Fixed

Also #EA-64033 Fixed
This commit is contained in:
Mikhail Glukhikh
2016-01-27 14:55:11 +03:00
committed by Mikhail Glukhikh
parent 43b176de7e
commit 7e26fa6002
4 changed files with 61 additions and 33 deletions
@@ -0,0 +1,11 @@
// 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!!
}
@@ -0,0 +1,3 @@
package
public val fn: kotlin.Nothing