diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-11 16:30:39 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-11 16:30:39 +0200 |
| commit | 45b3531e29c1b596f1be123de94b7c618c92bf8a (patch) | |
| tree | 6fe6c326df6d8c8875a3ece1db17e9766030d579 /tests/struct_pub_generic_cont/struct_pub_generic_cont.ek | |
| parent | 47f1d503ec663f967302b3071177c40c431b3fdb (diff) | |
| download | ek-45b3531e29c1b596f1be123de94b7c618c92bf8a.tar.gz ek-45b3531e29c1b596f1be123de94b7c618c92bf8a.zip | |
multiple import stuff
Diffstat (limited to 'tests/struct_pub_generic_cont/struct_pub_generic_cont.ek')
| -rw-r--r-- | tests/struct_pub_generic_cont/struct_pub_generic_cont.ek | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/struct_pub_generic_cont/struct_pub_generic_cont.ek b/tests/struct_pub_generic_cont/struct_pub_generic_cont.ek new file mode 100644 index 0000000..905bdf9 --- /dev/null +++ b/tests/struct_pub_generic_cont/struct_pub_generic_cont.ek @@ -0,0 +1,14 @@ +import "struct.ek" + +continue struct[any T] { + do_something(){} +} + +main() +{ + mut p = struct![i27]{}; + /* should be different from do_something() defined in struct.ek */ + p.do_something(); + + some_func(); +} |
