aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-10-09 09:55:53 +0200
committerEugen Wissner <belka@caraus.de>2026-10-09 10:33:53 +0200
commit244449004fb62adbfd43b81e8dfce7500ca4a7e4 (patch)
treeb115946fc1efc2edc0de71a4e6d7cce2c50f39f2 /testsuite
parent994e6c95929ad9551901d86617e4678920f8f357 (diff)
downloadelna-244449004fb62adbfd43b81e8dfce7500ca4a7e4.tar.gz
Move export mark after the generic parameters
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/compilable/generic_export.elna11
-rw-r--r--testsuite/fail_compilation/generic_variable.elna6
2 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/compilable/generic_export.elna b/testsuite/compilable/generic_export.elna
new file mode 100644
index 0000000..64767fe
--- /dev/null
+++ b/testsuite/compilable/generic_export.elna
@@ -0,0 +1,11 @@
+module
+
+type
+ Stack#[T]* = record
+ item: ^T
+ end
+
+proc push#[T]*(s: ^Stack#[T]; item: ^T)
+return
+
+end.
diff --git a/testsuite/fail_compilation/generic_variable.elna b/testsuite/fail_compilation/generic_variable.elna
new file mode 100644
index 0000000..21f031a
--- /dev/null
+++ b/testsuite/fail_compilation/generic_variable.elna
@@ -0,0 +1,6 @@
+module
+
+var
+ x#[T]: Int (* @Error Variables cannot have generic parameters *)
+
+end.