aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2024-06-18 11:54:55 +0200
committerBad Diode <bd@badd10de.dev>2024-06-18 11:54:55 +0200
commitd56cbdb065fa12d9e2bec375f65ef67d611c61bb (patch)
tree7e4568e606f060d638ebb1f79367f9509a4ee9c7 /tests
parent9c3837060d1089131b351761db97544db8738de3 (diff)
downloadbdl-d56cbdb065fa12d9e2bec375f65ef67d611c61bb.tar.gz
bdl-d56cbdb065fa12d9e2bec375f65ef67d611c61bb.zip
Add array types and array symbol access
Diffstat (limited to 'tests')
-rw-r--r--tests/variables.bad5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/variables.bad b/tests/variables.bad
index a653dc7..473bb3c 100644
--- a/tests/variables.bad
+++ b/tests/variables.bad
@@ -53,3 +53,8 @@ let particle = entity {
53 ; Missing initialization fields default to zero. 53 ; Missing initialization fields default to zero.
54 vel = vec { y = -3 } 54 vel = vec { y = -3 }
55} 55}
56
57; We can have static arrays and have indexed access.
58let numbers: u32[0xff]
59set numbers[0] = 32
60set numbers[1] = 42