aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/alias-cycle-behind-const.elna
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-08-30 02:08:45 +0200
committerEugen Wissner <belka@caraus.de>2026-08-30 02:08:45 +0200
commit491e62664394a8689a3f8904fbe8dbc3dea05524 (patch)
tree7142cf8d94fc6f9cf953d42d9c136b77f65d8034 /testsuite/fail_compilation/alias-cycle-behind-const.elna
parent08d9c4292ebba3e320c1dbaca4fa06c83f6fc7fb (diff)
downloadelna-491e62664394a8689a3f8904fbe8dbc3dea05524.tar.gz
Fix ICEs with recursive type declarations
Diffstat (limited to 'testsuite/fail_compilation/alias-cycle-behind-const.elna')
-rw-r--r--testsuite/fail_compilation/alias-cycle-behind-const.elna4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/alias-cycle-behind-const.elna b/testsuite/fail_compilation/alias-cycle-behind-const.elna
new file mode 100644
index 0000000..0c3b626
--- /dev/null
+++ b/testsuite/fail_compilation/alias-cycle-behind-const.elna
@@ -0,0 +1,4 @@
+type
+ A = B
+ B = const A (* @Error Type declaration forms a cycle: A -> B -> A *)
+end.