aboutsummaryrefslogtreecommitdiff
path: root/tests/struct_pub_generic_cont/struct_pub_generic_cont.ek
diff options
context:
space:
mode:
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.ek14
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();
+}