diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-15 17:50:41 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-15 17:50:41 +0300 |
| commit | 5a5e3e2de5839bcaf36a5eb73354f33f86e46f45 (patch) | |
| tree | 6b994616e35fef2dfea0a0ecab8b9f59529394a2 /tests/nested_structs.ek | |
| parent | 1b58c86d6856339d71bfc124fc8f48fbd2b09fd0 (diff) | |
| download | ek-5a5e3e2de5839bcaf36a5eb73354f33f86e46f45.tar.gz ek-5a5e3e2de5839bcaf36a5eb73354f33f86e46f45.zip | |
fix inits
Diffstat (limited to 'tests/nested_structs.ek')
| -rw-r--r-- | tests/nested_structs.ek | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/nested_structs.ek b/tests/nested_structs.ek new file mode 100644 index 0000000..1429a77 --- /dev/null +++ b/tests/nested_structs.ek @@ -0,0 +1,17 @@ +typedef i27 {} +typedef i9 {} + +typedef a { + i27 a; + i27 b; +} + +typedef b { + a a; + i27 b; +} + +main() +{ + mut p = b!{.a = a!{.a = 1, .b = 2}, .b = 3}; +} |
