aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/generic_arity.elna
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/fail_compilation/generic_arity.elna')
-rw-r--r--testsuite/fail_compilation/generic_arity.elna13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/generic_arity.elna b/testsuite/fail_compilation/generic_arity.elna
new file mode 100644
index 0000000..bb234af
--- /dev/null
+++ b/testsuite/fail_compilation/generic_arity.elna
@@ -0,0 +1,13 @@
+type
+ Stack#[T] = record
+ items: T
+ end
+
+var
+ broken: Stack (* @Error Too few type arguments for generic 'Stack', expected 1, got 0 *)
+
+program()
+begin
+return 0u8
+
+end.