summaryrefslogtreecommitdiff
path: root/examples/mathTest.nya
diff options
context:
space:
mode:
Diffstat (limited to 'examples/mathTest.nya')
-rw-r--r--examples/mathTest.nya7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/mathTest.nya b/examples/mathTest.nya
index 280d53d..f937b79 100644
--- a/examples/mathTest.nya
+++ b/examples/mathTest.nya
@@ -8,6 +8,11 @@ fn test() -> i32 {
fn main() -> i32 {
const: i32 num = 5;
const: i32 num2 = test();
- puts("Hello World!");
+ if (num2 == test()) {
+ puts("Hello World!");
+ }
+ if (num2 == 0) {
+ puts("Shouldn't print");
+ }
return num2;
}