diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-10-03 20:51:22 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-10-03 20:51:22 +0200 |
| commit | e4ce7f658741a7428597da4872435a1b0bae944c (patch) | |
| tree | 50f65abf6fa4468db7bc93a6ae61d623a2dd8566 /testsuite/compilable/generic_pointee.elna | |
| parent | 5d808dd4c4003968bbdf180e1e1193231db5d43b (diff) | |
| download | elna-e4ce7f658741a7428597da4872435a1b0bae944c.tar.gz | |
Rework generics for parameters to be plain types
Diffstat (limited to 'testsuite/compilable/generic_pointee.elna')
| -rw-r--r-- | testsuite/compilable/generic_pointee.elna | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/compilable/generic_pointee.elna b/testsuite/compilable/generic_pointee.elna new file mode 100644 index 0000000..5ecaedf --- /dev/null +++ b/testsuite/compilable/generic_pointee.elna @@ -0,0 +1,17 @@ +program() + +type + File = record + fd: Int + end + +proc allocate#[T](size: Word) -> ^T +extern + +var + f: ^File + +begin + f := allocate#[File](#size(File)); + assert(f = nil) +end. |
