aboutsummaryrefslogtreecommitdiff
path: root/tests/trait_expand/trait_expand.ek
diff options
context:
space:
mode:
Diffstat (limited to 'tests/trait_expand/trait_expand.ek')
-rw-r--r--tests/trait_expand/trait_expand.ek21
1 files changed, 21 insertions, 0 deletions
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();
+}