diff options
Diffstat (limited to 'tests/struct_pub_generic_cont/struct.ek')
| -rw-r--r-- | tests/struct_pub_generic_cont/struct.ek | 14 |
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(); +} |
