summaryrefslogtreecommitdiff
path: root/test.lang
diff options
context:
space:
mode:
authorWormHeamer2025-08-07 22:19:31 -0400
committerWormHeamer2025-08-07 22:19:31 -0400
commit027b6d8f62281f5b513a2b7bfcc02ea833c2cfd2 (patch)
treef989eac0b424d379dc542635b10837217ec3aa76 /test.lang
parent9c8861a1ad58954f40d599c83405c720e0d2e07b (diff)
i thiiiink if statement peepholes work now?
Diffstat (limited to 'test.lang')
-rw-r--r--test.lang10
1 files changed, 5 insertions, 5 deletions
diff --git a/test.lang b/test.lang
index 24a931d..2d3c42d 100644
--- a/test.lang
+++ b/test.lang
@@ -1,8 +1,8 @@
func main(a, b i64) i64 {
- if a = b {
- let t = a
- a := b
- b := t
+ if true {
+ a := 3
+ } else {
+ a := 5
}
- return a + b
+ return a
}