diff options
author | 2008-06-19 15:15:00 -0400 | |
---|---|---|
committer | 2008-06-19 15:15:00 -0400 | |
commit | 5a4ddea95a551c5f95f0dcbda433fe457b61d25a (patch) | |
tree | 60135c04bf54aba0d443ec39a4dc37ec0f399852 /tests | |
parent | 8e98be7de2dd3db541994aae47aeb45756f60098 (diff) |
Functor parsing
Diffstat (limited to 'tests')
-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 |