Elvis / if / when now infer error type in case of ErrorType + Nothing #KT-6665 Fixed

(cherry picked from commit 9a50a0b)
This commit is contained in:
Mikhail Glukhikh
2016-06-16 17:45:17 +03:00
committed by Mikhail Glukhikh
parent 49fb9ff424
commit 5ccbf47531
8 changed files with 92 additions and 14 deletions
@@ -9,7 +9,7 @@ else {
{ true } <!USELESS_ELVIS_ON_LAMBDA_EXPRESSION!>?:<!> null!!
}
val <!IMPLICIT_NOTHING_PROPERTY_TYPE!>ww<!> = if (true) {
val ww = if (true) {
<!TYPE_MISMATCH!>{ true }<!> <!USELESS_ELVIS_ON_LAMBDA_EXPRESSION!>?:<!> null!!
}
else if (true) {