When now tries to smart cast subject to not-null if contains no null case #KT-7857 Fixed
Some new tests + some fixed tests
This commit is contained in:
@@ -4,7 +4,7 @@ fun foo() {
|
||||
val x: Int? = null
|
||||
|
||||
if (x != null) {
|
||||
when (x) {
|
||||
when (<!DEBUG_INFO_SMARTCAST!>x<!>) {
|
||||
0 -> bar(<!DEBUG_INFO_SMARTCAST!>x<!>)
|
||||
else -> {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user