diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-06-19 16:43:24 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-06-19 16:43:24 -0400 |
commit | 9386a9382eda9bd19e99c80057398c593aaf812b (patch) | |
tree | f0e592614606c0b04edbb8c56bba0765bf05b872 /tests | |
parent | e542e7ba2106c5763006e88d90b6834fe9221b85 (diff) |
Subtyping for functor signatures
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functor.lac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/functor.lac b/tests/functor.lac index 7d2983e0..6e19603d 100644 --- a/tests/functor.lac +++ b/tests/functor.lac @@ -13,3 +13,8 @@ functor F (M : S) : T where type t = M.t = struct type t = M.t val three = M.s (M.s (M.s M.z)) end + +structure F2 : functor (M : S) : T where type t = M.t = F +structure F3 : functor (M : S) : T = F +(*structure F4 : functor (M : S) : sig type q end = F*) +(*structure F5 : functor (M : S) : T where type t = int = F*) |