diff options
author | qunyanm <unknown> | 2015-04-21 14:35:41 -0700 |
---|---|---|
committer | qunyanm <unknown> | 2015-04-21 14:35:41 -0700 |
commit | 9d0cd81f47bb4fb27cdc4d0cf8442d4de7473cce (patch) | |
tree | 53f154dfd6bd66fa37b4f90854631ae431064b3c /Test/dafny4/Bug70.dfy | |
parent | 9c230b0c9037c30879e865aa5b6d994fee5820ff (diff) |
Fix issue #70. Check the ctors for equality before marking them as duplicates.
Diffstat (limited to 'Test/dafny4/Bug70.dfy')
-rw-r--r-- | Test/dafny4/Bug70.dfy | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Test/dafny4/Bug70.dfy b/Test/dafny4/Bug70.dfy new file mode 100644 index 00000000..a54ef46d --- /dev/null +++ b/Test/dafny4/Bug70.dfy @@ -0,0 +1,20 @@ +// RUN: %dafny /compile:0 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+module M1
+{
+ datatype d = D()
+}
+
+module M2 { import opened M1 }
+module M3 { import opened M1 }
+
+module M4
+{
+ import opened M2
+ import opened M3
+ method Main()
+ {
+ var x := D();
+ }
+}
\ No newline at end of file |