FIR checker: report SMARTCAST_IMPOSSIBLE for local variables
This commit is contained in:
committed by
TeamCityServer
parent
092750e215
commit
0ecc752813
+2
-2
@@ -3,8 +3,8 @@ fun foo(arg: Int?) {
|
||||
var x = arg
|
||||
if (x == null) return
|
||||
run {
|
||||
// Unsafe because of owner modification
|
||||
x<!UNSAFE_CALL!>.<!>hashCode()
|
||||
// Stable because `run` is in-place
|
||||
x.hashCode()
|
||||
x = null
|
||||
}
|
||||
if (x != null) x = 42
|
||||
|
||||
Reference in New Issue
Block a user