diff options
Diffstat (limited to 'tests/functor.lac')
-rw-r--r-- | tests/functor.lac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/functor.lac b/tests/functor.lac new file mode 100644 index 00000000..ef81300d --- /dev/null +++ b/tests/functor.lac @@ -0,0 +1,15 @@ +signature S = sig + type t + val z : t + val s : t -> t +end + +signature T = sig + type t + val three : t +end + +structure F = functor (M : S) : T => struct + val t = M.t + val three = M.s (M.s (M.s M.z)) +end |