diff tests/dtfunctor.ur @ 1704:21ecf340f05c

Fix defunctorization of modules containing datatype definitions
author Adam Chlipala <adam@chlipala.net>
date Thu, 29 Mar 2012 09:55:04 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/dtfunctor.ur	Thu Mar 29 09:55:04 2012 -0400
@@ -0,0 +1,9 @@
+functor Make(M : sig end) = struct
+    datatype t = A | B
+end
+
+structure A = Make(struct end)
+structure B = Make(struct end)
+
+fun main (x : A.t) (y : B.t) : transaction page =
+    return <xml/>