aboutsummaryrefslogtreecommitdiff
path: root/tests/struct_pub_generic_cont/struct.ek
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-01-11 16:30:39 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2025-01-11 16:30:39 +0200
commit45b3531e29c1b596f1be123de94b7c618c92bf8a (patch)
tree6fe6c326df6d8c8875a3ece1db17e9766030d579 /tests/struct_pub_generic_cont/struct.ek
parent47f1d503ec663f967302b3071177c40c431b3fdb (diff)
downloadek-45b3531e29c1b596f1be123de94b7c618c92bf8a.tar.gz
ek-45b3531e29c1b596f1be123de94b7c618c92bf8a.zip
multiple import stuff
Diffstat (limited to 'tests/struct_pub_generic_cont/struct.ek')
-rw-r--r--tests/struct_pub_generic_cont/struct.ek14
1 files changed, 14 insertions, 0 deletions
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();
+}