FIR DFA: smartcast variable to Nothing? on null assignment
In order to make resolution still work for members not available from `Nothing`, we track the type without `Nothing?` and use that for resolution instead.
This commit is contained in:
committed by
teamcityserver
parent
7e2f15f532
commit
4726dcce40
Vendored
+2
-2
@@ -19,11 +19,11 @@ fun g(x: B<Int>) {
|
||||
val y = x.content
|
||||
if (y == null) {
|
||||
f(y)
|
||||
g(y)
|
||||
<!NONE_APPLICABLE!>g<!>(y)
|
||||
}
|
||||
|
||||
if (y is Nothing?) {
|
||||
f(y)
|
||||
g(y)
|
||||
<!NONE_APPLICABLE!>g<!>(y)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user