mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Interpreter adopts inner interpreter panic state on assert failure
This commit is contained in:
8
test/panic-within-functions.toy
Normal file
8
test/panic-within-functions.toy
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
fn panic() {
|
||||
assert false, "This should only be seen once";
|
||||
}
|
||||
|
||||
panic();
|
||||
panic();
|
||||
Reference in New Issue
Block a user