KT-518 - array like expression via intrinsic method

This commit is contained in:
Alex Tkachman
2011-11-18 12:10:08 +02:00
parent c896206284
commit b054ccefdb
6 changed files with 77 additions and 8 deletions
@@ -0,0 +1,15 @@
fun foo(i : Int?, a : Any?) {
i?.plus(1)
if (i != null) {
i + 1
if (a is String) {
a[0]
}
}
}
fun box () : String {
foo(2, "239")
return "OK"
}