summaryrefslogtreecommitdiff
path: root/examples/test.nya
diff options
context:
space:
mode:
Diffstat (limited to 'examples/test.nya')
-rw-r--r--examples/test.nya8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/test.nya b/examples/test.nya
new file mode 100644
index 0000000..0b359aa
--- /dev/null
+++ b/examples/test.nya
@@ -0,0 +1,8 @@
+fn main() -> i32 {
+ const testval = 6;
+ var testvar = testval;
+ testvar = 5 + 3 * 7;
+ if (1 == 1) return testvar;
+
+ return 7;
+}