summaryrefslogtreecommitdiff
path: root/test/slice.myr
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-08-14 18:05:35 -0400
committerOri Bernstein <orib@google.com>2012-08-14 18:05:35 -0400
commite24bcc37239283534785e2e2a31393f20ae6c9b7 (patch)
treebbedc658751e6e7d319abbc67dcf5e02db3a1330 /test/slice.myr
parent9ae749374b8862dd16792eadacff1fb7dde6fa05 (diff)
downloadmc-e24bcc37239283534785e2e2a31393f20ae6c9b7.tar.gz
Allow implicit bounds on slices.
Diffstat (limited to 'test/slice.myr')
-rw-r--r--test/slice.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/slice.myr b/test/slice.myr
index ce42166..9bd2d10 100644
--- a/test/slice.myr
+++ b/test/slice.myr
@@ -2,9 +2,9 @@ const main = {
var a : int[3]
var s
- s = a[0,3]
+ s = a[,]
s[0] = 3
s[1] = 4
- s[2] = s[0] + s[1]
+ s[2] = s[0] + s[1] + s.len
-> s[2]
}