shithub: mc

Download patch

ref: 57aa7ad1553ffaedcf3cbd437edf69878b83a238
parent: 8e3b725def953776fbbaa03114c368ebb1f1372c
author: Ori Bernstein <[email protected]>
date: Fri Aug 9 11:17:11 EDT 2013

Add generic type test.

--- a/test/generictype.myr
+++ b/test/generictype.myr
@@ -1,6 +1,8 @@
+use std
+
 /* checks that parameterized types work. exits with 0. */
 type option(@a) = union
-	`Some @a
+	`Some @a::(tcint,tcnum,tctest)
 	`None
 ;;
 
--- a/test/tests
+++ b/test/tests
@@ -60,7 +60,7 @@
 B generic	E	42
 B trait-builtin	E	42
 B genericcall	E	42
-# B generictype	E	0       ## BUGGERED
+B generictype	E	0       ## BUGGERED
 # B genericrec	E	0       ## BUGGERED
 B sizeof	E	4
 B gsizeof	E	5