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:
committed by
Mikhail Glukhikh
parent
49fb9ff424
commit
5ccbf47531
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user