if (a != null) return a // nullability info considered

This commit is contained in:
Andrey Breslav
2011-07-05 16:08:25 +04:00
parent 4121aed773
commit 0c5eca16d5
2 changed files with 15 additions and 5 deletions
+6
View File
@@ -272,3 +272,9 @@ fun f8(b : String?, a : String) {
b.get(0)
}
}
fun f9(a : Int?) : Int {
if (a != null)
return a
return 1
}