summaryrefslogtreecommitdiff
path: root/tests/openRedef.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-08-04 16:44:05 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-08-04 16:44:05 -0400
commitcc26db8d217e2c573f15348ff87329c9c69dff75 (patch)
tree78a65f7f1e851be7156074a76cc7d95a50a49e6b /tests/openRedef.ur
parent04e96a26b7d92426fd0de62fd2e2905e57eea1de (diff)
Fix opening of shadowing, principal-signatured modules that open other modules
Diffstat (limited to 'tests/openRedef.ur')
-rw-r--r--tests/openRedef.ur16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/openRedef.ur b/tests/openRedef.ur
new file mode 100644
index 00000000..2d8161c3
--- /dev/null
+++ b/tests/openRedef.ur
@@ -0,0 +1,16 @@
+structure M = struct
+ con num = int
+ val zero = 0
+end
+
+structure N = struct
+ open M
+ con num = num * num
+ val zero = zero + 1
+end
+
+structure O = struct
+ open N
+
+ val one : num = (zero + 1, zero)
+end