aboutsummaryrefslogtreecommitdiff
path: root/tests/trait_recursive_expand
diff options
context:
space:
mode:
Diffstat (limited to 'tests/trait_recursive_expand')
-rw-r--r--tests/trait_recursive_expand/source.mk1
-rw-r--r--tests/trait_recursive_expand/trait_recursive_expand.ek8
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/trait_recursive_expand/source.mk b/tests/trait_recursive_expand/source.mk
new file mode 100644
index 0000000..668408c
--- /dev/null
+++ b/tests/trait_recursive_expand/source.mk
@@ -0,0 +1 @@
+SIMPLE_XFAIL += trait_recursive_expand,'recursive trait implementations not allowed'
diff --git a/tests/trait_recursive_expand/trait_recursive_expand.ek b/tests/trait_recursive_expand/trait_recursive_expand.ek
new file mode 100644
index 0000000..53012bf
--- /dev/null
+++ b/tests/trait_recursive_expand/trait_recursive_expand.ek
@@ -0,0 +1,8 @@
+define b[] {
+ a![];
+}
+
+define a[] {
+ b![];
+ a(*a a);
+}