[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
public fun foo(x: String?): Int {
|
||||
do {
|
||||
// After the check, smart cast should work
|
||||
x ?: break
|
||||
// x is not null in both branches
|
||||
x.length
|
||||
} while (true)
|
||||
// x is null because of the break
|
||||
return x.<!INAPPLICABLE_CANDIDATE!>length<!>
|
||||
}
|
||||
Reference in New Issue
Block a user