diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-15 19:14:58 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-15 19:25:59 +0200 |
| commit | 7eaa051d4dcc3048c46f302997fd2175a983ac0e (patch) | |
| tree | 7734373551b8d0ac87a2857965fbc63067df1006 /tests/callbacks | |
| parent | 164625327bd057141edf84339d4b43b2a8e2de24 (diff) | |
| download | ek-7eaa051d4dcc3048c46f302997fd2175a983ac0e.tar.gz ek-7eaa051d4dcc3048c46f302997fd2175a983ac0e.zip | |
improve generics expansion
Diffstat (limited to 'tests/callbacks')
| -rw-r--r-- | tests/callbacks/callbacks.ek | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/callbacks/callbacks.ek b/tests/callbacks/callbacks.ek index 927c122..9e16627 100644 --- a/tests/callbacks/callbacks.ek +++ b/tests/callbacks/callbacks.ek @@ -1,6 +1,7 @@ typedef i27 {} +typedef ptr {} -do_stuff(^(i27 => i27) proc => i27) +do_stuff(*(i27 => i27) proc => i27) { return proc(20); } @@ -12,5 +13,5 @@ other_proc(i27 a => i27) main() { - do_stuff(other_proc); + do_stuff(other_proc&); } |
