summaryrefslogtreecommitdiff
path: root/test/generic-in-const.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/generic-in-const.myr')
-rw-r--r--test/generic-in-const.myr4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/generic-in-const.myr b/test/generic-in-const.myr
index 150fe18..2dd01be 100644
--- a/test/generic-in-const.myr
+++ b/test/generic-in-const.myr
@@ -1,3 +1,7 @@
+/*
+should fail to compile because generic types
+are only allowed in generic declarations.
+*/
const foo = {v : @a
-> v
}