From 8ceb48a4e60b8ff89f28372da4f66cd152e2e0fe Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 13 Jul 2026 23:59:36 +0200 Subject: Change record constructor syntax --- testsuite/compilable/record_construction.elna | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 testsuite/compilable/record_construction.elna (limited to 'testsuite/compilable/record_construction.elna') diff --git a/testsuite/compilable/record_construction.elna b/testsuite/compilable/record_construction.elna new file mode 100644 index 0000000..00e60db --- /dev/null +++ b/testsuite/compilable/record_construction.elna @@ -0,0 +1,12 @@ +type + R = record + x, y: Int + end + +var + r: R := R{x: 1, y: 2} + +begin + assert(r.x = 1 & r.y = 2) +return 0 +end. -- cgit v1.2.3