summaryrefslogtreecommitdiff
path: root/test.lang
diff options
context:
space:
mode:
Diffstat (limited to 'test.lang')
-rw-r--r--test.lang8
1 files changed, 5 insertions, 3 deletions
diff --git a/test.lang b/test.lang
index 52e100b..40c3ff7 100644
--- a/test.lang
+++ b/test.lang
@@ -1,9 +1,11 @@
func main(a, b i64) i64 {
let x = 2
if a < b {
- x := 3 + (a / x)
+ x := 3
} else {
- x := 4 + (x * b)
+ let t = a
+ a := b
+ b := t
}
- return x
+ return a + x
}