K2: consider backing fields of vars as smartcast unstable

#KT-61974 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-09-28 11:42:53 +02:00
committed by Space Team
parent 8e577e101e
commit 8bd792792f
3 changed files with 6 additions and 7 deletions
@@ -20,7 +20,7 @@ class Test {
}
}
return { // BLOCK
val <elvis>: Nothing? = <this>.#resourceTable
val <elvis>: ResourceTable? = <this>.#resourceTable
when {
EQEQ(arg0 = <elvis>, arg1 = null) -> ResourceTable()
else -> <elvis>