summaryrefslogtreecommitdiff
path: root/test/const-array.mnml
diff options
context:
space:
mode:
Diffstat (limited to 'test/const-array.mnml')
-rw-r--r--test/const-array.mnml6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/const-array.mnml b/test/const-array.mnml
index 03c7163..e5f30b8 100644
--- a/test/const-array.mnml
+++ b/test/const-array.mnml
@@ -1,2 +1,8 @@
const array: [integer] = [1, 2, 3]
const array2: [integer] = [3, 4, 5]
+
+const main: function = (array3: [integer], array4: [integer]): integer {
+ return array4[1]
+}
+
+main(array3 = array, array4 = array2)