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