diff options
author | Rustan Leino <unknown> | 2013-12-17 15:15:53 -0800 |
---|---|---|
committer | Rustan Leino <unknown> | 2013-12-17 15:15:53 -0800 |
commit | 69690cc00356be153b2598cce3abb228d1cc5a33 (patch) | |
tree | 3e1630a9dae215bd59610098e0d0a0425f280f65 /Test | |
parent | 968d203bfd0254b496f93664303e84da9795d170 (diff) |
Don't expand {:opaque} for inherited functions. (Note, more design is still needed to handle the combination of opaque and refinement well.)
Diffstat (limited to 'Test')
-rw-r--r-- | Test/dafny0/Answer | 2 | ||||
-rw-r--r-- | Test/dafny0/OpaqueFunctions.dfy | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Test/dafny0/Answer b/Test/dafny0/Answer index 569cb961..a1dd639f 100644 --- a/Test/dafny0/Answer +++ b/Test/dafny0/Answer @@ -1793,7 +1793,7 @@ OpaqueFunctions.dfy(135,12): Error: assertion violation Execution trace:
(0,0): anon0
-Dafny program verifier finished with 37 verified, 19 errors
+Dafny program verifier finished with 41 verified, 19 errors
-------------------- Maps.dfy --------------------
Maps.dfy(76,8): Error: element may not be in domain
diff --git a/Test/dafny0/OpaqueFunctions.dfy b/Test/dafny0/OpaqueFunctions.dfy index 9879c66b..6bff4ef3 100644 --- a/Test/dafny0/OpaqueFunctions.dfy +++ b/Test/dafny0/OpaqueFunctions.dfy @@ -142,3 +142,12 @@ module OpaqueFunctionsAreNotInlined { assert F(x);
}
}
+
+// --------------------------------- opaque and refinement
+
+module M0 {
+ function {:opaque} F(): int
+ { 12 }
+}
+module M1 refines M0 {
+}
|