diff tests/sig_impl.lac @ 79:37847b504cc6

More hardcore unification
author Adam Chlipala <adamc@hcoop.net>
date Sun, 29 Jun 2008 11:20:34 -0400
parents a6d45c6819c9
children
line wrap: on
line diff
--- a/tests/sig_impl.lac	Sun Jun 29 11:05:38 2008 -0400
+++ b/tests/sig_impl.lac	Sun Jun 29 11:20:34 2008 -0400
@@ -25,3 +25,34 @@
 structure M : S = struct
         val x = fn v : int => {A = 0, B = "Hi"}
 end
+
+signature S = sig
+        con nm :: Name
+        con t :: Type
+        con r :: {Type}
+        val x : $([nm = t] ++ r)
+end
+
+structure M : S = struct
+        val x = {A = 0, B = "Hi"}
+end
+
+signature S = sig
+        con nm :: Name
+        con r :: {Type}
+        val x : $([nm = int] ++ r)
+end
+
+structure M : S = struct
+        val x = {A = 0, B = "Hi"}
+end
+
+signature S = sig
+        con nm :: Name
+        con r :: {Type}
+        val x : $([nm = string] ++ r)
+end
+
+structure M : S = struct
+        val x = {A = 0, B = "Hi"}
+end