Fixed invoking functions within function arguments

Somewhat similar to c9d4b9965c
This commit is contained in:
2026-05-19 13:21:41 +10:00
parent a0d75b3c70
commit f55f27726c
10 changed files with 115 additions and 47 deletions
@@ -0,0 +1,11 @@
fn a(x) {
assert x == 42;
}
fn b() {
return 42;
}
a(b());
+1
View File
@@ -0,0 +1 @@
pass;
+8
View File
@@ -0,0 +1,8 @@
fn empty() { //BUG: there's an extra return in the bytecode
return;
}
fn full() {
return 42;
}