Review fixes for mutable variable smart casting (mostly refactoring).
DataFlowValue.isPredictable() introduced instead of isStableIdentifier(). Parenthesized assignments are treated correctly.
This commit is contained in:
@@ -68,7 +68,7 @@ class MyTest() {
|
||||
}
|
||||
else {
|
||||
a = "ss"
|
||||
doSmth(a as String)
|
||||
doSmth(<!DEBUG_INFO_SMARTCAST!>a<!>)
|
||||
}
|
||||
doSmth(a)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user