From 994e6c95929ad9551901d86617e4678920f8f357 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 9 Oct 2026 00:52:27 +0200 Subject: Strip away constness from literals and rvalues --- testsuite/fail_compilation/record_constructor_const.elna | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 testsuite/fail_compilation/record_constructor_const.elna (limited to 'testsuite/fail_compilation/record_constructor_const.elna') diff --git a/testsuite/fail_compilation/record_constructor_const.elna b/testsuite/fail_compilation/record_constructor_const.elna new file mode 100644 index 0000000..946105b --- /dev/null +++ b/testsuite/fail_compilation/record_constructor_const.elna @@ -0,0 +1,10 @@ +module +type + R = record + x: Int + end + +var + r := { const R; x: 1 } (* @Error Record constructor cannot have 'const' qualifier *) + +end. -- cgit v1.2.3