summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2025-02-18 17:42:47 -0600
committerNic Gaffney <gaffney_nic@protonmail.com>2025-02-18 17:42:47 -0600
commiteacf9771c53f75a2b4ebe91070a32d5e9a73e524 (patch)
treefe3698a52d98b321f4e02d87e131b9742a708476 /examples
parent296564bbced8c3fa197ede9b16af60a4f88e350f (diff)
downloadcalico-eacf9771c53f75a2b4ebe91070a32d5e9a73e524.tar.gz
Small updates, tests fail
Diffstat (limited to 'examples')
-rw-r--r--examples/mathTest.nya12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/mathTest.nya b/examples/mathTest.nya
index f937b79..14e7f0a 100644
--- a/examples/mathTest.nya
+++ b/examples/mathTest.nya
@@ -6,13 +6,13 @@ fn test() -> i32 {
}
fn main() -> i32 {
- const: i32 num = 5;
+ const: i32 num = 5 + 3 * 7;
const: i32 num2 = test();
- if (num2 == test()) {
+ if (num2 == test())
puts("Hello World!");
- }
- if (num2 == 0) {
+
+ if (num2 == 0)
puts("Shouldn't print");
- }
- return num2;
+
+ return num;
}