KT-518 - array like expression via intrinsic method
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user