aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin5
1 files changed, 5 insertions, 0 deletions
diff --git a/code/demo.odin b/code/demo.odin
index 0899cc111..b29ef97ec 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -1,6 +1,11 @@
#import "fmt.odin"
main :: proc() {
+ foo :: proc(x: i64) -> i64 {
+ return -x + 1
+ }
+
x, y: i64 = 123, 321
y = x + 2 - y
+ x = foo(y)
}