From cc26db8d217e2c573f15348ff87329c9c69dff75 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Thu, 4 Aug 2011 16:44:05 -0400 Subject: Fix opening of shadowing, principal-signatured modules that open other modules --- tests/openRedef.ur | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/openRedef.ur (limited to 'tests/openRedef.ur') 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 -- cgit v1.2.3