summaryrefslogtreecommitdiff
path: root/tests/dtfunctor.ur
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dtfunctor.ur')
-rw-r--r--tests/dtfunctor.ur9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/dtfunctor.ur b/tests/dtfunctor.ur
new file mode 100644
index 00000000..84257479
--- /dev/null
+++ b/tests/dtfunctor.ur
@@ -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/>