summaryrefslogtreecommitdiff
path: root/test.lang
diff options
context:
space:
mode:
authorWormHeamer2025-08-08 04:43:37 -0400
committerWormHeamer2025-08-08 04:43:37 -0400
commit73bd0a21ab9b5073ea7d17fb85b3469d110dc06d (patch)
tree274d5203fec0fafd09e7aed7d247f22775c0678b /test.lang
parent374caf13f412f5062888bc2c49b011bec884e531 (diff)
rework some stuff, maybe bugfix, loosen associative typechecking
Diffstat (limited to 'test.lang')
-rw-r--r--test.lang14
1 files changed, 11 insertions, 3 deletions
diff --git a/test.lang b/test.lang
index d7f3c89..f46b8a0 100644
--- a/test.lang
+++ b/test.lang
@@ -1,9 +1,17 @@
func main(a, b i64) i64 {
- if a < b {
+ /*if a = b {
let t = a
a := b
b := t
- }
+ } else {
+ let t = a
+ a := b
+ b := t
+ }*/
/* TODO: error on failing to return from a function */
- return a + b
+ if a < b {
+ return 237 + a + 812734 + b + 81753 + 2389
+ } else {
+ return 1 + a + 7 + 123897
+ }
}