diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-15 19:14:58 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-15 19:25:59 +0200 |
| commit | 7eaa051d4dcc3048c46f302997fd2175a983ac0e (patch) | |
| tree | 7734373551b8d0ac87a2857965fbc63067df1006 /tests/struct_func_ptr/struct_func_ptr.ek | |
| parent | 164625327bd057141edf84339d4b43b2a8e2de24 (diff) | |
| download | ek-7eaa051d4dcc3048c46f302997fd2175a983ac0e.tar.gz ek-7eaa051d4dcc3048c46f302997fd2175a983ac0e.zip | |
improve generics expansion
Diffstat (limited to 'tests/struct_func_ptr/struct_func_ptr.ek')
| -rw-r--r-- | tests/struct_func_ptr/struct_func_ptr.ek | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/struct_func_ptr/struct_func_ptr.ek b/tests/struct_func_ptr/struct_func_ptr.ek new file mode 100644 index 0000000..43da6cc --- /dev/null +++ b/tests/struct_func_ptr/struct_func_ptr.ek @@ -0,0 +1,14 @@ +typedef ptr {} +typedef i27 {} + +typedef struct { + *() f; +} + +do_something(){} + +main() +{ + mut p = struct!{.f = do_something&}; + p.f(); +} |
