From 45b3531e29c1b596f1be123de94b7c618c92bf8a Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 11 Jan 2025 16:30:39 +0200 Subject: multiple import stuff --- tests/struct_pub_generic_cont/struct.ek | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/struct_pub_generic_cont/struct.ek (limited to 'tests/struct_pub_generic_cont/struct.ek') diff --git a/tests/struct_pub_generic_cont/struct.ek b/tests/struct_pub_generic_cont/struct.ek new file mode 100644 index 0000000..85f1711 --- /dev/null +++ b/tests/struct_pub_generic_cont/struct.ek @@ -0,0 +1,14 @@ +pub define any[] {} +pub typedef i27 {} +pub typedef struct[any T] {} + +/* private definition of some function */ +continue struct[any T] { + do_something(){} +} + +pub some_func() +{ + mut p = struct![i27]{}; + p.do_something(); +} -- cgit v1.3