diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-10-28 23:47:15 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-10-28 23:47:15 +0100 |
| commit | d54b7d86beff8bb91e204e56a7ec01d3ab8ca43c (patch) | |
| tree | c24c4c8962f7b3c4fc79b107d5d0928bdc63c491 /testsuite | |
| parent | 9f85fa784927f5b6ff07ce043eb46a3e9236760f (diff) | |
| download | elna-d54b7d86beff8bb91e204e56a7ec01d3ab8ca43c.tar.gz | |
Fix type checker traversal for record and array literals
Diffstat (limited to 'testsuite')
| -rw-r--r-- | testsuite/fail_compilation/generic_record_constructor.elna | 13 |
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. |
