aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-12 19:00:42 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-12 19:06:03 +0300
commit29c6d398d22d633425177400f34ab508260f02bf (patch)
tree1f51a32536cab07243d1fe42aba38f86a856f3d4 /tests
parent2157fdbaca0b80e488c4f77ad5c0d04b051175cf (diff)
downloadek-29c6d398d22d633425177400f34ab508260f02bf.tar.gz
ek-29c6d398d22d633425177400f34ab508260f02bf.zip
implement defer for most control flow
+ continue/break
Diffstat (limited to 'tests')
-rw-r--r--tests/generic_defer.ek3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/generic_defer.ek b/tests/generic_defer.ek
index 11c099c..cb11154 100644
--- a/tests/generic_defer.ek
+++ b/tests/generic_defer.ek
@@ -13,5 +13,8 @@ typedef a[any T] {
main()
{
a![i27] a = a![i27]{.b = 10};
+ a.do_stuff();
+
a![i9] b = a![i9]{.b = 20 as i9};
+ b.do_stuff();
}