From 2023a7b2d9656f80b00de81453348c0a66f200f7 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 14 Aug 2024 20:44:26 +0300 Subject: test cleanup + Somewhat poor Git hygiene but I also fixed some bugs while I was at it. --- tests/callbacks.ek | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'tests/callbacks.ek') 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); } -- cgit v1.3