You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a method in a trait mentions an opaque function and the overriding method in a class does the same, then the override check still fails:
$ dafny trait-opaque-bug.dfy
Dafny 2.3.0.10506
trait-opaque-bug.dfy(13,9): Error: the method must provide an equal or more permissive precondition than in its parent trait
Execution trace:
(0,0): anon0
Dafny program verifier finished with 2 verified, 1 error
Method M in the following program gives a repro. A workaround is to wrap the opaque function into another (Workaround below) and mentioning it instead of the original function
If a method in a trait mentions an opaque function and the overriding method in a class does the same, then the override check still fails:
Method
M
in the following program gives a repro. A workaround is to wrap the opaque function into another (Workaround
below) and mentioning it instead of the original functionThe problem comes down to a mismatch of fuel constants, as the following two lines in the generated Boogie code show:
The text was updated successfully, but these errors were encountered: