summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-03-08 19:59:55 -0700
committerOri Bernstein <ori@eigenstate.org>2015-03-08 19:59:55 -0700
commita3b2adffd9eeb3d15e54cfcba7b1f1097ade002d (patch)
tree38993a1a7e85217b8c3e0d84a12aa28fdc98a750 /test
parentfa136ee5b99cfcca3384a849578d168392ff2865 (diff)
downloadmc-a3b2adffd9eeb3d15e54cfcba7b1f1097ade002d.tar.gz
Add 'tygeneric' specifier.
Diffstat (limited to 'test')
-rw-r--r--test/genericrec.myr5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/genericrec.myr b/test/genericrec.myr
index 8dd4855..414c596 100644
--- a/test/genericrec.myr
+++ b/test/genericrec.myr
@@ -8,4 +8,9 @@ type list(@t) = struct
const main = {
var v : list(int)
+ var n
+
+ v.val = 123
+ v.next = std.alloc()
+ v.next.val = 234
}