aboutsummaryrefslogtreecommitdiffstats
path: root/tests/variables.bad
diff options
context:
space:
mode:
Diffstat (limited to 'tests/variables.bad')
-rw-r--r--tests/variables.bad6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/variables.bad b/tests/variables.bad
index 8043c14..8c7a375 100644
--- a/tests/variables.bad
+++ b/tests/variables.bad
@@ -54,13 +54,13 @@ let particle = entity : {
54set particle = entity : {} 54set particle = entity : {}
55 55
56; We can have static arrays and have indexed access. 56; We can have static arrays and have indexed access.
57let numbers: u32[0xff] 57let numbers: int[0xff]
58set numbers[0] = 32 58set numbers[0] = 32
59set numbers[1] = numbers[0] 59set numbers[1] = numbers[0]
60 60
61; Arrays are syntactic sugar for pointers (@). 61; Arrays are syntactic sugar for pointers (@).
62let ptr:@u32 = numbers 62let numptr: @int = numbers
63set ptr[10] = 33 63set numptr[10] = 33
64 64
65; Strings hold a .mem and .size fields with the number of bytes it holds. 65; Strings hold a .mem and .size fields with the number of bytes it holds.
66let hello: str = "hello world" 66let hello: str = "hello world"