From b27872d5c5bfecae74195771f5c1f4e73385b6d6 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 8 Sep 2026 21:14:03 +0200 Subject: Fix ICE with offset trait and non-type identifier --- testsuite/fail_compilation/offset_not_record.elna | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 testsuite/fail_compilation/offset_not_record.elna (limited to 'testsuite/fail_compilation') diff --git a/testsuite/fail_compilation/offset_not_record.elna b/testsuite/fail_compilation/offset_not_record.elna new file mode 100644 index 0000000..d19e608 --- /dev/null +++ b/testsuite/fail_compilation/offset_not_record.elna @@ -0,0 +1,9 @@ +var + n: Word + +program() +begin + n := #offset(Int, top) (* @Error Type 'Int' does not support trait '#offset' *) +return 0u8 + +end. -- cgit v1.2.3