diff options
Diffstat (limited to 'test/const-map.mnml')
-rw-r--r-- | test/const-map.mnml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/const-map.mnml b/test/const-map.mnml index b63b68b..6942bba 100644 --- a/test/const-map.mnml +++ b/test/const-map.mnml @@ -8,4 +8,11 @@ const map: [string][string or integer or bool] = [ },*/ "sixth" = 20_000, "seventh" = 20.02, + "eight" = [8, 9, 0], ] + +const main: function = (input: [string][string or integer or bool]): string { + return input["eight"][2] +} + +main(input = map) |