From 33fcf676128426f2ac9a4730d63fa481bb351518 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 18 Aug 2024 00:07:56 +0300 Subject: make check works again --- tests/trait_expand/source.mk | 1 + tests/trait_expand/trait_expand.ek | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 tests/trait_expand/source.mk create mode 100644 tests/trait_expand/trait_expand.ek (limited to 'tests/trait_expand') diff --git a/tests/trait_expand/source.mk b/tests/trait_expand/source.mk new file mode 100644 index 0000000..7926a7c --- /dev/null +++ b/tests/trait_expand/source.mk @@ -0,0 +1 @@ +SIMPLE += trait_expand diff --git a/tests/trait_expand/trait_expand.ek b/tests/trait_expand/trait_expand.ek new file mode 100644 index 0000000..c5f0f1c --- /dev/null +++ b/tests/trait_expand/trait_expand.ek @@ -0,0 +1,21 @@ +typedef ptr {} + +define b[] { + a![]; +} + +define a[] { + a(*a a); +} + +typedef c { + b![]; + + a(*c) {} +} + +main() +{ + c c = c!{}; + c.a(); +} -- cgit v1.3