From 0f5e9f00b07606871a6289060fa904555d41ae7d Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 31 Aug 2026 17:18:39 +0200 Subject: Reject comparison of uncompatible types --- testsuite/fail_compilation/record-base-cycle-indirect.elna | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testsuite/fail_compilation/record-base-cycle-indirect.elna (limited to 'testsuite/fail_compilation/record-base-cycle-indirect.elna') diff --git a/testsuite/fail_compilation/record-base-cycle-indirect.elna b/testsuite/fail_compilation/record-base-cycle-indirect.elna new file mode 100644 index 0000000..412e6ea --- /dev/null +++ b/testsuite/fail_compilation/record-base-cycle-indirect.elna @@ -0,0 +1,13 @@ +type + A = record(B) + x: Int + end + B = record(A) (* @Error Type declaration forms a cycle: A -> B -> A *) + y: Int + end + +var + v: A + +begin +end. -- cgit v1.2.3