diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-09 22:26:09 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-09 22:26:09 +0300 |
| commit | 0bee8234a52c9399544364e8d26b124cb487ce7c (patch) | |
| tree | e026b5482d740473c50055f4424eb87b362ddddc /tests/trait_expand.ek | |
| parent | aa7ea13840e68abff8e9cf74376a6276f6a99033 (diff) | |
| download | ek-0bee8234a52c9399544364e8d26b124cb487ce7c.tar.gz ek-0bee8234a52c9399544364e8d26b124cb487ce7c.zip | |
fix trait expansion
+ Accidentally referenced an owned string, add strdup()
+ Didn't replace type IDs in ->t2
Diffstat (limited to 'tests/trait_expand.ek')
| -rw-r--r-- | tests/trait_expand.ek | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/trait_expand.ek b/tests/trait_expand.ek index eca1e16..2d9f90d 100644 --- a/tests/trait_expand.ek +++ b/tests/trait_expand.ek @@ -5,3 +5,15 @@ define b[] { define a[] { a(*a a); } + +typedef c { + b![]; + + a(*c) {} +} + +main() +{ + c c; + c.a(); +} |
