diff options
| author | WormHeamer | 2025-08-08 04:43:37 -0400 |
|---|---|---|
| committer | WormHeamer | 2025-08-08 04:43:37 -0400 |
| commit | 73bd0a21ab9b5073ea7d17fb85b3469d110dc06d (patch) | |
| tree | 274d5203fec0fafd09e7aed7d247f22775c0678b /test.lang | |
| parent | 374caf13f412f5062888bc2c49b011bec884e531 (diff) | |
rework some stuff, maybe bugfix, loosen associative typechecking
Diffstat (limited to 'test.lang')
| -rw-r--r-- | test.lang | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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 + } } |
