diff tests/functor.lac @ 41:1405d8c26790

Beginning of functor elaboration
author Adam Chlipala <adamc@hcoop.net>
date Thu, 19 Jun 2008 16:04:28 -0400
parents e3d3c2791105
children b3fbbc6cb1e5
line wrap: on
line diff
--- a/tests/functor.lac	Thu Jun 19 15:15:00 2008 -0400
+++ b/tests/functor.lac	Thu Jun 19 16:04:28 2008 -0400
@@ -9,7 +9,11 @@
         val three : t
 end
 
+signature F = functor (M : S) : T
+
 structure F = functor (M : S) : T => struct
-        val t = M.t
+        type t = M.t
         val three = M.s (M.s (M.s M.z))
 end
+
+structure F2 : F = F