From 26a1b9ad9f347315bc14f2bf3ee064ede51794fc Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 30 Aug 2026 22:36:32 +0200 Subject: Fix record constructor for base records --- testsuite/runnable/record_base_constructor.elna | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 testsuite/runnable/record_base_constructor.elna (limited to 'testsuite/runnable/record_base_constructor.elna') diff --git a/testsuite/runnable/record_base_constructor.elna b/testsuite/runnable/record_base_constructor.elna new file mode 100644 index 0000000..86da08a --- /dev/null +++ b/testsuite/runnable/record_base_constructor.elna @@ -0,0 +1,19 @@ +type + Base = record + a: Int + end + Child = record(Base) + b: Int + end + Grandchild = record(Child) + c: Int + end + +var + g: Grandchild := Grandchild{a: 3, b: 5, c: 7} + +begin + assert(g.a = 3); + assert(g.b = 5); + assert(g.c = 7) +end. -- cgit v1.2.3