commit 7baef61a2fd12be1bb3de899fa87233b147810ff parent dd40b619a1945534f4dc7a06d1c470031301a085 Author: Drew DeVault <sir@cmpwn.com> Date: Wed, 20 Jan 2021 15:17:19 -0500 tests/16-defer: also test return behavior Diffstat:
M | tests/16-defer.ha | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/16-defer.ha b/tests/16-defer.ha @@ -4,6 +4,10 @@ fn basics() void = { assert(x == 10); defer x = 20; assert(x == 10); + if (true) { + return; + }; + defer x = 30; }; fn scope() void = {