aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-10-28 23:47:15 +0100
committerEugen Wissner <belka@caraus.de>2026-10-28 23:47:15 +0100
commitd54b7d86beff8bb91e204e56a7ec01d3ab8ca43c (patch)
treec24c4c8962f7b3c4fc79b107d5d0928bdc63c491 /testsuite/fail_compilation
parent9f85fa784927f5b6ff07ce043eb46a3e9236760f (diff)
downloadelna-d54b7d86beff8bb91e204e56a7ec01d3ab8ca43c.tar.gz
Fix type checker traversal for record and array literals
Diffstat (limited to 'testsuite/fail_compilation')
-rw-r--r--testsuite/fail_compilation/generic_record_constructor.elna13
1 files changed, 13 insertions, 0 deletions
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.