From 47f1d503ec663f967302b3071177c40c431b3fdb Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 11 Jan 2025 01:26:09 +0200 Subject: trait implementation in continuation --- tests/struct_trait_cont/struct_trait_cont.ek | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/struct_trait_cont/struct_trait_cont.ek (limited to 'tests/struct_trait_cont/struct_trait_cont.ek') diff --git a/tests/struct_trait_cont/struct_trait_cont.ek b/tests/struct_trait_cont/struct_trait_cont.ek new file mode 100644 index 0000000..f8e05c5 --- /dev/null +++ b/tests/struct_trait_cont/struct_trait_cont.ek @@ -0,0 +1,20 @@ +define a[] { + a(); +} + +typedef struct {} +continue struct { + a![]; + a(){} +} + +typedef struct2[a T] { + T elem; +} + +main() +{ + mut p = struct2![struct]{ + .elem = struct!{} + }; +} -- cgit v1.3