NI: improve lambdas completion – look at all postponed arguments during resolution lambdas by additional conditions

^KT-36819 Fixed
^KT-36069 Fixed
This commit is contained in:
Victor Petukhov
2020-03-31 13:06:44 +03:00
parent 3baeb63455
commit f8d72f5dd9
5 changed files with 61 additions and 78 deletions
@@ -46,7 +46,7 @@ fun testNoSmartCast3(s: String?) {
fun testNoSmartCast4(s: String?) {
id(
if (s != null) ( {""} )
else <!IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION!>noSmartCast4<!>(null) <!TYPE_MISMATCH!>{ <!TYPE_MISMATCH!>""<!> }<!>
else noSmartCast4(null) { "" }
)
s<!UNSAFE_CALL!>.<!>length
}