Data flow information: stable complex expressions introduced back for brackets / elvis / if / when #KT-13468 Fixed
This reverts commite515d7f773and also commit1c9f08e986(cherry picked from commit 9fa155b)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
86bc49558d
commit
b6443eed9e
+4
-4
@@ -3,7 +3,7 @@
|
||||
fun basic(): String {
|
||||
var current: String? = null
|
||||
current = if (current == null) "bar" else current
|
||||
return <!TYPE_MISMATCH!>current<!>
|
||||
return <!DEBUG_INFO_SMARTCAST!>current<!>
|
||||
}
|
||||
|
||||
fun foo(flag: Boolean) {
|
||||
@@ -13,7 +13,7 @@ fun foo(flag: Boolean) {
|
||||
x = if (flag) "34" else "12"
|
||||
}
|
||||
|
||||
x<!UNSAFE_CALL!>.<!>hashCode()
|
||||
<!DEBUG_INFO_SMARTCAST!>x<!>.hashCode()
|
||||
}
|
||||
|
||||
fun bar(flag: Boolean) {
|
||||
@@ -26,7 +26,7 @@ fun bar(flag: Boolean) {
|
||||
}
|
||||
}
|
||||
|
||||
x<!UNSAFE_CALL!>.<!>hashCode()
|
||||
<!DEBUG_INFO_SMARTCAST!>x<!>.hashCode()
|
||||
}
|
||||
|
||||
fun baz(flag: Boolean) {
|
||||
@@ -40,7 +40,7 @@ fun baz(flag: Boolean) {
|
||||
}
|
||||
}
|
||||
|
||||
x<!UNSAFE_CALL!>.<!>hashCode()
|
||||
<!DEBUG_INFO_SMARTCAST!>x<!>.hashCode()
|
||||
}
|
||||
|
||||
fun gav(flag: Boolean, arg: String?) {
|
||||
|
||||
Reference in New Issue
Block a user