summaryrefslogtreecommitdiff
path: root/tests/modnested.lac
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-06-17 17:11:32 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-06-17 17:11:32 -0400
commit4ca360231456a3b719e27462a74bb8340578daeb (patch)
tree03993795230815291a6f7c8630d1624ba062cd17 /tests/modnested.lac
parent3fc43e22c438136877ca534fa6f75236c10350c8 (diff)
Nested selfification test
Diffstat (limited to 'tests/modnested.lac')
-rw-r--r--tests/modnested.lac23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/modnested.lac b/tests/modnested.lac
new file mode 100644
index 00000000..93ef2327
--- /dev/null
+++ b/tests/modnested.lac
@@ -0,0 +1,23 @@
+signature S = sig
+ type t
+ val x : t
+
+ structure Q : sig
+ type q
+ val y : q
+ end
+end
+
+structure S = struct
+ type t = int
+ val x = 0
+
+ structure Q = struct
+ type q = float
+ val y = 0.0
+ end
+end
+
+structure S1 = S
+structure S2 : S = S
+structure S3 = S2