From d54b7d86beff8bb91e204e56a7ec01d3ab8ca43c Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 28 Oct 2026 23:47:15 +0100 Subject: Fix type checker traversal for record and array literals --- testsuite/fail_compilation/generic_record_constructor.elna | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testsuite/fail_compilation/generic_record_constructor.elna (limited to 'testsuite') diff --git a/testsuite/fail_compilation/generic_record_constructor.elna b/testsuite/fail_compilation/generic_record_constructor.elna new file mode 100644 index 0000000..7ef4007 --- /dev/null +++ b/testsuite/fail_compilation/generic_record_constructor.elna @@ -0,0 +1,13 @@ +module + +type + Stack#[T] = record + items: ^T + end + +proc make#[T](items: ^T) +var + uninstantiated := { Stack; items: items } (* @Error Too few type arguments for generic 'Stack', expected 1, got 0 *) +return + +end. -- cgit v1.2.3