mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
All leaks plugged for the time being
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
fn capture(count: int) {
|
||||
print count;
|
||||
print capture;
|
||||
|
||||
if (count > 5) {
|
||||
return count;
|
||||
}
|
||||
|
||||
return capture(count + 1);
|
||||
fn panic() {
|
||||
assert false, "This should only be seen once";
|
||||
}
|
||||
|
||||
print capture(0);
|
||||
panic();
|
||||
panic();
|
||||
|
||||
Reference in New Issue
Block a user