diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-06-19 16:04:28 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-06-19 16:04:28 -0400 |
commit | 7a1c5e1780fd3c56d9c591821905bb3b3bbfa50a (patch) | |
tree | 1ea265b32102b42663cc227b04c8c4e86e4b136f /tests | |
parent | 5a4ddea95a551c5f95f0dcbda433fe457b61d25a (diff) |
Beginning of functor elaboration
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functor.lac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/functor.lac b/tests/functor.lac index ef81300d..1eef5383 100644 --- a/tests/functor.lac +++ b/tests/functor.lac @@ -9,7 +9,11 @@ signature T = sig 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 |