mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Fixed jumps in functions issue
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
fn capture(count: int) {
|
||||
print count;
|
||||
print capture;
|
||||
|
||||
if (count < 5) {
|
||||
return count;
|
||||
}
|
||||
|
||||
print count;
|
||||
print capture;
|
||||
|
||||
fn foo() {
|
||||
//
|
||||
count++;
|
||||
count++;
|
||||
|
||||
// return capture(count + 1);
|
||||
return -1;
|
||||
}
|
||||
|
||||
foo();
|
||||
print capture(52);
|
||||
|
||||
Reference in New Issue
Block a user