summaryrefslogtreecommitdiff
path: root/examples/test.nya
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2024-08-08 19:20:49 -0500
committerNic Gaffney <gaffney_nic@protonmail.com>2024-08-08 19:20:49 -0500
commitc3af878d4919635cd1c6a4bd866042a92c4d8e93 (patch)
treeccd38905327e749b0246fc30d3d1fce143bb956f /examples/test.nya
parent068ff09a96ad3cdea31d788c053ea3d544713e39 (diff)
downloadcalico-c3af878d4919635cd1c6a4bd866042a92c4d8e93.tar.gz
Added more tests for codegen
Diffstat (limited to 'examples/test.nya')
-rw-r--r--examples/test.nya9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/test.nya b/examples/test.nya
index 8e44c18..3088546 100644
--- a/examples/test.nya
+++ b/examples/test.nya
@@ -1,7 +1,6 @@
fn main() -> i32 {
- var poggies = 120;
- poggies = 5;
- const poggers = poggies;
- poggies = 0;
- return poggies;
+ const testval = 6;
+ var testvar = testval;
+ testvar = 5;
+ return testvar;
}