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:
@@ -8,7 +8,7 @@ fun test() : Unit {
|
||||
y <!USELESS_CAST!>as Int<!> : Int
|
||||
x <!USELESS_CAST!>as Int?<!> : Int?
|
||||
y <!USELESS_CAST_STATIC_ASSERT_IS_FINE!>as Int?<!> : Int?
|
||||
x as? Int : Int?
|
||||
x <!USELESS_CAST_STATIC_ASSERT_IS_FINE!>as? Int<!> : Int?
|
||||
y <!USELESS_CAST!>as? Int<!> : Int?
|
||||
x <!USELESS_CAST!>as? Int?<!> : Int?
|
||||
y <!USELESS_CAST_STATIC_ASSERT_IS_FINE!>as? Int?<!> : Int?
|
||||
|
||||
Reference in New Issue
Block a user