diff options
Diffstat (limited to 'tests/callbacks.ek')
| -rw-r--r-- | tests/callbacks.ek | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/callbacks.ek b/tests/callbacks.ek index 6e753e0..927c122 100644 --- a/tests/callbacks.ek +++ b/tests/callbacks.ek @@ -1,17 +1,16 @@ -do_stuff(^(u32) proc) -{ - proc(); -} +typedef i27 {} -other_proc(u32) +do_stuff(^(i27 => i27) proc => i27) { + return proc(20); } -other_proc() +other_proc(i27 a => i27) { + return a + 10; } main() { - do_stuff(other_proc as ^(u32)); + do_stuff(other_proc); } |
