aboutsummaryrefslogtreecommitdiff
path: root/tests/trait_multiple_expand/trait_multiple_expand.ek
diff options
context:
space:
mode:
Diffstat (limited to 'tests/trait_multiple_expand/trait_multiple_expand.ek')
-rw-r--r--tests/trait_multiple_expand/trait_multiple_expand.ek26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/trait_multiple_expand/trait_multiple_expand.ek b/tests/trait_multiple_expand/trait_multiple_expand.ek
new file mode 100644
index 0000000..04e2b82
--- /dev/null
+++ b/tests/trait_multiple_expand/trait_multiple_expand.ek
@@ -0,0 +1,26 @@
+typedef ptr {}
+
+define b[] {
+ c![];
+ a![];
+}
+
+define a[] {
+ c![];
+ a(*a a);
+}
+
+define c[] {
+ c(*c c);
+}
+
+typedef d {
+ b![];
+ c(*d d) {}
+}
+
+main()
+{
+ d d = d!{};
+ d.c();
+}