[FIR] Update smartcast tests

This commit is contained in:
Nikolay Lunyak
2022-05-30 16:18:26 +03:00
committed by teamcity
parent 611691ec70
commit d7e8dc65f5
3 changed files with 119 additions and 0 deletions
@@ -22,3 +22,13 @@ fun test_0(results: List<Nothing>) {
}
s?.let { it.a }
}
fun test_1(a: String?) {
if (a is Nothing?) {
val b = a?.length
}
if (a is Nothing) {
val b = a.length
}
}