diff options
Diffstat (limited to 'tests/variables.bad')
-rw-r--r-- | tests/variables.bad | 6 |
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 : { | |||
54 | set particle = entity : {} | 54 | set particle = entity : {} |
55 | 55 | ||
56 | ; We can have static arrays and have indexed access. | 56 | ; We can have static arrays and have indexed access. |
57 | let numbers: u32[0xff] | 57 | let numbers: int[0xff] |
58 | set numbers[0] = 32 | 58 | set numbers[0] = 32 |
59 | set numbers[1] = numbers[0] | 59 | set numbers[1] = numbers[0] |
60 | 60 | ||
61 | ; Arrays are syntactic sugar for pointers (@). | 61 | ; Arrays are syntactic sugar for pointers (@). |
62 | let ptr:@u32 = numbers | 62 | let numptr: @int = numbers |
63 | set ptr[10] = 33 | 63 | set 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. |
66 | let hello: str = "hello world" | 66 | let hello: str = "hello world" |