Array access expression.

This commit is contained in:
Dmitry Petrov
2016-08-25 09:44:16 +03:00
committed by Dmitry Petrov
parent 54e6bbd007
commit b3407de1e6
5 changed files with 44 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
val p = 0
fun foo() = 1
fun test(a: IntArray) =
a[0] + a[p] + a[foo()]