summaryrefslogtreecommitdiff
path: root/test/genericrec.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-08-09 17:13:30 -0400
committerOri Bernstein <ori@eigenstate.org>2013-08-09 17:13:30 -0400
commit1f224c74db8ada97c2404cd8ac2c1a3aacafd4d9 (patch)
tree3c37bfc2a2cac1139d6c72611a6d833ced83e479 /test/genericrec.myr
parente5ecc330e4eba798ee447f1e90669051b66b1879 (diff)
downloadmc-1f224c74db8ada97c2404cd8ac2c1a3aacafd4d9.tar.gz
Re-enable the other generic test as well.
Diffstat (limited to 'test/genericrec.myr')
-rw-r--r--test/genericrec.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/genericrec.myr b/test/genericrec.myr
index e280f00..19a12cd 100644
--- a/test/genericrec.myr
+++ b/test/genericrec.myr
@@ -1,8 +1,9 @@
+use std
/* test that generic types can be recursive, as long as they're not self
* including. This just needs to compile and exit with 0. */
type list(@t) = struct
val : @t
- next : list(@t)*
+ next : list(@t)#
;;
const main = {