fix return values

This commit is contained in:
nora 2022-05-30 19:10:53 +02:00
parent eaa2f3527c
commit b063850b53
8 changed files with 64 additions and 15 deletions

View file

@ -1,12 +1,15 @@
fn test() {
let a = 5;
fn cooler_add(a, b) {
return a + b;
}
test();
test();
let i = 0;
while i < 100_000 {
test();
i = i + 1;
fn add(a, b) {
return cooler_add(a, b);
}
let added = add(1, 5);
if added == 6 {
print "correct";
} else {
print "FAILED";
}