summaryrefslogtreecommitdiff
path: root/Test/clean.py
diff options
context:
space:
mode:
authorGravatar qunyanm <unknown>2016-02-05 15:18:29 -0800
committerGravatar qunyanm <unknown>2016-02-05 15:18:29 -0800
commit74d1631a4724739dbb897c74713f54c4d060e781 (patch)
tree0b67e150cd3ca2e32bb07d3991c61a7920ea717b /Test/clean.py
parent4f0b823bdc1be13c2589cc46f650ab57d29e7117 (diff)
Fix issue 125. Add the missing case 2 and 3 with refinement and opened imports.
For the following situation module LibA { // ...things declared here... } module LibB { // ...things declared here... } module R { import opened LibA // ...things declared here... } module S refines R { import opened LibB // ...declared here... } 1. If module R declares a TopLevelDecl “G”, then we should report an error if S attempts to declare an incompatible TopLevelDecl “G”. Dafny does this already. 2. If LibA declares a TopLevelDecl “G” but R does not directly declare any TopLevelDecl G”, then we should also issue an error for any TopLevelDecl “G” in S. This behavior is missing in Dafny. 3. If each of LibA and LibB declares some TopLevelDecl “G”, but neither R nor S directly declares any TopLevelDecl “G”, then no error should be issued, and any use of “G” in S should resolve to the “G” in LibA. This behavior is missing in Dafny.
Diffstat (limited to 'Test/clean.py')
0 files changed, 0 insertions, 0 deletions