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 --- .../record_base_constructor_type_mismatch.elna | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 testsuite/fail_compilation/record_base_constructor_type_mismatch.elna (limited to 'testsuite/fail_compilation') diff --git a/testsuite/fail_compilation/record_base_constructor_type_mismatch.elna b/testsuite/fail_compilation/record_base_constructor_type_mismatch.elna new file mode 100644 index 0000000..85c93c1 --- /dev/null +++ b/testsuite/fail_compilation/record_base_constructor_type_mismatch.elna @@ -0,0 +1,14 @@ +type + Base = record + a: Int + end + Child = record(Base) + b: Int + end + +var + c: Child + +begin + c := Child{a: "wrong", b: 9} (* @Error Expected type 'Int', but got '\[\]const Word8' *) +end. -- cgit v1.2.3