summaryrefslogtreecommitdiff
path: root/tests/functor.lac
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-06-19 16:04:28 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-06-19 16:04:28 -0400
commit7a1c5e1780fd3c56d9c591821905bb3b3bbfa50a (patch)
tree1ea265b32102b42663cc227b04c8c4e86e4b136f /tests/functor.lac
parent5a4ddea95a551c5f95f0dcbda433fe457b61d25a (diff)
Beginning of functor elaboration
Diffstat (limited to 'tests/functor.lac')
-rw-r--r--tests/functor.lac6
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